Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 11-06-2007, 08:23 AM
onlinecc onlinecc is offline
 
Join Date: Nov 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to remove "index.php?" from Home links?

I have a forum where I would like to remove the index.php? part of the Home links in my forum. Like here for example (http://www.vtctalk.com/forumdisplay.php?f=15):

VTCTalk.com - Video conferencing Forum > Hardware

The link "VTCTalk.com - Video conferencing Forum " points to http://www.vtctalk.com/index.php? instead of http://www.vtctalk.com

Maybe in this case it makes no difference but on my site I would like to direct all pagerank to www.vtctalk.com and not half of it to www.vtctalk.com/index.php?.

So the question is, how do I change/get rid of this index.php? part of the "http://www.vtctalk.com/index.php?" link? Is there some template file I can edit or some other setting?

All help and suggestions are greatly appreciated.

Thanks,
Martin.

PS: I searched the forum for a solution as I cannot imagine that I'm the first one with this problem, but I didn't find anything. Maybe I'm just an idiot at searching
Reply With Quote
  #2  
Old 11-06-2007, 09:07 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you could always open navbar template and find

$vboptions[forumhome].php$session[sessionurl_q]

and replace with

http://www.vtctalk.com

done
Reply With Quote
  #3  
Old 11-06-2007, 10:12 AM
onlinecc onlinecc is offline
 
Join Date: Nov 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweeet !! :up:

Thanks a lot jaycob!

/martin
Reply With Quote
  #4  
Old 11-15-2007, 11:25 AM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jaycob View Post
you could always open navbar template and find

$vboptions[forumhome].php$session[sessionurl_q]

and replace with

http://www.vtctalk.com

done
If you do this then users that don't have cookies enabled will be automatically logged out whenever they would use that link.
Reply With Quote
  #5  
Old 11-15-2007, 11:47 AM
onlinecc onlinecc is offline
 
Join Date: Nov 2007
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmm interesting point.... Well I'll wait and see if it is a problem. My feeling is that this link is not so much used a for example the "back" function..

But thanks for the info mihai11!
Reply With Quote
  #6  
Old 11-15-2007, 12:49 PM
mihai11 mihai11 is offline
 
Join Date: Dec 2005
Location: Sibiu - Romania
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by onlinecc View Post
Hmmm interesting point.... Well I'll wait and see if it is a problem. My feeling is that this link is not so much used a for example the "back" function..

But thanks for the info mihai11!
I found the solution to this problem. You need to test whether $session[sessionurl_q] is defined on not. If it is not defined then use $vboptions[bburl] instead of $vboptions[forumhome].php$session[sessionurl_q].

Currently, in 3.6.8 there are 2 links from the navbar. The first link is this:

Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
and the second link is this:

Code:
<a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>

Replace the first link with this:
Code:
<if condition="$session[sessionurl_q]">
  <a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
<else />
  <a href="$vboptions[bburl]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</if>
and the second link with this:

Code:
<if condition="$session[sessionurl_q]">
  <a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
<else />
  <a href="$vboptions[bburl]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
and that's all. I already tested this for users with cookies and without cookies.

If you will perform a search on this template then you will also find the string "$vboptions[forumhome].php" in the "action" field of a form (it is at the bottom of the template). Don't touch that as it is not relevant for the issue discussed here.

I hope that you understand my instructions. I don't have much time right now so I won't be able to provide much support for this issue.



Regards,
Razvan M.
Reply With Quote
Reply

Thread Tools
Display Modes

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 08:16 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06867 seconds
  • Memory Usage 2,216KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete