PDA

View Full Version : How do I set the forum banner to return to site home page?


fos
01-31-2009, 10:24 PM
I just installed vBulletin 3.8.1, vBadvanced CMS, and vBadvanced Dynamics.

It all seems to be working correctly except returning to the site home page when clicking the forum banner.

How do I change the banner link when I'm in the forum?

When I'm on the vba_cms site home page, the banner links to the site home page. When I'm in the forum, the forum banner links to the forum. The only way I can get back to the site home page when in the forum, is to select the site name on the bottom tool bar. That would be cumbersome for users.

Web site is at: http://docfortress.com

Thank you, Jeff

PS. I am familiar with vBulletin itself. I have another forum running with no problem. I just started with vBadvanced today.

PhilMcKrackon
02-01-2009, 09:44 AM
The code for that is in the header template. I believe that you need to change it there, if you change the forum path in the ACP it will break other links.

Our Sponsors
 

fos
02-01-2009, 10:52 AM
Thanks Phil, Ill try to modify the header code.

Jeff

fos
02-01-2009, 02:06 PM
I modified the header template file via the admin control panel. I added a link back to the home page just below the logo. It is not quite what I wanted but it works. ;)

Jeff

Our Sponsors
 

PhilMcKrackon
02-01-2009, 02:14 PM
Try changing the code shown below to change the logo link (in the header template). This is for 3.74, should be the same or close for 3.81.

<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

to


<!-- logo -->
<a name="top"></a>
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="$stylevar[left]"><a href="[B]http://docfortress.com/index.php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
<td align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td>
</tr>
</table>
<!-- /logo -->

fos
02-01-2009, 05:08 PM
Wow! That code did the trick.

Thank you for the excellent assistance. Let me know if I can ever return the favor.

After some additional site enhancement, I can begin to add content.

Thanks again,
Jeff

HoneyHaHa
03-07-2009, 08:11 AM
For some reason when i use the code above it is not saving my cookie as

being logged in, but using the link to homepage in the footer does save?

Advice anyone?

I'm using vb 3.8.1
vbcms 3.1.0

Thanks in advance

Brian
03-07-2009, 10:11 AM
Have you tried the suggestions from our FAQ?
http://www.vbadvanced.com/forum/faq.php?faq=vba_trouble#faq_vba_trouble_cookie

PhilMcKrackon
03-07-2009, 10:59 AM
And do not omit '$session[sessionurl_q]' at the end of the link. It's vital for session tracking for members not using cookies.

HoneyHaHa
03-07-2009, 06:32 PM
Thanks Brian and Phil i rechecked the original code given by PhilMcKrackon in

my custom skin header template and it appears that the installation of vb

blog ver 2 overwrote my url by dropping the www. in the skins?

Meaning it got changed from:

http://www.myforum.com/index.php$session[sessionurl_q]

to:

http://myforum.com/index.php$session[sessionurl_q]

Very strage behaviour :confused:

Anyway all fixed now thanks to you both :D, but thinking you may need to

ask clients if they have just installed vb blog ver 2

PhilMcKrackon
03-08-2009, 05:23 PM
Glad you figured it out.

You might want to look into creating a .htacess rule that will redirect all non WWW traffic to the page with WWW (if you use WWW), it's better for SEO purposes.

adblaze
01-26-2011, 11:19 PM
Worked like a charm. Thank you!

andrel58
02-01-2011, 10:39 AM
Thanks Phil for great and valuable tips. It helps me too and I saved a time and works perfectly.