Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-11-2018, 05:46 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Where & how to insert Google AdSense Code

Can some kind person please explain how & where to insert the Google AdSense code for my website running vBulletin 4.2.3 please.

I've been racking my brain trying to figure this out for days & days...but I'm not really getting anywhere.

- Google seems to say add the AdSense code to the header and/or footer files. But this seems to apply to html based websites.
- I also seem to keep seeing that I need to edit the vBulletin "postbit_legacy" template. But not really 100% sure where to add the AdSense code without messing things up.

Could really use some help,

Thanks
Reply With Quote
  #2  
Old 07-11-2018, 08:21 PM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In admincp, there is an option for advertisements. Simply select where you want to display the ads and paste the code.


See https://www.vbulletin.com/docs/html/...rtising_ad_new for details
Reply With Quote
  #3  
Old 07-11-2018, 10:05 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iA1 View Post
In admincp, there is an option for advertisements. Simply select where you want to display the ads and paste the code.
Thank you iA1. That seems easy enough. Just did it (followed the vBulletin manual instructions)...but no ads are appearing on my site. I only did a new add for below the NavBar at the moment.

Thanks
Reply With Quote
  #4  
Old 07-12-2018, 02:27 AM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Clear cache under Maintenance and check again. Usually it appears after some time.
Reply With Quote
  #5  
Old 07-12-2018, 10:34 AM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok...cleared cache. Will wait a bit and see if successful

Thanks
Reply With Quote
  #6  
Old 07-12-2018, 11:05 AM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Been about 30 minutes...unfortunately nothing has shown up yet (hopefully that's long enough).

Any other ideas/suggestions?

Here's a screenshot of my ad settings...maybe something is setup incorrectly?

- I blocked out some of the ad code...but you can see there's html ad code there (copied & pasted from advertiser).
- I believe I have it setup so that everyone see's the ad's (all usergroups).

Thanks
Attached Images
File Type: jpg Screen Shot 2018-07-12 at 8.57.40 AM.jpg (81.5 KB, 0 views)
Reply With Quote
  #7  
Old 07-12-2018, 11:26 AM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

None of the checkboxes are checked in the section at the bottom. Review those settings and check at least one, for example the user (does not) belong to usergroup setting.
Reply With Quote
Благодарность от:
TheLastSuperman
  #8  
Old 07-12-2018, 01:30 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Dave...thanks for posting.

Do I really need to check at least one of the boxes in the lower half of the screen shot?

In the upper area there's the "Active" setting...with choices of "Yes" or "No". I currently have "Yes" selected. Right below that it says "If active and no criteria are set, ad will display to all."

I'm understanding this to mean that if nothing is selected in the lower half...that the ads will display to all. So I was thinking I didn't need to check any of the boxes in the lower half of the screenshot.

Thanks
Reply With Quote
  #9  
Old 07-12-2018, 01:33 PM
iA1 iA1 is offline
 
Join Date: Jul 2018
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you using a custom style? Maybe ad templates are disabled in that. Check the default template. Also, do you have ad block installed?
Reply With Quote
  #10  
Old 07-12-2018, 01:35 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah good catch, yes in that case no checkboxes need to be set.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:44 AM.


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.04179 seconds
  • Memory Usage 2,265KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete