vAsia
10-08-2007, 05:33 PM
Hello,
Does anyone know how to create a hack where you enter the forum name and it goes to that particular forum..
Like I have a forum/category "food".
A visitor enters "food" in the field and presses "Go". Upon hitting "Go", he will be redirected to "food" forum.
If the forum doesn't exist, then it will output "Fourm not forum".
I think this requires forum id and forum name.
When people enter "food", it will search for the forumid and go there.
Something like this.
if () {
redirect ("http://DOMAIN/forum/forumdisplay.php?f=".$forumid);
}
Thanks.
Does anyone know how to create a hack where you enter the forum name and it goes to that particular forum..
Like I have a forum/category "food".
A visitor enters "food" in the field and presses "Go". Upon hitting "Go", he will be redirected to "food" forum.
If the forum doesn't exist, then it will output "Fourm not forum".
I think this requires forum id and forum name.
When people enter "food", it will search for the forumid and go there.
Something like this.
if () {
redirect ("http://DOMAIN/forum/forumdisplay.php?f=".$forumid);
}
Thanks.