Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

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
  #122  
Old 03-28-2011, 12:18 PM
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
from my point of view is correct to not distinguish between primary and secondary groups

If I decide that the components of the group “A” are excluded, they must be excluded independent primary or secondary group

Regards
Asterix
Could be, but in our opinion and the way most add-mods that we currently use treat UserGroup inclusion or exclusion, is when you select a group to exclude, it should not also require the us to select ALL other secondary groups that may be involved. The one selection should suffice.

For example, I want to exclude Admins, but with this mod, unless I also exclude other secondary UserGroups that Admins belong to, then the result of just excluding anyone belonging to the single Admin usergroup on its own is pointless and it doesn't work because the mod wants ALL of them checked or unchecked.

Many sites use secondary usergroups to identify things like contributing members etc, so their use that way conflicts with how this mod is coded.

Anyway, again... nice effort on behalf of the coder and we appreciate his work, but for us it won't work without a more traditional approach to handling user group exclusions.

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

Hello

maybe I did not understand the problem, due to my bad English

Quote:
it should not also require the us to select ALL other secondary groups that may be involved
does not require the selection of others.

I have excluded the admin group.
my account have as primary group admin
as secondary staff (not excluded)

and the ads do not see


I have change excluded staff group
my account have as primary group admin (not excluded)
as secondary staff

and the ads do not see it properly


the instruction I used to check the group is as follows:

Code:
if (is_member_of($this->registry->userinfo,$ctads['groups'])) {
I feel the same used in other addon, I can signal an addon that verifies


thanks
Reply With Quote
  #124  
Old 03-28-2011, 01:47 PM
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
I have excluded the admin group.
my account have as primary group admin
as secondary staff (not excluded)

and the ads do not see
My apologies as I only speak English, but let's try this ...

You have an option that says:

Select the Usergroup to be excluded from ads second post.

If I check ALL the boxes but NOT the one that says Administrator, then according to your option, the Administrator group ONLY should be able to view the ads.

On our site, any member who belongs to the group Administrator DOES NOT SEE ads. They do not see ads because an Administrator on our site also belongs to other user groups as well, which are checked. So, because those other user groups are checked and kind of process logic you're using, it just doesn't work for us...

Thanks for your efforts ...

Rergards,
Doug
Reply With Quote
  #125  
Old 03-28-2011, 02:11 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
If I check ALL the boxes but NOT the one that says Administrator, then according to your option, the Administrator group ONLY should be able to view the ads.
certainly, if the administrator is not covered by other groups with the restriction, the addon follow the stricter rules

in your case probably should create a group no-ads, exclude this, and assigned to admin the secondary group no-ads
Reply With Quote
  #126  
Old 03-28-2011, 02:28 PM
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
in your case probably should create a group no-ads, exclude this, and assigned to admin the secondary group no-ads
It would be easier to have the check box group option changed to be:

Select the Usergroup to be INCLUDED (permitted) to view ads second post.

Then, only members belonging to whatever usergroup is checked would see the ads.

Solves the problem for us ...

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

hi
should be sufficient to make this

admincp ->Plugins & Products ->Plugin Manager search Second Post ADS (press edit)

seach this code

Code:
               
 if (is_member_of($this->registry->userinfo,$ctads['groups'])) 
                {
                    $ctads['ok'] = false;
                }
change to

Code:
               
 if (!is_member_of($this->registry->userinfo,$ctads['groups'])) 
                {
                    $ctads['ok'] = false;
                }
Search this phrase
  • $vbphrase[setting_ads_ct_groups_title] on english traslate set: Select the Usergroup to be INCLUDED (permitted)
  • $vbphrase[setting_ads_ct_groups_desc] on english traslate set: only groups check show the second post ads

let me know if it works

Regards,

Asterix
Reply With Quote
  #128  
Old 03-28-2011, 04:58 PM
DigitalDark DigitalDark is offline
 
Join Date: Dec 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DigitalDark View Post
Hi! First of all, thanks for this great mod!

I've a question. It's possible to change the situation of the ads post?

I would like to change before the 1st Post instead after 1st post.
It's possible? What code I've to change?

Thank you!

Thanks
Any one? Thank you
Reply With Quote
  #129  
Old 03-28-2011, 05:13 PM
Asterix_ita's Avatar
Asterix_ita Asterix_ita is offline
 
Join Date: Aug 2009
Location: Italy
Posts: 312
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi

I checked quickly, your request requires the variation of one plugin and one or two template

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['template'] .= $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['template'] .= $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.template}

I have not tested but should work

Regards
Asterix
Reply With Quote
  #130  
Old 03-28-2011, 05:21 PM
DigitalDark DigitalDark is offline
 
Join Date: Dec 2009
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, nice nice!! Worked.

This will help a lot, because the human eye looks first at the first content in the screen.

Thank you!

PD: It's appearing "0 0 0" before the ads

example
Reply With Quote
  #131  
Old 03-28-2011, 06:08 PM
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
let me know if it works

Regards,

Asterix
Worked perfect .... :up:

Ads ONLY appear for selected usergroup membership.

Thank you very much for the customization ....

Can I assume the Forum Exclude can be reversed in a similar way?

Regards,
Doug
Reply With Quote
Reply

Thread Tools

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 01:04 AM.


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.07575 seconds
  • Memory Usage 2,373KB
  • 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
  • (5)bbcode_code
  • (7)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
  • (2)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