vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   [As on DigitalPoint forums] put adsense inside middle of the first post content (https://vborg.vbsupport.ru/showthread.php?t=225461)

abdobasha2004 10-18-2009 12:31 AM

[As on DigitalPoint forums] put adsense inside middle of the first post content
 
As you my find when you browse this forum digital point, e.g :
http://forums.digitalpoint.com/showthread.php?t=1525374
you can find variable ad sizes displayed inside post
the poster my writ 2 paragraphs
adsense is put between them

1- how is this done?
2- how to change adsense sizes for every visit?

x1421 12-19-2009 02:21 PM

Hi,

do you found an answer, i was also wondering how this is done.

GTX2 01-11-2010 07:06 PM

I think that can be done with 3.7 and above.
Below 3.7 i think its more difficult....

You can do this editing ad_showthread_firstpost template, inserting there the adsense code.
I'm running 3.6.4 and i don't have ad_showthread_firstpost template....

here you have some help
http://www.forumbite.com/tutorials/v...-to-vbulletin/

valdet 05-09-2010 08:18 PM

Sorry to bump this.

I am interested to know if someone knows how to add ads in middle of first post, just as in digitalpoint..

http://img24.imageshack.us/img24/5116/adsxb.png

kamcreation 05-13-2010 09:27 AM

Yeah it would be great if anyone can share how to do it

JR7 07-11-2010 11:58 AM

>> Up

YankForum 08-30-2010 09:17 AM

how to split post content into two groupd ? in order to put ads between them ?

BirdOPrey5 08-30-2010 12:31 PM

Quote:

Originally Posted by kamcreation (Post 2036230)
Yeah it would be great if anyone can share how to do it

I think you (or someone knowledgeable in php) could make a plugin that reads the post as a string, counts the number of line breaks (<br />) then inserts the adsense code inbetween the middle line breaks.

YankForum 08-31-2010 01:11 AM

i looked at source code in digitalP i think they use javascript

Extra PC 09-13-2010 10:39 PM

up we need this in vb4 ...

Naijasite 01-01-2013 04:08 PM

use this https://vborg.vbsupport.ru/showthread.php?t=251787


All times are GMT. The time now is 03:28 AM.

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.02832 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete