![]() |
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:
PHP Code:
|
thanxxx man
installed جزاك الله كل الخير |
thanks mostafa
installed nice work بارك الله فيك للأمام يااخوى |
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/ |
Please, can we do the same with blog too?
|
Isnt that included in vBulletin 4 by default?
|
Quote:
|
Quote:
PHP Code:
|
|
thaaanx
was searching for it for vb4 |
this is more flexible , i like it more
|
Quote:
Sampel http://www.gamez4all.com/vb/showthre...-c&p=12#post12 |
Quote:
|
Quote:
|
bro is there any way to force it to show on first post of pages instead of first post of thread ?
EDIT : replace this : Code:
<vb:if condition="$post[postcount] == 1"> Code:
<vb:if condition="$post[postcount] % $vboptions[maxposts] == 1"> tnx again bro |
Quote:
|
شكرا استاذ مصطفي بارك الله بيك
منديات احلى ميزة |
has anyone combined this with a way t make adsense only show, if user is not logged in?
|
wow yoursite full of spam by bots
|
great work M? Mostafa installed and done here www.ghawyy.com/forum
|
thanx how to put this add after first line in first post or in first post in middle ?
|
It worked fine on my Forum.
I have some questions, how to put adsense in the middle? so cut the tread in the middle. thanks |
Hi dude, how can I make this work on vB4.1.1? :)
|
You can call it externally
1) Put the code that you were going to post in the template into an external php file and upload it to the webserver, call it adsenseinfirstpost.php 2) Go to plugin manager and create a new plugin - Hook location : global_bootstrap_init_start - Plugin code (edit in your website url): ob_start(); require_once('http://www.yourwebsite.com/forum/adsenseinfirstpost.php'); $adsenseinfirstpost = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('postbit_legacy',array('a dsenseinfirstpost' => $adsenseinfirstpost)); 3) In postbit_legacy template, where you were going to post the code, put this instead {vb:raw adsenseinfirstpost} If you are using postbit, rather than postbit_legacy, just alter the template name in the ob_start code Quote:
|
Just use the built in Advertising system, click new in ad, in the drop down near the top, select thread then place your ad in either the first second or last post, you can do all 3 if you like.
|
Quote:
|
All times are GMT. The time now is 06:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|