Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Change Header Link to CMS Details »»
Change Header Link to CMS
Version: 1.00, by giraffesyo giraffesyo is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.x Rating:
Released: 12-24-2009 Last Update: Never Installs: 131
Template Edits
Re-useable Code Translations  
No support by the author.

Alright, this is to fulfill a request for the ability to do this.

This modification enables the vbulletin banner to be linked to the CMS instead of the forumhome. Very simple modification.

First off go to AdminCP -> Style & Templates -> Style Manager -> Edit Templates -> Header

In header find:

Code:
{vb:raw vboptions.forumhome}.php
Change this to:

Code:
{vb:raw vboptions.site_tab_url}
Make sure to take out the .php after the } or it will not work correctly.

Mark installed if you use this. =]

Show Your Support

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

Comments
  #12  
Old 01-21-2010, 10:45 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what if I wanted to make it point to a CUSTOM URL, such as this... exactly: www.brotherhoodofgamers.com how do I do that?
Reply With Quote
  #13  
Old 01-21-2010, 11:09 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like this.
PHP Code:
<div><a name="top" href="http://www.brotherhoodofgamers.com/ {vb:raw session.sessionurl_q}" class="logo-image"><img 
Reply With Quote
  #14  
Old 01-21-2010, 11:25 PM
Bouncer222 Bouncer222 is offline
 
Join Date: Oct 2009
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Videx, your code looks improper, and missing closing tags, can you please fix it and for any other mistakes and then I will test it.

Thanks
Reply With Quote
  #15  
Old 01-21-2010, 11:37 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I wasn't clear. I just quoted the whole line, but you're only replacing the part this mod talks about.
replace:
PHP Code:
{vb:raw vboptions.forumhome}.php 
With:
PHP Code:
http://www.brotherhoodofgamers.com/ 
Reply With Quote
  #16  
Old 01-22-2010, 09:25 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theres not really a need for a template modification if u want the header to link the CMS instead of the forum & much easier!

Simply goto admincp

then

Site Name / URL / Contact Details

then in the box that says: Homepage URL
simply put
Code:
http://www.yoursite.com/content.php
Reply With Quote
  #17  
Old 01-22-2010, 12:56 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dmknights View Post
then in the box that says: Homepage URL
simply put
Code:
http://www.yoursite.com/content.php
I dunno. We still have a CMS out at our root folder, so I'm not sure this would be the correct solution for us. But if we ever decide to abandon the outer CMS and go just with the VB CMS, this may be the easier solution. Not sure how this would affect weird stuff like SEO.
Reply With Quote
  #18  
Old 01-22-2010, 01:10 PM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well this works fine with vb 4.0
Reply With Quote
  #19  
Old 01-26-2010, 11:23 AM
Bram H Bram H is offline
 
Join Date: Jul 2007
Location: The Netherlands
Posts: 286
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this modification, comes in really handy *installed*
Reply With Quote
  #20  
Old 01-31-2010, 03:26 AM
giraffesyo's Avatar
giraffesyo giraffesyo is offline
 
Join Date: Nov 2007
Location: My Computer.
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dmknights View Post
theres not really a need for a template modification if u want the header to link the CMS instead of the forum & much easier!

Simply goto admincp

then

Site Name / URL / Contact Details

then in the box that says: Homepage URL
simply put
Code:
http://www.yoursite.com/content.php

Doesn't do the same thing. You don't want all forumhome requests to go to that, just the link at top or else when you click forum it will also go to that link. important to note that.
Reply With Quote
  #21  
Old 02-01-2010, 04:52 PM
RedFoxy's Avatar
RedFoxy RedFoxy is offline
 
Join Date: Sep 2007
Location: Italy
Posts: 179
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

there is a way to have logo link to change it in forum home when my users are in the forum and CMS home when they are on the CMS?
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 02:09 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.10322 seconds
  • Memory Usage 2,330KB
  • Queries Executed 26 (?)
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
  • (5)bbcode_code
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete