帖間插入廣告的MOD(Inline Banner Ad)

PHPBB2.0.X资源收集专用版,提问和建议请发到主版面
Locked
User avatar
ifubo
界面组成员
界面组成员
Posts: 438
Joined: 2006-10-26 17:46

帖間插入廣告的MOD(Inline Banner Ad)

Post by ifubo » 2007-03-25 18:06

在phpbb.com裡找到的

Code: Select all

##############################################################
## MOD Title: Inline Banner Ad
## MOD Author: geocator < geocator@gmail.com > (Brian) http://www.geocator.us
## MOD Description: Allows placement of banner ads inline with posts. Contains a variety of options 
##                           to control display behavior
## MOD Version: 1.0.3
## 
## Installation Level: Moderate
## Installation Time: 14 minutes
## Files To Edit: viewtopic.php
##                includes/constants.php
##                templates/subSilver/overall_header.tpl
##                templates/subSilver/viewtopic_body.tpl
##                language/lang_english/lang_main.php
##                language/lang_english/lang_admin.php
## Included Files: (admin_inline_ad.php, inline_ad_config_body.tpl, admin_inline_ad_code.php,
##                       inline_ad_code_body.tpl, inline_ad_code_edit.tpl)
## Generator: MOD Studio 3.0 Alpha 1 [mod functions 0.2.1677.25348]
##############################################################
Attachments
inline banner ad.rar
下載鏈接失效,提供附件
本人測試通過
(8.02 KiB) Downloaded 52 times
俺是一只大大大菜鸟......想要飞却怎么样也飞不高.....
支持phpbb,支持phpbbchina

newerby
论坛管理员
论坛管理员
Posts: 1293
Joined: 2006-11-10 2:20

Re: 帖間插入廣告的MOD(Inline Banner Ad)

Post by newerby » 2007-06-21 0:05

这个 MOD 看起来功能不错,看语言包里的选项就知道:

Code: Select all

$lang['ad_managment']  = 'Ad Management';
$lang['inline_ad_config']  = 'Inline Ad Config';
$lang['inline_ads']  = 'Inline Ads';
$lang['ad_code_about']  = 'This page lists current ads.  You may edit, delete or add new ads here.';
$lang['Click_return_firstpost'] = 'Click %sHere%s to return to Inline Ad Configuration';
$lang['Click_return_inline_code'] = 'Click %sHere%s to return to Inline Ad Code Configuration';
$lang['ad_after_post'] = 'Display Ad After x Post';
$lang['ad_every_post'] = 'Display Ad Every x Post';
$lang['ad_display'] = 'Display Ads To';
$lang['ad_all'] = 'All';
$lang['ad_reg'] = 'Registered Users';
$lang['ad_guest'] = 'Guests';
$lang['ad_exclude'] = 'Exclude These Groups (List by comma-seperated group ID)';
$lang['ad_forums'] = 'Exclude These Forums (List by comma-seperated forum ID)';
$lang['ad_code'] = 'Ad Code';
$lang['ad_style'] = 'Display Style';
$lang['ad_new_style'] = 'Ad looks like a special user post';
$lang['ad_old_style'] = 'Ad falls inline with the topic';
$lang['ad_post_threshold'] = 'Do not display if user has more than x posts (Leave blank to disable)';
$lang['ad_add']  = 'Add New Ad';
$lang['ad_name']  = 'Short name to identify ad';
但我在本地机子上测试 phpbbchiana 整合的 phpbbxs20070411 使用有问题,以下这段无从修改 :(

Code: Select all

#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
td.inlineadtitle {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
#
在后台只看到

Code: Select all

Ad Management
Add New Ad
这两项,就是说只能添加广告代码,在查看帖子时显示了,但无从控制它如何显示(在第几个帖子后显示,只向哪个用户组显示等),它用的也不是插入帖子中间里的做法,而是在两帖子中间!

郁闷!有哪位在 phpbbxs20070411 下安装成功这个 MOD 的? :?

User avatar
IOsetting
论坛管理员
论坛管理员
Posts: 3647
Joined: 2006-10-17 1:48

Re: 帖間插入廣告的MOD(Inline Banner Ad)

Post by IOsetting » 2007-06-21 0:20

那一段是css代码, 原来subSilver里面带的. 因为我嫌它每次都要生成和传输会影响速度, 就都放到subSilverr.css里面去了.
可以到这个文件里面去改.

easyteacher
初见功力
初见功力
Posts: 82
Joined: 2008-08-11 18:34

Re: 帖間插入廣告的MOD(Inline Banner Ad)

Post by easyteacher » 2008-08-15 16:11

这是一个很好的功能

不过我没有广告需要放置。 :(

Locked