Log in

View Full Version : Variable for Forum ID Number?


James Grant
08-15-2005, 05:43 PM
Hello,

This is probably something really obvious, but I cant find it :rolleyes:

Does anyone know the variable name for the forum ID number?

I want to host a picture at the top of my site in VBulletin, depending on what forum they are viewing

e.g. the source of the image would be something like

http://www.myforum.com/images/[forumid].gif



So that the image changes depending on where i am...

e.g. it would change to 1.gif, 3.gif etc...

Anyone know? It's probably something obvious



J

Boofo
08-15-2005, 06:56 PM
$forum['forumid']? ;)

BigIke
08-15-2005, 07:02 PM
I'm no expert, but wouldn't some sort of if/then statement based on $forum['forumid'] have to be made in the header template?

bigcurt
08-15-2005, 07:47 PM
I want a list of ALL the vB variables for things like this..that is what I want to see...I havent seen it yet

/me gets to work

~Curt

BigIke
08-15-2005, 07:51 PM
If I remember correctly someone posted a list of all the variables over at vbulletintemplates.com so it should be around here somewhere

James Grant
08-15-2005, 08:43 PM
$forum['forumid']? ;)



hmmm it comes up with a parse error if you put in $forum['forumid']

But i've noticed in the rest of the file the variables are in there without the ' '

So i tried

http://www.forum.com/images/$forum[forumid].gif

Which is not generating any parse errors, but it's just coming up with

http://www.forum.com/images/ .gif


I'll have look and see if perhaps that's not the correct variable?
I'm in the process of moving over from SMF and i can do it in that :surprised: I just dont want to make styles for every single board.... I only want to change the logo at the top

I'll keep tryin tho!! would be cool if anyone else has any suggestions lol


James :squareeyed:

grrr just tried it with

images/topics/$session[sessionurl].gif

just to see if it would generate some sort of

images/topics/235654654879846513.gif type thing, but it still just says

images/topics/ .gif


:tired:

So i dont think this is the write approach lol

:disappointed:

Hoorah!

it's just

images/topics/$forumid.gif

Cheers Boofo for pointing me in the right direction anyways :)

And to you other guys!!