The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
The second post is advertising Details »» | |||||||||||||||||||||||||||||||||||||||||||
I know that there are many addons but I like the special needs, sorry for my bad English
With this addon the second post is not necessarily a post Google Adsense ADS as to release the users was chosen to allow free insertion of HTML Ads. The addon has the following functions: 1) automatically uses the style of postboard (postbit o postbit_legacy) 2) it is possible to exclude some forum posts from viewing ads 3) it is possible to exclude some groups of users from viewing post ads 4) it is possible to exclude some discussions based on prefix 5) it is possible to customize the user profile virtual ads - nickname and avatar (usertitle ? Location - Join Date ecc. need to modify the phrase) I hope it will be useful to some of you. Regards Install: Import product_second_post_ads.xml Configure in vBulletin Options -> Ads Second Post This plugin adds: 2 template postbit_ads_ct_2th postbit_legacy_ads_ct_2th 2 plugin Second Post ADS Cache template 10 phrase Changelog 2.0.0 only post nr.2 is ads 2.0.1 Added option on every page is the second post ads (post 11) 2.0.2 fixed two error template postbit_legacy - change admin option 2.0.3 fix the code for compatibility vb. 4.0.4 or higher 2.0.4 add option align post ads 2.0.5
the second option ads is strongly bound by the general filters: Forums to be Excluded 2.0.6 fix inline mod select/deselect all 2.0.7 fix mini bug 2.0.8 fix dependency version - add two phrases - fix folder upload 2.0.9 fix bug option exclude prefix - fix ads on pm - change dependency version Translations Italian Collectiontricks.it Arabic - Dr.osamA (vers. 2.0.2) German - Igel1 (vers. 2.0.3) Download Now
Screenshots
Show Your Support
|
7 благодарности(ей) от: | ||
findingpeace, hugh_, m!dn!ght, mapleleaffans, mohammadxxx, sodasusu, SWSUSA |
Comments |
#132
|
||||
|
||||
Yes, it is similar.
|
#133
|
||||
|
||||
@Digital
sorry my mistake, try this admincp ->Plugins & Products ->Plugin Manager search Second Post ADS (press edit) seach this code Code:
if ($ctads['ok'] && $ctads['template'] == 0) { $templater = vB_Template::create('postbit_ads_ct_2th'); $templater->register('post', $post); $templater->register('ctads', $ctads); $template_hook['postbit_end'] .= $templater->render(); } if ($ctads['ok'] && $ctads['template'] == 1) { $templater = vB_Template::create('postbit_legacy_ads_ct_2th'); $templater->register('post', $post); $templater->register('ctads', $ctads); $template_hook['postbit_end'] .= $templater->render(); } Code:
if ($ctads['ok'] && $ctads['template'] == 0) { $templater = vB_Template::create('postbit_ads_ct_2th'); $templater->register('post', $post); $templater->register('ctads', $ctads); $ctads['template1'] = $templater->render(); } if ($ctads['ok'] && $ctads['template'] == 1) { $templater = vB_Template::create('postbit_legacy_ads_ct_2th'); $templater->register('post', $post); $templater->register('ctads', $ctads); $ctads['template1'] = $templater->render(); } vB_Template::preRegister('postbit',array('ctads' => $ctads)); vB_Template::preRegister('postbit_legacy',array('ctads' => $ctads)); |
#134
|
|||
|
|||
Thanks ..
So, I changed this: Code:
if (in_array($thread['forumid'],$ctads['forums'])) { $ctads['ok'] = false; } Code:
if (!in_array($thread['forumid'],$ctads['forums'])) { $ctads['ok'] = false; } Thanks .. Regards, Doug |
#135
|
||||
|
||||
the change applied says: in all forums that are not reported here denies viewing
I sincerely leave ads in all forums and select the excluded, that variable should act on the second ads. Warning: All the plugin code is linked and changing one part may create problems in other options |
#136
|
|||
|
|||
Here's an odd request, but feedback with advice from anyone would be appreciated ... :up:
If I wanted to execute the following conditional so that this excellent mod ONLY displayed the ads on the second post under those conditions specified, where in the plugins would I put it? I've tried everywhere including the template and it always seems to still interact with the mod's own settings, or prevents elements of the postbit_legacy bottom bar from displaying properly. Code:
<vb:if condition="is_member_of($bbuserinfo,1,2,3,4,13,17) || in_array($bbuserinfo['userid'],array(2,5539))"> Execute Ads in Second Post Mod </vb:if> Regards, Doug |
#137
|
||||
|
||||
Hi
you could try changing the plugin "Second Post ADS, in it there are all conditions or set no exclusion in the options plugin and act in templates postbit_legacy_ads_ct_2th or postbit_ads_ct_2th Regards Asterix |
#138
|
|||
|
|||
Quote:
I did try all those without any success..... I have added a new usergroup which combined with the customization for "including" usergroups you kindly gave me earlier, I think will work. Still have to test it though. Nice mod.... do you do paid customization work on this for a fee? Regards, Doug |
#139
|
||||
|
||||
How can you place the ad under the first post and sottol'ultimo post?
|
#140
|
||||
|
||||
Hi Ricsca
should be sufficient to change the template or postbit_ads_ct_2th postbit_legacy_ads_ct_2th find Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"> Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 || $post[islastshown]"> Regards Asterix |
#141
|
|||
|
|||
Can I have different ads in different forums for the second post?
For example, forum A has ad X as second post and forum B has ad Y as second post? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|