vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Mini Mods - Change Header Link to CMS (https://vborg.vbsupport.ru/showthread.php?t=231153)

giraffesyo 12-24-2009 10:00 PM

Change Header Link to CMS
 
1 Attachment(s)
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. =]

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

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.
PHP Code:

<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:
PHP Code:

{vb:raw vboptions.forumhome}.php 

With:
PHP Code:

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
Code:

http://www.yoursite.com/content.php

Videx 01-22-2010 12:56 PM

Quote:

Originally Posted by dmknights (Post 1963221)
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.

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

Quote:

Originally Posted by dmknights (Post 1963221)
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.

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
Code:

vb:raw vboptions.forumhome
with

Code:

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

Quote:

Originally Posted by john@alltp.com (Post 2089992)
thank you

My pleasure =]

Quote:

Originally Posted by RedFoxy (Post 1972323)
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

Quote:

Originally Posted by cagbaazee (Post 2093668)
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

Quote:

Originally Posted by CoronasRGood (Post 2151210)
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

Quote:

Originally Posted by CoronasRGood (Post 2151210)
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:


All times are GMT. The time now is 12:57 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.01489 seconds
  • Memory Usage 1,791KB
  • 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
  • (7)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete