Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications

Reply
 
Thread Tools
Remove index.php from logo link Details »»
Remove index.php from logo link
Version: 1.00, by Golzarion Golzarion is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.7.x Rating:
Released: 05-15-2008 Last Update: Never Installs: 53
Template Edits
 
No support by the author.

Remove index.php from logo link :

For better SEO we redirect all the similar addresses to one standard address . For example in my forum, all similar addresses like :

http*://forum.golzarion.com/ index.php
http*//www.forum.golzarion.com/index.php
...
all redirect to : http://forum.golzarion.com

but the link of logo still was :www. my site.com/index.php

What does this mode do ?

It removes " index.php" from logo link . Now when users click on logo the logo links them to the address of "www*.your site.com " with out any "index.php" on the link.

To remove " logo index.php " link :

go to header template ( admin cp =>Styles&Templates=>style manager=>all style option+>> header )

in header find :

Code:
$vboptions[forumhome].php$session[sessionurl_q]
and replace it with :

Code:
$vboptions[bburl]$session[sessionurl_q]
then save the changes. and refresh your forum pages and see logo link without " index.php "

Please click installed if you use this mode . thanks

For more information see Post#4 .

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 11-20-2008, 11:25 PM
Pirat3 Pirat3 is offline
 
Join Date: Dec 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a custom theme and have this line:
Code:
			<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
in header, how can i edit this to do your hack?
Reply With Quote
  #23  
Old 11-21-2008, 01:42 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by appsfinder View Post
please can you tell were the height of the default logo is stored i have looked in header

not there?
Sorry , but this question doesn't relate to this topic.You can ask on community forum....
But the logo picture stored on "images/misc" directory by default ... you can change the logo and upload with the custom size. Although you can write the custom code on header template and Determine the logo size exactly .

for example :

HTML Code:
<a href="http://forum.golzarion.com/">
<img border="1" src="http://forum.golzarion.com/images/Naghsh/misc/logo1.jpg" width="935" height="110">
</a>
Of course change the links with your own site .
Reply With Quote
  #24  
Old 11-21-2008, 01:47 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pirat3 View Post
I have a custom theme and have this line:
.....
in header, how can i edit this to do your hack?
So it is not vBulletin default template ... Would you please put your complete "header template" codes here ?
Reply With Quote
  #25  
Old 11-23-2008, 12:25 AM
momo2 momo2 is offline
 
Join Date: Feb 2007
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very useful i never knew how to
Reply With Quote
  #26  
Old 11-30-2008, 02:34 AM
Loki12 Loki12 is offline
 
Join Date: Jul 2004
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This "index.php" in the logo also annoyed the crap out of me. Thanks, installed! It should be standard, I agree.
Reply With Quote
  #27  
Old 12-01-2008, 03:45 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Loki12 View Post
This "index.php" in the logo also annoyed the crap out of me. Thanks, installed! It should be standard, I agree.
Yes. Thank you, but Please click installed if you use this mode . thanks
Reply With Quote
  #28  
Old 12-16-2008, 06:20 PM
cptrek cptrek is offline
 
Join Date: Dec 2008
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a good thing to implement.

Thanks for the walk through!
Reply With Quote
  #29  
Old 02-19-2009, 03:59 PM
khurtsiya khurtsiya is offline
 
Join Date: Feb 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is good for SEO because Google gives PR separately to forum.example.com and forum.example.com/index.php:

http://www.skyscrapercity.com/ - PR6

http://www.skyscrapercity.com/index.php - PR5

But how should I change this if I have vBAdvanced on my homepage and vBSEO installed?

TIA

Michael
Reply With Quote
  #30  
Old 03-11-2009, 11:31 AM
Alun Hughes Alun Hughes is offline
 
Join Date: Feb 2009
Location: York, UK
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I'm using v3.8.1. I made the change but I still need to link including the 'index.php' suffix. Any ideas? I get the default Appache Test page without it.

Many thanks,

Alun
Reply With Quote
  #31  
Old 08-15-2009, 02:38 PM
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Posts: 214
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
I'm using v3.8.1. I made the change but I still need to link including the 'index.php' suffix. Any ideas? I get the default Appache Test page without it.
It surly relate to your server config... And do not forget to restart appache if you change the settings.
But no other idea. It works perfect on 2 of my forums.
Reply With Quote
Reply

Thread Tools

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 06:00 PM.


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.04845 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete