PDA

View Full Version : Calling value from FORUM table


MarkB
01-01-2002, 09:37 PM
I have a new field in my forum table, and want to be able to call its value from anywhere that a particular forum's values would be used (ie, forum display, within a thread, ie anywhere its logo would be seen).

Can anyone tell me how I would call this value? I've tried various ways and nothing works :(

Admin
01-02-2002, 10:41 AM
Usually things like $forum[fieldName] or $foruminfo[fieldName], but you'll need to be more specific if you want a more specific answer. :)

MarkB
01-02-2002, 11:05 AM
Ok :)

I have field 'Something' within the 'forum' table, which I want associated with the header template for use within the relevant forum (and which can be changed depending on the forum).

I want to be able to set this within the header template, so I'm assuming $forum[Something] won't work since that only works for one of the two (forumdisplay & showthread - can't remember offhand which uses $forum and which uses $foruminfo!:)).

I figure I will just need to have it run through a template, but am at a loss of how to do it... mental blank, y'see :)

Thanks for the response! :)

MarkB
01-03-2002, 11:20 PM
Nevermind, I found another way to run the hack. Thanks anyway.