vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adsense on forumhome between forum listings (https://vborg.vbsupport.ru/showthread.php?t=250268)

treasureman 09-10-2010 03:49 PM

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!

Warlord 09-11-2010 03:29 AM

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.

treasureman 09-11-2010 03:47 AM

Quote:

Originally Posted by Warlord (Post 2096537)
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?

treasureman 09-12-2010 05:58 PM

Quote:

Originally Posted by Warlord (Post 2096537)
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.

Warlord 09-14-2010 12:10 AM

1 Attachment(s)
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).

treasureman 09-14-2010 07:53 PM

Quote:

Originally Posted by Warlord (Post 2097854)
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.

Warlord 09-15-2010 12:00 AM

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.

treasureman 09-21-2010 09:29 PM

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)

ajmboy 10-13-2012 04:01 PM

Can you post the category <if> code?


All times are GMT. The time now is 05:42 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.01058 seconds
  • Memory Usage 1,726KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete