View Full Version : Add Adsense Code On First Post
MŽ Mostafa
02 Apr 2010, 18:22
this simple modification does is add a adsense code or any ads to first post
See here for example
http://www.gamez4all.com/vb/showthread.php?3-Ridge-Racer-Drift-(Multiscreen)&p=6
In the postbit_legacy template find:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add this under it:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
That's all
Dr.osamA
03 Apr 2010, 03:16
thanxxx man
installed
جزاك الله كل الخير
w-elbalad.com
03 Apr 2010, 03:57
thanks mostafa
installed
nice work
بارك الله فيك
للأمام يااخوى
MŽ Mostafa
03 Apr 2010, 12:19
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
03 Apr 2010, 14:57
Please, can we do the same with blog too?
Isnt that included in vBulletin 4 by default?
MŽ Mostafa
04 Apr 2010, 02:44
Please, can we do the same with blog too?
No its on Forum Only
MŽ Mostafa
04 Apr 2010, 02:53
Isnt that included in vBulletin 4 by default?
It is included in vBulletin 4 by default >>
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
add Code Under It
Da-Vinci
04 Apr 2010, 23:48
Admin CP-->Advertising-->Add New Ad
http://www.hostmypics.org/pictures/6b2c51ef377cdeb3860dc0d9fddde38a.png (http://www.hostmypics.org)
abdobasha2004
07 Apr 2010, 09:55
thaaanx
was searching for it for vb4
YankForum
08 Apr 2010, 22:26
this is more flexible , i like it more
MŽ Mostafa
09 Apr 2010, 10:43
Admin CP-->Advertising-->Add New Ad
http://www.hostmypics.org/pictures/6b2c51ef377cdeb3860dc0d9fddde38a.png (http://www.hostmypics.org)
Not The same :)
Sampel
http://www.gamez4all.com/vb/showthread.php?10-How-are-the-Wii-Xbox-360-and-PS3-performing-against-themselves-and-each-other-when-c&p=12#post12
MŽ Mostafa
09 Apr 2010, 10:45
thaaanx
was searching for it for vb4
Any service ;)
MŽ Mostafa
09 Apr 2010, 10:47
this is more flexible , i like it more
I am always in the service
YankForum
17 Apr 2010, 23:56
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with line below :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
in author's codes
tnx again bro
MŽ Mostafa
17 Jun 2010, 23:18
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:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with line below :
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
in author's codes
tnx again bro
Thnx 4 Ur Join
a7lameza.com
19 Jun 2010, 22:33
شكرا استاذ مصطفي بارك الله بيك
منديات احلى ميزة (http://a7lameza.com/vb/index.php)
naturalparent
04 Jul 2010, 11:45
has anyone combined this with a way t make adsense only show, if user is not logged in?
bhanuprasad1981
12 Jul 2010, 09:19
wow yoursite full of spam by bots
bond010007
23 Jul 2010, 13:44
great work MŽ Mostafa (http://www.vbulletin.org/forum/member.php?u=219672) installed and done here www.ghawyy.com/forum
Extra PC
13 Sep 2010, 18:48
thanx how to put this add after first line in first post or in first post in middle ?
CBNeter
14 Sep 2010, 11:36
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
MichelangeloITA
22 Jan 2011, 11:29
Hi dude, how can I make this work on vB4.1.1? :)
risestar
27 Jan 2011, 05:14
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('adsenseinfirstpost' => $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
Hi dude, how can I make this work on vB4.1.1? :)
Da-Vinci
04 Feb 2011, 03:28
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.
baghdad4ever
07 Jun 2011, 13:46
thanx how to put this add after first line in first post or in first post in middle ?
how to do that plz?
vBulletin® v3.6.12, Copyright ©2000-2013, Jelsoft Enterprises Ltd.