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)

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?


All times are GMT. The time now is 06:47 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.01136 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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