View Full Version : Mini Mods - Change Header Link to CMS
giraffesyo
12-24-2009, 10:00 PM
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:
{vb:raw vboptions.forumhome}.php
Change this to:
{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. =]
hqlman
12-25-2009, 02:50 PM
thanks ;)
gyaronn
12-25-2009, 05:35 PM
thanks m8
merk_aus
12-28-2009, 01:11 AM
Thanks for that I really appreciate it was trying to work this out since the beginning.
Prostr
12-29-2009, 11:34 AM
Installed on VB 4 Gold - and works perfectly!
Thanks
jaffaman
01-02-2010, 01:21 PM
Thanks as stated above works on VB 4 Gold.
Dr.osamA
01-03-2010, 03:50 AM
thanxxx
installed
________
Iolite Health Reviews (http://www.vaporshop.com)
giraffesyo
01-03-2010, 06:40 AM
^_^ good to hear it works on all versions. I thought this should be an option in default vbulletin... Where the header goes to..
VonDoom
01-08-2010, 07:55 AM
Great Tweek, Thanks Installed Rated
COL NIL SATIS
01-09-2010, 07:44 PM
nice!!! installed,many thanks
Bouncer222
01-21-2010, 10:45 PM
what if I wanted to make it point to a CUSTOM URL, such as this... exactly: www.brotherhoodofgamers.com how do I do that?
Videx
01-21-2010, 11:09 PM
Like this.<div><a name="top" href="http://www.brotherhoodofgamers.com/ {vb:raw session.sessionurl_q}" class="logo-image"><img
Bouncer222
01-21-2010, 11:25 PM
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
Videx
01-21-2010, 11:37 PM
Sorry I wasn't clear. I just quoted the whole line, but you're only replacing the part this mod talks about.
replace: {vb:raw vboptions.forumhome}.phpWith:http://www.brotherhoodofgamers.com/
dmknights
01-22-2010, 09:25 AM
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 http://www.yoursite.com/content.php
Videx
01-22-2010, 12:56 PM
then in the box that says: Homepage URL
simply put http://www.yoursite.com/content.phpI 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.
dmknights
01-22-2010, 01:10 PM
well this works fine with vb 4.0
Bram H
01-26-2010, 11:23 AM
Thanks for this modification, comes in really handy *installed*
giraffesyo
01-31-2010, 03:26 AM
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 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.
RedFoxy
02-01-2010, 04:52 PM
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?
NiTRoN
02-03-2010, 03:45 PM
or replace
vb:raw vboptions.forumhome
with
vb:raw vboptions.homeurl
still have to remove the ".php" between } {
GamerPerfection
05-20-2010, 07:20 PM
Awesome thanks dude. :)
Webbstre
06-08-2010, 10:42 AM
Excellent! I'd been thinking about changing this for a long time
rouvio
07-06-2010, 10:01 PM
Great mod! Thank you!! :)
[email protected]
vbmenu_register("postmenu_2089992", true);
08-26-2010, 07:05 PM
thank you
giraffesyo
08-26-2010, 07:49 PM
thank you
My pleasure =]
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?
I don't understand why you'd want that. A link to the same page they are on?
But to do that it'd have to change the header with an if statement saying which documents you are on.
Not really plausible for the purpose.
BadgerDog
08-28-2010, 10:56 AM
Installed ... :)
Thanks ...
Regards,
Badger
cagbaazee
09-04-2010, 12:55 PM
Any Demo..........
Videx
09-04-2010, 01:42 PM
Any Demo..........Demo what? This just changes it so that if someone clicks on your header it goes to the CMS instead of the forum.
bandare
10-06-2010, 12:17 PM
brilliant, thanks :)
mondiuk
10-11-2010, 12:36 AM
installed thanks..
gokhansancar
10-16-2010, 10:50 PM
thanks, i like that, it is working great :)
icona
10-29-2010, 05:45 PM
Thank you!
mark installed and 5 stars! ;)
ico :up:
LoneWolf71
01-18-2011, 05:54 PM
This no longer works in 4.1.1 :(
CoronasRGood
01-18-2011, 11:12 PM
1) Go to Styles and Templates
2) Click on Style Manager
3) On dropdown, click on "Edit Templates" on the style you wish to update
4) Double-click on "Header"
Find This (3rd line from the top): href="{vb:link forumhome}"
and replace with this: href="content.php"
shzad1
01-28-2011, 05:35 PM
None Working for 4.1.1 :(
Please will any one Provide for version 4.1.1
Thank you in Advance
karkey
01-28-2011, 06:04 PM
Worked for me 4.1.1
nforcer
01-29-2011, 01:45 AM
1) Go to Styles and Templates
2) Click on Style Manager
3) On dropdown, click on "Edit Templates" on the style you wish to update
4) Double-click on "Header"
Find This (3rd line from the top): href="{vb:link forumhome}"
and replace with this: href="content.php"
This method works for 4.1.1 - just follow the instructions.
Thanks!
shzad1
01-29-2011, 03:29 AM
Please Guide Me :)
href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}"
TO
?????????
Thank you in Advance
ZERO <ibis>
02-24-2011, 12:05 AM
1) Go to Styles and Templates
2) Click on Style Manager
3) On dropdown, click on "Edit Templates" on the style you wish to update
4) Double-click on "Header"
Find This (3rd line from the top): href="{vb:link forumhome}"
and replace with this: href="content.php"
This does the trick for the latest version :up:
sergarch
01-24-2012, 07:45 PM
Thanks!
Works perfect on 4.1.10
TombstoneWarrior
01-26-2012, 08:14 AM
What doess this do to the foru? im a newbie and i just dont know what this mod would change on m forum. can i have a pic or some explain in detail what this mod does please. Thanks in advance.
Videx
12-24-2012, 12:24 AM
I couldn't get this to work in 4.2.0 pl3 until I found this thread (https://www.vbulletin.com/forum/showthread.php/374802-Logo-Link-for-CMS-instead-of-Forum-vbulletin-4-1-2-(and-other-basic-changes)). I vaguely remember seeing they may have finally added a no-edit way to do this, but I can't recall where. Maybe I'm only remembering that you can change the home url in settings.
1. In the header template, change this:
<a name="top" href="{vb:link forumhome}" class="logo-image">
to this:
<a name="top" href="{vb:raw vboptions.homeurl}" class="logo-image">
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.