vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Spider friendly URLs (https://vborg.vbsupport.ru/showthread.php?t=18035)

eva2000 05-28-2001 08:53 AM

woah i had to edit nearly all of my templates :eek:

first important one

do a search template for the forum action part
Quote:

<form action="
and you'll have to change them all to
Quote:

<form action="/
otherwise, posting, replying, logging in and out and any forms won't work in netscape :(

only images i couldn't find the link to edit to add $bburl/ to are
Quote:

$post[foldericon]
and the only link i can't seem to find to add $bburl/ to is in forumdisplaybit

Quote:

$thread[postedby]
where is this ?

fastforward 05-28-2001 03:48 PM

I also had a problem with the bbcode smilies not showing up. I had to edit functions.php and add a slah before the href in this line:
Code:

$bbcode=str_replace(trim($smilie[smilietext]),"<img src=\"/$smilie[smiliepath]\" border=\"0\" alt=\"\">",$bbcode);
It's on or around line 362.

Not sure about the posted by link yet.

I wish I'd never thought of this hack now :(

eva2000 05-29-2001 12:52 PM

i fixed the smilies and posticon problem by adding a slash / in the edit smilies in the admin panel

also another problem

merging threads won't work with your shorter url :(

is it possible to show/display the real url in a small table on/under the thread or on the merge thread template

i.e. display something like please input the thread to merge in the format

http://animeboards.com/showthread.php?s=&threadid=XXXX

where XXXX corresponds to

http://animeboards.com/tXXXX/s.html

fastforward 05-29-2001 03:44 PM

Quote:

Originally posted by eva2000
i fixed the smilies and posticon problem by adding a slash / in the edit smilies in the admin panel

also another problem

merging threads won't work with your shorter url :(

is it possible to show/display the real url in a small table on/under the thread or on the merge thread template

i.e. display something like please input the thread to merge in the format

http://animeboards.com/showthread.php?s=&threadid=XXXX

where XXXX corresponds to

http://animeboards.com/tXXXX/s.html

What we need is a little link that can be displayed on every page that whne clicked, will reload whatever page you happen to on using the original url. It should be possible with a seperate php script. However, I gotta wonder if it's really worth the hassle. I might just give it up and just use Overgrow's hack.

There must be an easier way than this. I'm going to spend a few hours reading the Apache docs. I can't believe it needs to be this hard.

eva2000 05-29-2001 03:49 PM

Quote:

Originally posted by fastforward

What we need is a little link that can be displayed on every page that whne clicked, will reload whatever page you happen to on using the original url. It should be possible with a seperate php script. However, I gotta wonder if it's really worth the hassle. I might just give it up and just use Overgrow's hack.

There must be an easier way than this. I'm going to spend a few hours reading the Apache docs. I can't believe it needs to be this hard.

well for what it's worth.. google.com bot paid my forums and visit and i can see it running all the way through my forums especially with overgrow's hack but yours as well :D

Porfiry 07-16-2001 04:52 AM

I see that I'm digging up an old thread, but I have a solution to the problem discussed.

The answer is rewriting!

Code:

RewriteRule ^f([0-9]+)/s([^/]*)/$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)/s([^/]*)/thread\.html$ /showthread.php?threadid=$1&s=$2 [L]

RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

I've modified the first 2 rules a bit to make things easier. The 3rd rule simply changes any URL like "/f1/s1/newreply.php" that would normally cause a problem and just rewrites it to "/newreply.php". This should also work for any images. No need to muck with templates.

eva2000 07-16-2001 09:38 AM

Quote:

Originally posted by porfiry
I see that I'm digging up an old thread, but I have a solution to the problem discussed.

The answer is rewriting!

Code:

RewriteRule ^f([0-9]+)/s([^/]*)/$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)/s([^/]*)/thread\.html$ /showthread.php?threadid=$1&s=$2 [L]

RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

I've modified the first 2 rules a bit to make things easier. The 3rd rule simply changes any URL like "/f1/s1/newreply.php" that sould normally cause a problem and just rewrites it to "/newreply.php". This should also work for any images. No need to muck with templates.

where were you when i added this hack :)

what i did for my subsequent styles was create replacement variables for form and other urls and it works but i'll try your method when an upgrade to the next release might force me to revert too many templates :D

VirtueTech 07-17-2001 03:55 PM

Eva check your PM's please

fastforward 07-18-2001 03:50 PM

Like eva2000, I also solved it the hard way :(

Although the form problems were happening in both IE and Netscape, Netscape also had a lot of other problems with normal links. Does this method work with Netscape?

I'll try it when 2.02 is released :)

steven 07-24-2001 05:42 PM

Quote:

Originally posted by porfiry
I see that I'm digging up an old thread, but I have a solution to the problem discussed.

The answer is rewriting!

Code:

RewriteRule ^f([0-9]+)/s([^/]*)/$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)/s([^/]*)/thread\.html$ /showthread.php?threadid=$1&s=$2 [L]

RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

I've modified the first 2 rules a bit to make things easier. The 3rd rule simply changes any URL like "/f1/s1/newreply.php" that sould normally cause a problem and just rewrites it to "/newreply.php". This should also work for any images. No need to muck with templates.

Sorry to bring up an old thread again, but I would like to use this hack on my board and had a couple of questions. I was wondering how I would change the above code to reflect my forums directory which is not run as root, but is run as http://www.mydomain.com/forums

Any Help is greatly appreciated.
Steven


All times are GMT. The time now is 09:32 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.01193 seconds
  • Memory Usage 1,751KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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