vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Google Adsense Code Inside Post (https://vborg.vbsupport.ru/showthread.php?t=226995)

medicalforums 10-29-2009 05:50 AM

Google Adsense Code Inside Post
 
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
PHP Code:

        <!-- 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/showthrea...=bbcode+google

medicalforums 10-29-2009 02:59 PM

Quote:

Originally Posted by MAD--DOG (Post 1907805)

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

netcommander 10-31-2009 05:35 PM

Quote:

Originally Posted by akrepyusuf (Post 1907758)
hello

themes > postbit_legacy >

search
PHP Code:

        <!-- 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

Quote:

Originally Posted by netcommander (Post 1908760)
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

netcommander 11-01-2009 05:08 AM

thank you so much


All times are GMT. The time now is 06:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01071 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete