Board Name in MessageIndex.template.php

Started by hubfub, February 03, 2007, 01:44:00 AM

Previous topic - Next topic

hubfub

SMF Version: SMF 1.1.1
Hi guys,

Im a bit a newbie at php so this is kinda a stupid question

in MessageIndex.template.php how do I get it to display the name of the board

$context['current_board'] displays the board ID but i need to display the actual name .. how do i do this?

thanks  :)

KGIII


My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

hubfub

#2
I would like to display on page of the board that lists all the topics so within MessageIndex.template.php  is there another variable which i can just use similar to $context['current_board']  which will just display the board name on the page which lists all the topics of the board?

KGIII

I am still not sure I am understanding what it is you are trying to ask. You can likely get a list of all the topics using something like SSI.php. Open your forum up, change the index.php to ssi_examples.php in your address bar and hit enter.

I think you are asking about $context['current_topic'] or $context['topic_first_message'] perhaps?

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

hubfub

HI KGIII,

thanks for you patience and sorry about the confusion.

if you refer to the attached screenshot of the SMF forums.. this particular page is the message index of "General English Support"

I was wondering if I could display on this very page like say a bit after the child boards table the words General English Support (ie the name of the board) and what I would have to modify to  MessageIndex.template.php to do so

Thanks  :)

KGIII

I think I understand what you want. Do you want it below the LIST of child boards or where it SAYS child boards? In other words, in your example, do you want it directly above OR below the "Performance and Server Configuration?"

(I still don't know the answer no matter what your response is. I am looking and I am not sure if it is $board or ['ID_BOARD'] - for starters - but it is probably $board_info['name'] I suppose.)

In short, what you are asking, seems to be a rather problematic pain in the butt.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

hubfub

yes! u know what im looking for .. i want it below "Performance and Server Configuration?"

but the values u gave me didnt work :( .. is there a way to find out?  

KGIII

I have pinged the people who are more adept than I already. Maybe they will see something that I am missing. There are still many parts of SMF that are new to me but your question wasn't really clear so, even if I couldn't answer, I could ask for more information so that it was easier for someone more adept than I.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?


niko

You can either add $board_info to globals or you can use $context['name']
Websites: Madjoki || (2 links retracted by team, links out of date and taken over.)
Mods: SMF Arcade, Related topics, SMF Project Tools, Post History

WIP Mods: Bittorrent Tracker || SMF Wiki

hubfub


KGIII


My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Advertisement: