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)

MrNase 10-12-2003 08:00 AM

does this work for 2.3.2 without problems?

i need a .htaccess Version that works with 2.3.2. Please help me :(

mottokrosh 10-20-2003 09:00 AM

Hey guys,

Having gone through this thread from the beginning to establish the definitive hack installation, the mention of vb3 caught my eye.

Will vb3 have spider-friendly URLs by default? If so, when is it coming out, any ideas? Is it possible to download a beta?

M.

gmarik 11-11-2003 02:27 PM

Does this works for:
1) 2.3.2
2) vB3 beta 7 ?

buro9 11-11-2003 05:13 PM

Quote:

Originally Posted by gmarik
Does this works for:
1) 2.3.2

yes
Quote:

Originally Posted by gmarik
2) vB3 beta 7 ?

not with these precise instructions, but you could adjust it to make it work on any website... the reliance is an mod_rewrite and not any particular code underneath.

but being cautious... i'd say don't do this until VB gets out of beta... they'd be too many releases and too much pain re-implementing on each version in between

PurpleCow 12-09-2003 04:56 AM

hello,

I am using this hack, ... lierduh's instructions in this post https://vborg.vbsupport.ru/showpost....&postcount=223 and its is working fine with some minor problems.

I have teh done exactly the same as you specified in that post excepting this change as i could not find that code in my online.php

Quote:

In online.php, find:

$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc);

add the following lines:

$loc=preg_replace("/f(\d+).html/","forumdisplay.php?forumid=\$1",$loc);
$loc=preg_replace("/t(\d+).html/","showthread.php?threadid=\$1",$loc);
$loc=preg_replace("/t(\d+)-(\d+)-(\d+).html/","showthread.php?threadid=\$1",$loc);
Now the problem is, the multi page navigation.

Please check this page : http://hostmarket.hostbubble.com/f22.html

It does show the multiple pages, but when i clcik on the second page, it shows all the threads and there is no links at the bottom for next or previous page. What wrong have i done.

My forum is here : http://hostmarket.hostbubble.com

Thanks much for any help
Cheers

PurpleCow 12-09-2003 06:19 AM

Okay, I think, i have solved the above mentioned problem and works fine.
However, i'll have to say that, what works on my forum is :

for multi page nav - this is the urls : t3-5.html and not of this type t3-15-5.html ... and actually this t3-5.html works fine. Is that okay and should not have any other problems ???

Okay, another request though :

is it possible to convert the forum jump url's and page navigation urls ( Marketplace > HostBubble Lounge > Suggestions & Feedback ) also to static using lierduh instructions and buro9 instructions.

Thanks much

iceman11111 12-11-2003 08:38 PM

Help, found a little problem

When I try and Update my counters I get a error for:

Update Thread Info


Database error in vBulletin Control Panel 2.2.9:

Invalid SQL: UPDATE thread SET lastpost=1055471230,replycount=9,postusername='tla ne', postuserid='2575', lastposter='GYMBRAT',attach= WHERE threadid=1999
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE threadid=1999' at line 1

mysql error number: 1064

Date: Thursday 11th of December 2003 03:38:08 PM
Script: http://www.intense-training.com/foru...dmin/misc.php3
Referer: http://www.intense-training.com/foru...ion=chooser&s=



Thanks
iceman

lierduh 12-13-2003 12:02 AM

Quote:

Originally Posted by gmarik
Does this works for:

2) vB3 beta 7 ?

With the Beta 7, I have dropped the whole idea. There is too much to modify. I have adopted the easy way out: Kill the seesion ID, and be done with it.

Without the session ID, Googles etc will index the forums. Find sessions.php under includes. Note the codes already include disabling session ID for Googles. What I have done is:

diff sessions.php~ sessions.php
PHP Code:

380,381c380,381
< if ($nosessionhash == OR preg_match("#(google|slurp@inktomi)#si"$_SERVER['HTTP_USER_AGENT']))
< { 
// if user is working through cookies, blank out the sessionhash
---
//if ($nosessionhash == 1 OR preg_match("#(google|slurp@inktomi)#si", $_SERVER['HTTP_USER_AGENT']))
//{ // if user is working through cookies, blank out the sessionhash
385c385
< }
---
/*}
392c392

---
> */ 

Basically I completely disabled the session ID. So the forums can be indexed by any search engine. So far no member has complained that cookies-on is the only way to use the board.

With forums used my rewriterules. It is essential to modify the rewriterules so that an old link to the f123.html etc still works, search engine will have your old URL for the forums and threads, you need to make sure they work. I have:

Code:

RewriteEngine on

RewriteRule ^f([0-9]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^f([0-9]+)-([0-9]+)\.html$ forumdisplay.php?f=$1&page=$2&sort=lastpost&order=&pp=25&daysprune=1000 [L]
RewriteRule ^t([0-9]+)\.html$ showthread.php?t=$1 [L]
RewriteRule ^t([0-9]+)-([0-9]+)-([0-9]+)\.html$ showthread.php?t=$1&pp=$2&page=$3 [L]


lierduh 12-19-2003 09:34 AM

I have noticed Google does not index the archive pages. Probably the contents of the url after the "index.php/" are ignored by Google. I have made a rewrite rule trying to overcome this.

RewriteRule ^arc/(.*)$ archive/index.php/$1 [L]

All I need to do is including the above to my existing rules, and find "footer" template, change "archive/index.php/" to "arc/".

Nothing else needs to be changed.

The actual url for Google to see will be:

http://www.mysite.com/arc/f-40

etc. Now if Google does not index this, I don't know what would they index.:)

(I am using v3 Gamma at the moment).

gmarik 12-25-2003 07:44 AM

I'm been hacking vB2 for quite a long time (about two years), but still I could not figure out all about the re-write function that some vb board use. And now with vb3 Gamma things have changed. What I could really use would be:



1) every forum (forumdisplay.php?f=55, for example) has another field called "description", let's say "sport", for example.

2) every subforum can be called as /forums/sport and it goes right to it, with no ".php?f=" between them

3) it should be as an on/off option admin could choose from



Respect, Marco


All times are GMT. The time now is 04:22 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.01365 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)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