![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
Add Adsense Code On First Post
![]() Developer Last Online: May 2013 ![]() ![]() ![]()
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:
Add this under it:
That's all Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Show Your Support
No members have liked this post.
|
#16
|
||||||||
|
||||||||
Originally Posted by YankForum
Thnx 4 Ur Join
![]()
No members have liked this post.
|
#17
|
|||
|
|||
شكرا استاذ مصطفي بارك الله بيك
منديات احلى ميزة No members have liked this post.
|
#18
|
|||
|
|||
has anyone combined this with a way t make adsense only show, if user is not logged in?
No members have liked this post.
|
#19
|
|||
|
|||
wow yoursite full of spam by bots
No members have liked this post.
|
#20
|
||||
|
||||
great work MŽ Mostafa installed and done here www.ghawyy.com/forum
No members have liked this post.
|
#21
|
|||
|
|||
thanx how to put this add after first line in first post or in first post in middle ?
No members have liked this post.
|
#22
|
|||
|
|||
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 No members have liked this post.
|
#23
|
||||
|
||||
Hi dude, how can I make this work on vB4.1.1?
![]()
__________________
Silvio Berlusconi is a clown and does not represent me. He is a disgrace to humanity. Michelangelo Fonti aka DJ Dominus. No members have liked this post.
|
#24
|
|||
|
|||
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: ![]() 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 No members have liked this post.
|
#25
|
|||
|
|||
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.
No members have liked this post.
|
#26
|
|||
|
|||
how to do that plz?
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:43.