View Full Version : forumdisplay.php?f=x ... Changing 'x'
Lost_Prophet
03-16-2006, 07:13 AM
This is a slightly odd request perhaps, but one of my users is attempting to make a forum-dependant signature script (that displays a certain sig image depending on the forum you're in)
He's basically - to my knowledge - doing an "if in this forum, display image X" style script. However its pretty tedious with all the forum numbers, and we have 160 forums including catagories
Is there a way to:
a) Alter the number that comes at the end of a forum (forumdisplay.php?f=x) to anything - eg abc01, abc02, etc.
b) Assign some sort of 'mask' to a set of forums so that they all display the same URL
You could just ask him to stop.. if that doesn't work then give him a temporary ban.
As far as I know there is no easy way to do what you want..
Do you have HTML enabled? If so and if that's how he's doing it, you could always just turn off HTML.
Maybe give some more details about this. I'm confused exactly how he is doing this.
Xenon
03-16-2006, 12:09 PM
@007: i think the imagescript uses the referrer url of a user's browser, at least i'd do it that way
Princeton
03-16-2006, 12:43 PM
Lost_Prophet,
I'm a little confused.
What exactly do you want to achieve? Goal?
Lost_Prophet
03-16-2006, 12:57 PM
Sorry, I wasn't clear :)
It's not that I *don't* want him to do it (HTML is turned off)
I'm setting up a site with multiple games (MMOs, FPSs, etc) and I wondered if there would be a way to create something that would display Signature X when in forum X, Signature Y when in forum Y, etc.
I believe he's working on a modification of the ubiquitous rotator.php file, displaying a certain image based on the path of the forum.
If there's an easier way to do this I'd be all ears, but I haven't a clue and this user is the only one competant enough thats willing to offer up a solution.
What I was thinking was - if I could replace the 'x' of the forum with something else (a letter or letter+number code for the type of forum it is) it would make creation (or at least testing) of the script simpler.
Princeton
03-16-2006, 01:33 PM
You don't need a script.
Create all images with the same name and append the forumid to the name
For example: sigimage$post[forumid].gif
Now create a sigimage for each forum and name them ...
sigimage1.gif
sigimage2.gif
sigimage4.gif
sigimage5.gif
sigimage6.gif etc, etc
if you do not want image to display in a certain forum use a conditional statement
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.