vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - The second post is advertising (https://vborg.vbsupport.ru/showthread.php?t=239981)

Asterix_ita 04-06-2010 10:00 PM

The second post is advertising
 
1 Attachment(s)
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)



haXan 04-07-2010 12:07 PM

Where is product ?

Asterix_ita 04-07-2010 12:14 PM

Sorry

Dr.osamA 04-07-2010 12:51 PM

1 Attachment(s)
good work man

thank you

installed + 5 stars + translate to Arabic

i think we need some changes with template postbit_legacy :rolleyes:

hiker 04-07-2010 12:55 PM

Will this place ads from this time on, or will it go back and insert ads into old threads?

Thanks.

sKippah 04-07-2010 01:04 PM

Very Nice. Could u add a refresh?

Dr.osamA 04-07-2010 01:04 PM

Quote:

Originally Posted by bogley (Post 2017413)
Will this place ads from this time on, or will it go back and insert ads into old threads?

Thanks.

no man

everything well be automatically changed everywhere

Asterix_ita 04-07-2010 01:13 PM

The only limitations are those set in the options, so if you leave all the default second post ads appear on all Threads indiscriminately by Date Added

@Dr.osamA thanks

Dr.osamA 04-07-2010 01:18 PM

Sorry Asterix

you are welcome man

Amr-Director 04-07-2010 03:23 PM

thank you very much, but , Unfortunately, however, there is a problem in the bottom of the page background Style

Begin from Quick Reply and ends at the footer and you can see it here in this form

http://www.rise4islam.com/vb/showthread.php?t=8417

With thanks.

junaid 04-07-2010 03:48 PM

Is it possible to add every page second post have this options to view ads

Mike_K 04-07-2010 05:30 PM

On each site the advertising would be very nice.

Asterix_ita 04-07-2010 05:44 PM

Quote:

Originally Posted by junaid (Post 2017496)
Is it possible to add every page second post have this options to view ads

the condition vb template is the following

Code:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
I understand how to integrate well into the addon so that the admin to choose whether to use only post no. 2 or the second of each page

:bai

iguano 04-07-2010 05:49 PM

very nice, thanks :-)

Mike_K 04-07-2010 06:11 PM

Sorry, where have it to put this condition in?

Asterix_ita 04-07-2010 06:20 PM

I changed the plugin to meet the request made to the post 11

Mike_K 04-07-2010 06:49 PM

Very good. Thank you.

adom7 04-07-2010 06:57 PM

nice work got it to work.

junaid 04-07-2010 07:21 PM

Thanks for your updating
Also is it possible to add options to remove post information like avatar username and locations and that row totally

Also have options to add random ads support

This is very important those who want sell ads locations
If you want put your brand you can put # ADS locations or Time printing locations
Date and time is not important in that place it is nice you can replace link options to payment gate way like Advertise on this place like that or can place remove this ads

Thanks
Junaid

guvner 04-07-2010 07:27 PM

Nice hack - thank you! :)

brz299 04-07-2010 10:03 PM

I put the code is not see nothing

https://vborg.vbsupport.ru/external/2010/04/77.png

Asterix_ita 04-08-2010 04:57 AM

@brz299

Very strange, because the field is a simple textarea, the input code is shown in the template

Are you sure that this is an accepted code from templates vbulletin? eg php codes are not accepted

for my testing I tried to use pure HTML and banner with iframe and google adsense script

@ junaid

I think a bit as for the random banner and ads naked, there are already other similar addon

junaid 04-08-2010 07:24 AM

yeah Redtiger i think
but he is not release VB4
what about other request?

Winter Sonata 04-08-2010 08:48 AM

Hello, IS it ok with Adsense TOS

Winter Sonata 04-08-2010 05:18 PM

Hello, IS it ok with Adsense TOS

brz299 04-08-2010 06:11 PM

Quote:

Originally Posted by Asterix_ita (Post 2017782)
@brz299

Very strange, because the field is a simple textarea, the input code is shown in the template

Are you sure that this is an accepted code from templates vbulletin? eg php codes are not accepted

for my testing I tried to use pure HTML and banner with iframe and google adsense script

@ junaid

I think a bit as for the random banner and ads naked, there are already other similar addon

Using the same code I have in the web is HTML code on the web if you visualize but the hack does not

Gn_Snake 04-08-2010 06:36 PM

Good Work Asterix...thanks

Asterix_ita 04-08-2010 07:10 PM

1 Attachment(s)
@brz299
I'm sorry but it is a normal adsense code, I tried your code on my site and works well. Try removing and reinstalling the addon.

Winter Sonata 04-08-2010 07:40 PM

mark as installed, thanks

Sagua 04-09-2010 12:14 AM

installed, thanks :up:

vicelover 04-09-2010 03:42 PM

nice mod, tagged.
5 stars

tomshawk 04-09-2010 04:49 PM

Nice mod, thank you, but, Question

If I want to remove this part

"Circuito Google Adsense"

How do I do that?

Again, Thank you, nice mod :up:

Asterix_ita 04-10-2010 07:23 AM

Quote:

Originally Posted by tomshawk (Post 2018450)
If I want to remove this part

"Circuito Google Adsense"

How do I do that?

Again, Thank you, nice mod :up:

And a little bug of the various tests made by me, you must delete the phrase from the template - postbit_legacy_ads_ct_2th

tomshawk 04-10-2010 09:41 PM

I found it, thank you

changed it to Tech-Unity Google Ad

;)

marshal_ramdev 04-21-2010 04:40 AM

thanks :) ..

biosclan 05-07-2010 03:30 PM

tagged for later

egyptsons 05-12-2010 04:01 PM

Quote:

Originally Posted by brz299 (Post 2018020)
Using the same code I have in the web is HTML code on the web if you visualize but the hack does not

brz299
Be sure that u don't have more than 3 AdSense unite in the same page

Kendothpro 05-18-2010 03:46 PM

You need to remove a </div> before the "<div class="cleardiv">" , or this mod will mess up your style

Asterix_ita 05-18-2010 04:17 PM

Fixed two error to template postbit_legacy

1 error

Code:

<div class="postrow>
2 error

Code:

<div class="content>
missing the tips of closed

Dr.osamA 05-21-2010 01:51 AM

1 Attachment(s)
thanxx for update man

here is new translation to Arabic for product_second_post_ads_2_0_2


All times are GMT. The time now is 11:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01452 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete