View Full Version : changing 'forumid=' to 'id='
i know that involves alot of changes in files.. but here it is my question:
if i change everywhere in all files 'forumid' with 'id' (including tables) and run a clean install, everything should be the same right?
is it recommended? i know the upgrades will be a little painful but that's why we have araxis right? :)
let me know if it's a good idea...
Admin
06-30-2002, 04:20 PM
It's a bad idea. It sounds easy in theory, but it's not really. You have to go through each file, replacing forumid with id. But that's not enough, you also need to make sure no variables are overwritten ($id is more than likely already used in vBulletin).
If you only want to change the way it's displayed in links, there's a much easier way...
yep, it is a VERY bad idea. it messes the $iforumcache. i just tried.. :)
replacing it in files was not a prob, it took me 10secs...
If you only want to change the way it's displayed in links, there's a much easier way...
yes firefly.. that's what i need. i want to show it as id instead of forumid anywhere.. as you know my site will be vB powered...
can you teach me? thanks.
Admin
06-30-2002, 05:01 PM
In theory, something like this in global.php:
if (!isset($forumid) and isset($id)) {
$forumid = $id;
}
Is the most of the work. You should also do the same for $HTTP_POST_VARS/$_POST, in case other code checks explicitly that.
hmm that wont do it... it will still show in the url forumid=...
it doesnt matter, i dont care anymore. :)
less probs when you have less changes...
thanks for your help chen.
Admin
06-30-2002, 05:59 PM
Well of course, you must edit the templates to pass id instead of forumid through the URL. That bit of code just makes sure (at least most of) the PHP scripts works.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.