vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Add Adsense Code On First Post (https://vborg.vbsupport.ru/showthread.php?t=239678)

M? Mostafa 04-01-2010 10:00 PM

Add Adsense Code On First Post
 
1 Attachment(s)
this simple modification does is add a adsense code or any ads to first post

See here for example
http://www.gamez4all.com/vb/showthre...ltiscreen)&p=6

In the postbit_legacy template find:

PHP Code:

align="center">{vb:raw post.message}</div>
      </
blockquote>
     </
div

Add this under it:

PHP Code:

<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1">
here code adsense
</vb:if> 

That's all

Dr.osamA 04-03-2010 02:16 AM

thanxxx man

installed

جزاك الله كل الخير

w-elbalad.com 04-03-2010 02:57 AM

thanks mostafa
installed
nice work
بارك الله فيك
للأمام يااخوى

M? Mostafa 04-03-2010 11:19 AM

Thanks 4 installing

Please remember to click Mark as Installed if you use this modification.

This thread On Arabic

http://www.leenkat.com/vb/f99/37717/

Forum Lover 04-03-2010 01:57 PM

Please, can we do the same with blog too?

Kaleem 04-03-2010 11:27 PM

Isnt that included in vBulletin 4 by default?

M? Mostafa 04-04-2010 01:44 AM

Quote:

Originally Posted by Forum Lover (Post 2015149)
Please, can we do the same with blog too?

No its on Forum Only

M? Mostafa 04-04-2010 01:53 AM

Quote:

Originally Posted by LightInClouds (Post 2015370)
Isnt that included in vBulletin 4 by default?

It is included in vBulletin 4 by default >>

PHP Code:

{vb:raw post.message}
      </
blockquote>
     </
div

add Code Under It

Da-Vinci 04-04-2010 10:48 PM

Admin CP-->Advertising-->Add New Ad

https://vborg.vbsupport.ru/

abdobasha2004 04-07-2010 08:55 AM

thaaanx
was searching for it for vb4


All times are GMT. The time now is 08:29 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.01125 seconds
  • Memory Usage 1,735KB
  • 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_php_printable
  • (2)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
  • (10)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