Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-10-2010, 03:49 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Adsense on forumhome between forum listings

For VB 3.8 series I would like to put adsense code on the forumhome page between the listings of forums, and between the forum sections.

I have many forums divided up into "main forums", "other forums" etc. I would like to put adsense either at the end of one of these forum categories or at the beginning. Also between the listings of forums.

Any help is appreciated!
Reply With Quote
  #2  
Old 09-11-2010, 03:29 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit this template: forumhome_forumbit_level1_nopost

Scroll to the bottom of the template and add the adsense code. Save the template. It should put an ad after each forum category.
Reply With Quote
  #3  
Old 09-11-2010, 03:47 AM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warlord View Post
Edit this template: forumhome_forumbit_level1_nopost

Scroll to the bottom of the template and add the adsense code. Save the template. It should put an ad after each forum category.
Thanks Warlord!

Since I have many categories, and google only allows 3 adsense ads per page, how I get the add to appear under just some of the categories?
Reply With Quote
  #4  
Old 09-12-2010, 05:58 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warlord View Post
Edit this template: forumhome_forumbit_level1_nopost

Scroll to the bottom of the template and add the adsense code. Save the template. It should put an ad after each forum category.
Okay I tried it but it didn't put any ads in any of the forum categories.
Reply With Quote
  #5  
Old 09-14-2010, 12:10 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you want to email me your template and the adsense code I'll take a look at it. scottwilliams324 [at] gmail [dot] com.

What I described above should post the same ad under each category on your forum home.

If you want an adsense ad to display on the category when you click on the category you can add the code at the bottom of the forumhome_forumbit_level1_post template. (Ad should appear where the word TEST is).
Attached Images
File Type: jpg screen_shot.jpg (93.5 KB, 0 views)
Reply With Quote
  #6  
Old 09-14-2010, 07:53 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Warlord View Post
If you want to email me your template and the adsense code I'll take a look at it. scottwilliams324 [at] gmail [dot] com.

What I described above should post the same ad under each category on your forum home.



If you want an adsense ad to display on the category when you click on the category you can add the code at the bottom of the forumhome_forumbit_level1_post template. (Ad should appear where the word TEST is).
Thanks for your help I got it to work. I needed to put it before the last closing </if> conditional. Also I needed to put my table formating in and use an if conditional to restrict it to only the categories I wanted it in.
Reply With Quote
  #7  
Old 09-15-2010, 12:00 AM
Warlord's Avatar
Warlord Warlord is offline
 
Join Date: Jan 2002
Location: TN, USA
Posts: 668
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I didn't realize you were that advanced and was trying to give you an easier alternative if you were so inclined. Glad you got it to work though.
Reply With Quote
  #8  
Old 09-21-2010, 09:29 PM
treasureman treasureman is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay now that I can display adsense at the beginning or the end of a category let's take it one step further.

Say I have 10 forums in a category and I want to display Adsense after, say, the 5th forum but before the 6th? (instead of at the beginning or end of the category)
Reply With Quote
  #9  
Old 10-13-2012, 04:01 PM
ajmboy ajmboy is offline
 
Join Date: Aug 2006
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post the category <if> code?
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 08:00 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.04890 seconds
  • Memory Usage 2,262KB
  • Queries Executed 14 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete