Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
Remove category link, in navbar, make more relevant adsense ads, better navigation Details »»
Remove category link, in navbar, make more relevant adsense ads, better navigation
Version: 1.00, by basketmen basketmen is offline
Developer Last Online: May 2019 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 08-09-2011 Last Update: Never Installs: 3
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

Original code from Lynne in this thread, i just improved it a little and add optional Google adsense Section Targeting code, to make more relevant adsense ads in your forum, after doing this little "fix" my adsense ctr increase about 20% higher






Introduction
if your Category name is just general keywords in navbits-navbar, not contain relevant keywords for adsense, it can make your adsense ads less relevant, its mean less clicks, you leave your money on table

look at this example, i use vbulletinsetup.com forum just for example

: you can see in red highlight, the Category name 'Front Desk', its not related at all to the thread and forum discussion (talking about vbulletin niche), it can make the adsense ads less relevant, so if we remove that text, our adsense ads will be more relevant ads, make sense right?

: The text 'The Break Room' is not relevant with the thread and the forum discussion (talking about vbulletin niche)




'Front Desk' and 'The Break Room' text above are Category name. Category name page usually are not important, since we can see same thing in Category page and in Forumhome page

see it from the example, Forumhome page and Category page are just the same content and function right?
Forumhome page : http://www.vbulletinsetup.com/ , the first category
Category page : http://www.vbulletinsetup.com/458-front-desk/

so it is better if we remove Category name links, in forumdisplay and showthread pages navbar














How to do it, remove/hide the Category name, in navbits-navbar


go to admincp >> Plugins & Products >> Add New Plugin, with below settings
Product : vBulletin
Hook Location : navbits
Title : Hide category link in navbits-navbar
Execution Order : 5
Plugin PHP Code :

Quote:
if (in_array($nav_title, array('Your Category Name 1', 'Your Category Name 2', 'Your Category Name 3', 'Your Category Name 4')))
{
$skip_nav_entry = true;
}

change 'Your Category Name 1' and others, with your real Category Name that you want to remove

from example vbulletinsetup.com above, the Category Name are 'Front Desk', and 'The Break Room'


save the plugin, thats it. From example above, it will be like this, navbits in navbar displaying more effective right?



















Optional, add Google adsense Section Targeting in navbits
After we removed not relevant text above, now we emphasized the Forum name, that usually contain relevant keywords for adsense


open navbar_link template

find $nav_title (if you have two of that code, use the first one)

replace it with this

Quote:
<!-- google_ad_section_start -->$nav_title<!-- google_ad_section_end -->

thats it, your forumdisplay pages and showthread pages are showing more relevant keywords for adsense ads now




TIPS : Open and view the source code, from your forumdisplay pages and showthread pages, and see the changes by your self. You can wrap other parts/text that you want adsense bot to emphasized, with Google adsense Section Targeting code, in this template, or in other template

<!-- google_ad_section_start -->
<!-- google_ad_section_end -->


and this code, to wrap other parts/text that you want adsense bot to ignore

<!-- google_ad_section_start(weight=ignore) -->
<!-- google_ad_section_end -->











this hack should work on previous vb too, like 3.8, 3.7, 3.6

maybe for vb 4 too, please confirm if its working for vb 4, since i dont use vb 4

i will help too as i can





Please click install for future updates

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-10-2011, 09:17 AM
s.sami s.sami is offline
 
Join Date: Mar 2011
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you its working..
Reply With Quote
  #3  
Old 08-10-2011, 06:48 PM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great, please click install for future updates

i add tips

TIPS : Open and view the source code, from your forumdisplay pages and showthread pages, and see the change by your self. You can wrap other parts/text that you want adsense bot to emphasized, with Google adsense Section Targeting code, in this template, or in other template

<!-- google_ad_section_start -->
<!-- google_ad_section_end -->

and this code, to wrap other parts/text that you want adsense bot to ignore

<!-- google_ad_section_start(weight=ignore) -->
<!-- google_ad_section_end -->
Reply With Quote
  #4  
Old 08-11-2011, 05:54 AM
s.sami s.sami is offline
 
Join Date: Mar 2011
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here i should write my category name right ? for examlple;

<!-- google_ad_section_start -->
<!-- google_ad_section_end -->

my category name1, my category name2

<!-- google_ad_section_start(weight=ignore) -->
<!-- google_ad_section_end -->

Where should i add this code ? (forumdisplay and showthread's where?)
Reply With Quote
  #5  
Old 08-11-2011, 06:30 AM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this TIPS step are just additional step, if you want to make the pages more relevant for adsense ads. If above mod is working without this step, then its enough for this mod


Quote:
TIPS : Open and view the source code, from your forumdisplay pages and showthread pages, and see the changes by your self. You can wrap other parts/text that you want adsense bot to emphasized, with Google adsense Section Targeting code, in this template, or in other template

<!-- google_ad_section_start -->
<!-- google_ad_section_end -->


and this code, to wrap other parts/text that you want adsense bot to ignore

<!-- google_ad_section_start(weight=ignore) -->
<!-- google_ad_section_end -->



I recommend trying the tips few days/weeks after installing the mod, make sure first the mod are working well
Reply With Quote
  #6  
Old 08-11-2011, 03:41 PM
Silencer Groans's Avatar
Silencer Groans Silencer Groans is offline
 
Join Date: Dec 2007
Location: k.s.a
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank
Reply With Quote
  #7  
Old 09-20-2011, 05:04 PM
s.sami s.sami is offline
 
Join Date: Mar 2011
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi bro i removed category names

i want to ask how can i redirect forum/forumdisplay.php?f=1 this link to forum/error.php this link ?
Reply With Quote
  #8  
Old 09-20-2011, 06:23 PM
basketmen's Avatar
basketmen basketmen is offline
 
Join Date: Nov 2006
Posts: 446
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by s.sami View Post
hi bro i removed category names

i want to ask how can i redirect forum/forumdisplay.php?f=1 this link to forum/error.php this link ?
maybe you can try redirect a forum link to a custom link, this is very basic in vbulletin, here is how :

go to admincp >> Forums & Moderators >> Forum Manager >> Choose the category or the forum that you want in the list >> in Forum Link, put http://www.yourdomain.com/forum/error.php
Reply With Quote
  #9  
Old 09-21-2011, 03:59 AM
s.sami s.sami is offline
 
Join Date: Mar 2011
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you so much.
Reply With Quote
Reply

Thread Tools

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:45 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04182 seconds
  • Memory Usage 2,298KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (8)postbit
  • (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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete