| | |
vBulletin mod_rewrite
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Aug 2004
Posts: 18
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by xStylezx
Ted didnt post any code specific to the navbit did he?
Some of this navbit stuff i already had done myself as i did some previous hacks to remove sid from the url's and some other things to make my forum more google friendly.
edit: i almost have the code modified correctly that goes into showthread.php and displayforum.php...
[PHP]foreach ($parentlist AS $forumID)
{
$forumTitle = $forumcache["$forumID"]['title'];
$navbits["f$forumID-$forumTitle.html"] = $forumTitle; // edited by dani
}[/PHP]
Only thing that it doesnt do is put the Forum Title like Ted's does (lowercase hyphenated). I dont know PHP, just general coding knowledge, so kind of struggling here

Example of the URL it is doing now: http://www.thepcforum.com/forum/f6-Processors%20(CPU).html
•
•
Join Date: Aug 2004
Posts: 40
Reputation:
Solved Threads: 0
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
•
•
Join Date: Aug 2004
Posts: 18
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Ted S
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
Wow... this is really nice, but I was getting a little confuse as to what should be done. Really new to doing mods to my board and don't want to mess things up. I don't have any options for my members to change the styles, so where should I start... it looks as though many things have changed and I don't want to put some thing in only to find (hopfully) that addition was incorrect.
Has any one have all the steps in the correct order so it's not really confusing?
Has any one have all the steps in the correct order so it's not really confusing?
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.
•
•
•
•
Originally Posted by Ted S
It looks like you missed the party by keith... $thread['url'] = ereg_replace("[/?!.$%£()~*@]+", "", $thread['url']); (I believe thats on page 5 of the thread)
•
•
•
•
Originally Posted by cscgal
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.
Thank you, that clears it up

OH... how can I get my board to use the same "Quote" (how it looks)
•
•
•
•
Originally Posted by cscgal
There are two methods. If you want to go with my method, you need only to follow the directions exactly as in post #1 and later in post #24. If you want to follow Ted's method, first apply my original hack, and then follow the alterations in post #41. I'm pretty sure that's it.
So I would need to do post #1 then #41... correct?
To use Ted's method, first implement my hacks in post #1 and post #24. And then Ted's alterations in post #41.
I have a Q about .htaccess
It has to do with the Rewrite Rule:
For my board I have a forum called 4XTraders.com Forex Announcements and Discussions and its URL is
Now in my .htaccess file would I write it as
-----Edit------
Weird... I didn't look at my url for my post but it looks like it had already changed my urls without having to write the rule for this forum.... so I still need to do this?
RewriteRule ^4XTraders_Forex_Announcements_Discussions.html$ forumdisplay.php?f=1 [L]
It has to do with the Rewrite Rule:
PHP Syntax (Toggle Plain Text)
RewriteRule ^forum-one.html$ forumdisplay.php?f=1 [L] RewriteRule ^forum-two.html$ forumdisplay.php?f=2 [L] RewriteRule ^forum-three.html$ forumdisplay.php?f=3 [L]
For my board I have a forum called 4XTraders.com Forex Announcements and Discussions and its URL is
PHP Syntax (Toggle Plain Text)
http://www.4xtraders.com/forum/4xtraders.com-forex-announcements-and-discussions.html
Now in my .htaccess file would I write it as
-----Edit------
Weird... I didn't look at my url for my post but it looks like it had already changed my urls without having to write the rule for this forum.... so I still need to do this?
RewriteRule ^4XTraders_Forex_Announcements_Discussions.html$ forumdisplay.php?f=1 [L]
![]() |
Similar Threads
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- vBulletin mod_rewrite for vB 3.0.7 (Existing Scripts)
- vBulletin mod_rewrite for vB 3.0.7 (Growing an Online Community)
- vBulletin mod_rewrite in phpBB mod format (Existing Scripts)
Other Threads in the PHP Forum
- Previous Thread: Help Needed
- Next Thread: mysql_num_rows warning
| Thread Tools | Search this Thread |
# 5.2.10 alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions simple sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube






