FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » What is the variable name for the forum icon?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
What is the variable name for the forum icon? [message #6532] Wed, 16 October 2002 01:25 Go to next message
Thomas is currently offline  Thomas   United States
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #6575 is a reply to message #6539] Thu, 17 October 2002 11:25 Go to previous messageGo to next message
Thomas is currently offline  Thomas   United States
Messages: 6
Registered: October 2002
Karma: 0
Junior Member
I understand that that's where the data for the forum icon is kept. Let me try to rephrase my question.

On the main index page you have a list of categories and forums within each category. A forum may be assigned an icon that appears in the table displayed on the main index page. The reference for the icon in that table comes in the form:

<img src="{VAR: data->forum_icon}" border=0 alt="{MSG: forum_icon}" />


Here's what I want to do. When I click on one of the forum links in that main table, I go into a specific list of messages, in either flat or threaded view. I want the icon associated with the forum to appear as a header graphic at the top of the page. I want the correct header to appear on each individual forum. I've tried putting that image tag into a number of different templates and all I get is a broken image (if I get anything at all.)

If I paste it into the main index template it shows up only on the first main page that lists categories and forums in a table. And I still only get a broken image.

So, is what I am doing possible, and which template corresponds specifically to the body of a particular forum?

To give a quick example of what I'd like to do

You have this nice FudForum banner at the top of each page. That's NOT what I'm trying to do. I understand that that was placed in the header as a static image link. You have a series of categories with forums in them. I'd like to, say, click on the How-to forum and have something like a toolbox graphic at the top of that forum. Then I'd like to go into the Announcements forum and have a different graphic portraying a big note pinned to a bulletin board.


I thought that assigning the individual graphics as forum icons and then using that code at the top of the page was the way to go. Tell me, what am I doing wrong?
Re: What is the variable name for the forum icon? [message #6589 is a reply to message #6575] Thu, 17 October 2002 21:37 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
Re: What is the variable name for the forum icon? [message #6635 is a reply to message #6589] Sat, 19 October 2002 22:50 Go to previous message
Thomas is currently offline  Thomas   United States
Messages: 6
Registered: October 2002
Karma: 0
Junior Member
Thanks. That did the trick.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: add my web sites header to the forum
Next Topic: What font did you use to create the buttons?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 07:24:43 GMT 2024

Total time taken to generate the page: 0.02352 seconds