Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
The second post is advertising Details »»
The second post is advertising
Version: 2.0.9, by Asterix_ita Asterix_ita is offline
Developer Last Online: Jul 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.0 Rating:
Released: 04-06-2010 Last Update: 07-16-2012 Installs: 385
Uses Plugins Auto-Templates
Translations  
No support by the author.

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
  • correct a little imperfection template
  • add possibility of using a second circuit Ads

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

File Type: zip product_second_post_ads_2_0_7.zip (4.8 KB, 191 views)
File Type: zip product_second_post_ads_2_0_8.zip (4.7 KB, 419 views)
File Type: zip product_second_post_ads_2_0_9.zip (4.4 KB, 1009 views)

Screenshots

File Type: jpg 07-04-2010 14-03-55.jpg (31.3 KB, 0 views)
File Type: jpg 07-04-2010 13-40-41.jpg (48.3 KB, 0 views)
File Type: jpg 07-04-2010 13-39-04.jpg (46.9 KB, 0 views)
File Type: jpg 18-05-2010 18-58-52.jpg (107.1 KB, 0 views)
File Type: png 18-05-2010 18-57-00.png (8.6 KB, 0 views)
File Type: jpg 23-09-2010 09-53-00.jpg (38.4 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
7 благодарности(ей) от:
findingpeace, hugh_, m!dn!ght, mapleleaffans, mohammadxxx, sodasusu, SWSUSA

Comments
  #132  
Old 03-28-2011, 06:30 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Can I assume the Forum Exclude can be reversed in a similar way?
Yes, it is similar.
Reply With Quote
  #133  
Old 03-28-2011, 07:06 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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(); 
                }
replace with
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));
Search postbit or postbit_legacy template and add on top this {vb:raw ctads.template1}
Reply With Quote
  #134  
Old 03-29-2011, 10:21 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Asterix_ita View Post
Yes, it is similar.
Thanks ..

So, I changed this:

Code:
if (in_array($thread['forumid'],$ctads['forums'])) 
				{
					$ctads['ok'] = false;
				}
to this:

Code:
if (!in_array($thread['forumid'],$ctads['forums'])) 
				{
					$ctads['ok'] = false;
				}
... which should make the mod only INCLUDE any forums checked in either place?

Thanks ..

Regards,
Doug
Reply With Quote
  #135  
Old 03-29-2011, 10:52 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #136  
Old 04-17-2011, 04:03 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Would appreciate any advice ...

Regards,
Doug
Reply With Quote
  #137  
Old 04-18-2011, 04:47 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #138  
Old 04-18-2011, 09:47 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Asterix_ita View Post
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
Thank you Sir ..

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
Reply With Quote
  #139  
Old 04-23-2011, 09:50 AM
Ricsca's Avatar
Ricsca Ricsca is offline
 
Join Date: Apr 2006
Posts: 236
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you place the ad under the first post and sottol'ultimo post?
Reply With Quote
  #140  
Old 04-24-2011, 05:41 AM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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">
Replace with

Code:
		<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1 || $post[islastshown]">
let me know

Regards

Asterix
Reply With Quote
  #141  
Old 07-10-2011, 04:18 AM
sticky sticky is offline
 
Join Date: Sep 2003
Posts: 934
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04935 seconds
  • Memory Usage 2,369KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (9)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete