What is the variable name for the forum icon? [message #6532] |
Wed, 16 October 2002 01:25 |
Thomas
Messages: 6 Registered: October 2002
Karma: 0
|
Junior Member |
|
|
I'm trying to customize each of my forums within a category with a different header graphic. I figure that the forum icon is forum specific. If I put a line in a template that calls the forum icon variable, can I use that to add my header graphic? Also, what template file would I need to edit to put that in, ie which one corresponds to the body of the forum where the message list is displayed?
|
|
|
Re: What is the variable name for the forum icon? [message #6539 is a reply to message #6532] |
Wed, 16 October 2002 14:00 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
You need to edit index.tmpl template.
The icon data is inside
{SECTION: forum_icon}
<img src="{VAR: data->forum_icon}" border=0 alt="{MSG: forum_icon}" />
{SECTION: END}
The actual forum 'row' in defined inside
{SECTION: index_forum_entry forum entry row}
FUDforum Core Developer
|
|
|
|
Re: What is the variable name for the forum icon? [message #6589 is a reply to message #6575] |
Thu, 17 October 2002 21:37 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
okie, well you need to modify 4 templates.
Specifically:
thread.tmpl
threadt.tmpl
msg.tmpl
tree.tmpl
Inside those files you have an object called $frm, this object contains all the properties of the forum including the forum's icon, which can be access via $frm->forum_icon. So, all you need to do is modify the templates to display this data by adding something like this"
<img src="{VAR: frm->forum_icon}">
FUDforum Core Developer
|
|
|
|