View Full Version : Show Thread Enhancements - Add Google ads in first post
yosri
02-02-2010, 10:00 PM
hi
بسم الله الرحمان الرحيم
how to Add Google ads in first post
Go to the Template
postbit_legacy
And search for the code
<vb:if condition="$show['attachments']">
And add below it
<div align="left">
<script type="text/javascript"> <! --
google_ad_client = "pub-0000000000";
/ * 300x250, created 2/3/10 * /
google_ad_slot = "2589394097";
google_ad_width = 300;
google_ad_height = 250;
//-->
</ script>
<script type = "text / javascript"
src = "http://pagead2.googlesyndication.com/pagead/show_ads.js">
</ script>
</ div>
and thin click save
note : the red color the code of google ads
Work conservation and enjoyment of
Is dedicated to brother Abu Rashid and for all
Forum Lover
02-03-2010, 10:10 AM
Isn't that already there by default?
djbaxter
02-03-2010, 03:17 PM
Isn't that already there by default?
Yes, it is. We're suddenly seeing a rash of these "add-ons" for 4.x and they're totally unnecessary. All of this can already be done from either the ad templates or from the new "Advertising" options in the 4.x Admin CP.
G-man
02-04-2010, 03:21 AM
Yes but what if you don't want to place your GOOGLE ads in those 4 places?
Cableguy69
02-04-2010, 03:48 AM
Do you have a screenshot please?
djbaxter
02-04-2010, 04:23 AM
Admin CP | Advertising | Manage Ads => Thread
Choice of inside first post or second post or both.
Admin CP | Styles & Templates | Edit Templates =>
test ad_showthread_firstpost_start
test ad_thread_first_post_content
test ad_showthread_firstpost_sig
yosri
02-05-2010, 05:22 AM
Do you have a screenshot please?
https://vborg.vbsupport.ru/external/2010/11/42.jpg
this
n_only
02-07-2010, 10:37 AM
Admin CP | Advertising | Manage Ads => Thread
Choice of inside first post or second post or both.
Admin CP | Styles & Templates | Edit Templates =>
test ad_showthread_firstpost_start
test ad_thread_first_post_content
test ad_showthread_firstpost_sig
:up:
it's already there :)
in scand lang. " موجودة يالحبيب في خيارات الدعاية بلوحة التحكم :) "
Cableguy69
02-08-2010, 11:31 PM
:up:
it's already there :)
in scand lang. " موجودة يالحبيب في خيارات الدعاية بلوحة التحكم :) "
I can't see any default options in the ACP to place ads within posts.
Yosri thanks for this installed and rated 5 :up:
haXan
02-17-2010, 07:00 AM
How can I put Google Adsense message to users messages in showthread ?
Like this;
https://vborg.vbsupport.ru/external/2010/02/41.jpg
Note:
This forum system is not vBulletin. This is My Bulletin. But I want to do same thing...
haXan
02-17-2010, 07:15 AM
I did. But I use
<div align="center">
Nephalim
09-20-2010, 01:41 PM
Just use postbit if I don't want the vertical look? I tried this method but my ad still did not show. And I switched to legacy.
ROTPAR
11-05-2010, 02:15 PM
Can anybody please explain to me how this is working for the facebook "like" button? For example: How do I get this code to work in the first post of each thread?
<vb:if condition="$show['fb_likebutton']">
{vb:raw fblikebutton}
</vb:if>
YankForum
11-05-2010, 02:21 PM
https://vborg.vbsupport.ru/attachment.php?attachmentid=111682&stc=1&d=1265354488
this
wow i cant believe u r using IE!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.