vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Static URLS (https://vborg.vbsupport.ru/showthread.php?t=67004)

younghistorians 07-09-2004 05:08 PM

Static URLS
 
Hi all,
I know this has been talked about before, but I am still alittle unclear as to what hack/mod would best suit what im looking for. I'm looking for some hack that will convert all of the board threads/posts into static URLS, such as www.yourforum.com/forum/t9837.html and www.yourforum.com/forum/f12.html

Can anyone recommend a hack to do this?

Thanks,
Vaughn

Andreas 07-09-2004 05:33 PM

If you are using Apache you could do the following:

.htaccess
RewriteEngine On
RewriteRule t([0-9]+)\.html$ showthread.php?t=$1 [QSA]
RewriteRule f([0-9]+)\.html$ forumdisplay.php?f=$1 [QSA]

Then edit all occurances of forumdisplay.php and showthread.php in the templates accordingly.

younghistorians 07-09-2004 05:56 PM

thanks, but is'nt there a hack that will do that? (I'm using VB3).

Andreas 07-09-2004 06:17 PM

There are several Hacks for the archive, but none for the forum IIRC.

cscgal 10-18-2004 01:38 AM

this should do it ...

http://www.daniweb.com/techtalkforums/thread9379.html

djohn 10-18-2004 03:37 PM

is there a way to make all forum and thread links look as http://www.site.com/forums/forum/4 for forumid 5 and http://www.site.com/forums/thread/23 for threadid 23 ?


All times are GMT. The time now is 01:41 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.01679 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete