PDA

View Full Version : Google Adsense Code Inside Post


medicalforums
10-29-2009, 05:50 AM
Is there anyway that I can insert an Adsense code inside the post am writing (when html is allowed in that forum).
I tried to wrap the script with html tags but that doesn't work

Any ideas?

akrepyusuf
10-29-2009, 12:15 PM
hello

themes > postbit_legacy >

search
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->

adsense code bot add.

medicalforums
10-29-2009, 02:28 PM
Thanks,

That will display the ads in a specified location with each and every post, right?

I want to manually embed the code in specific posts in a variable location.

Ok, let me ask this

Can we create a BBcode to show Google Adsense?

Michael.A
10-29-2009, 02:30 PM
yes,
look in to this
https://vborg.vbsupport.ru/showthread.php?t=183001&highlight=bbcode+google

medicalforums
10-29-2009, 02:59 PM
yes,
look in to this
https://vborg.vbsupport.ru/showthread.php?t=183001&highlight=bbcode+google

Thanks, I'll modify that for an Adsense code rather than search box

netcommander
10-31-2009, 05:35 PM
hello

themes > postbit_legacy >

search
<!-- message -->
<div id="post_message_$post[postid]">
$ad_location[ad_showthread_firstpost_start]
$post[message]
</div>
<!-- / message -->

adsense code bot add.
how can I setup for every 5 port or other ? is there a any way ?
best regards

Brandon Sheley
10-31-2009, 06:55 PM
You can use a condition to make it show every X post, and I wouldn't edit the postbit itself, you'll notice in the example above "$ad_location[ad_showthread_firstpost_start]"

there are built in ad_location templates that you should use, much easier when you go to upgrade. ;)

netcommander
10-31-2009, 07:04 PM
hi thanks for help do you have give me any condition or example?
best regards

Brandon Sheley
10-31-2009, 07:23 PM
hi thanks for help do you have give me any condition or example?
best regards

This would be a good thread to ask: vBulletin Template Conditionals List (https://vborg.vbsupport.ru/showthread.php?t=215032)

netcommander
11-01-2009, 05:08 AM
thank you so much

medicalforums
11-01-2009, 02:52 PM
You can use a condition to make it show every X post, and I wouldn't edit the postbit itself, you'll notice in the example above "$ad_location[ad_showthread_firstpost_start]"

there are built in ad_location templates that you should use, much easier when you go to upgrade. ;)

The thing is that I have an "Articles" forum where posts are not allowed but the threads are long and receive good traffic, therefore I am thinking to show the ads inside the thread not below it.
I created a BBcode and it worked, but the problem is that it's now shown to visitors in the bbcode list and I don't know how to hide it.
Any idea!