vBulletin mod_rewrite in phpBB mod format

Reply

Join Date: Jan 2005
Posts: 13
Reputation: Gandalf is an unknown quantity at this point 
Solved Threads: 0
Gandalf's Avatar
Gandalf Gandalf is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #1
Jan 26th, 2005
I have made original Dani instructions in phpBB mode like format that i hope will be of use to you.

Here it is:

##############################################################
## Hack Title: vBulletin 3x mod_rewrite
## Author: Dani http://www.daniweb.com/
## Contributor: Gandalf Forums Directory - remake into phpBB mods like format
## Description: make your vBulletin forum search engine spiderable - for Google and all the others
##
## Compatibility: 3x
##
## Installation Level: Moderate
## Installation Time: 20 Minutes
##
## Files To Edit: 10
## forumhome_forumbit_level1_nopost
## forumhome_forumbit_level1_post
## forumhome_forumbit_level2_nopost
## forumhome_forumbit_level2_post
## forumhome_subforumbit_nopost
## forumhome_subforumbit_post
## forumhome_lastpostby
## threadbit
## forumdisplay.php
## showthread.php
##
## Included Files: 1
## .htaccess
##
##
##
## Support: http://www.daniweb.com/techtalkforums/thread17549.html
## Copyright: Copyright © 2004 Danielle Horowitz http://www.daniweb.com/
##
#
#-----[ CREATE .htaccess file]------------------------------------------
#

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]


#----[GO TO Styles & Templates/Style Manager/Edit Templates/Forum Home Templates/]
#
#----[OPEN]---------------------------
#
#forumhome_forumbit_level1_nopost
#forumhome_forumbit_level1_post
#forumhome_forumbit_level2_nopost
#forumhome_forumbit_level2_post
#forumhome_subforumbit_nopost
#forumhome_subforumbit_post
#
#
#----Find in above templates-----------------

a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">

#----Replace with-----------------------------

<a href="forum$forum[forumid].html">

#
#----[OPEN forumhome_lastpostby template]-------------
#
#----Find---------------------------------------

<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" title="<phrase

1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>

#
#----Replace with----------------------------
#

<a href="newpostinthread$lastpostinfo[lastthreadid].html" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>

#
#----Find---------------------------------------
#

<a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0"

/></a>

#
#----Replace with----------------------------
#

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>

#
#----Find---------------------------------------
#

<a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$lastpostinfo[lastthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0"

/></a>

#
#----Replace with----------------------------
#

<a href="lastpostinthread$lastpostinfo[lastthreadid].html"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>

#----[GO TO Styles & Templates/Style Manager/Edit Templates/Threadbit Templates/]
#
#-----[OPEN threadbit template]-------------
#

#
#----Find---------------------------------------
#
<a href="showthread.php?$session[sessionurl]goto=lastpost&amp;t=$thread[threadid]">

#
#----Replace with----------------------------
#

<a href="lastpostinthread$thread[threadid].html">

#
#----Find---------------------------------------
#

<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]">

#
#----Replace with----------------------------
#


<a href="newpostinthread$thread[threadid].html">

#
#----Find---------------------------------------
#

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]">

#
#----Replace with----------------------------
#

<a href="thread$thread[threadid].html">

#
#----Find---------------------------------------
#

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]&amp;goto=lastpost$thread[highlight]">

#
#----Replace with----------------------------
#


<a href="lastpostinthread$thread[threadid].html">


#----[GO TO Styles & Templates/Style Manager/Edit Templates/Navigation / Breadcrumb templates/]
#----[OPEN navbar]
#
#---[Find (2 instances)]--------------------------
#
<a href="$vboptions[forumhome].php?$session[sessionurl]" accesskey="1">
#
#---[Replace with]--------------------------------
#
<a href="./" accesskey="1">

#----[OPEN forumdisplay.php]-------------------
#
#----Find--------------
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}
#
#----Replace with------
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forum$forumID.html"] = $forumTitle; // edited by dani
}

#----[OPEN shwothread.php]-------------------
#
#----Find---------------------------------------
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
}
#
#----Replace with----------------------------
#
foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["forum$forumID.html"] = $forumTitle; // edited by dani
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
I am not sure if this was already mentioned but when applying this code to latest vBulletin version i have 3.0.6 i faced a problem with the following code

<a href="forum$forum['forumid'].html">

and changing it to

<a href="forum$forum[forumid].html">
solved the problem.
Last edited by cscgal; Jan 26th, 2005 at 11:56 am.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,056
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 129
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite in phpBB mod format

 
0
  #2
Apr 30th, 2005
For those interested, I have a new version of the tutorial out: http://www.daniweb.com/tutorials/tutorial22840.html
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Existing Scripts Forum
Thread Tools Search this Thread



Tag cloud for Existing Scripts
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC