Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: tropicallili - joulukuu 13, 2005, 07:50:58 IP

Otsikko: Message icons Question
Kirjoitti: tropicallili - joulukuu 13, 2005, 07:50:58 IP
Sorry if this is the wrong place or it's been asked already but I did some browsing and couldn't find anything... Of course I could have missed something.

But I've created some message icons that I want to replace with the "angry", "question", etc.  But they are aren't at all related to "angry", "question", etc.  So I want to know how to change the text in the drop down menu, as well as  :-\ putting up the different file names as I don't think a ship icon would match with a "angry.gif" name.  Umm... I hope that makes sense.  I've looked in the post.template.php and messageindex.template.php to see if the option to change them is there as it only seems logical that they would be placed in one or the other.  So yes, lol... that's my question.  where?  It's driving me nuts. haha...
Otsikko: Re: Message icons Question
Kirjoitti: B - joulukuu 14, 2005, 09:22:46 AP
If you're using SMF 1.1 RC1 there is a whole interface for adding message icons. Check the Smileys and Message Icons link in your Admin Center.

B
Otsikko: Re: Message icons Question
Kirjoitti: tropicallili - joulukuu 14, 2005, 11:37:11 AP
Thanks, No... I'm using 1.0.3 so I'm guessing that's un update.  I'm running it with a friend so I'll have a talk with him about updating since it's on his server.  By any chance, would this ruin all the progress I've done already? And is there a way to do it with the version I have now?  Sorry for all the questions.
Otsikko: Re: Message icons Question
Kirjoitti: B - joulukuu 14, 2005, 12:12:35 IP
Lainaus käyttäjältä: tropicallili - joulukuu 14, 2005, 11:37:11 AP
By any chance, would this ruin all the progress I've done already?

I'm not really sure what you're asking here. If you mean will upgrading lose all of your posts, members, etc., then no. :)

B
Otsikko: Re: Message icons Question
Kirjoitti: tropicallili - joulukuu 14, 2005, 12:23:51 IP
sorry, I should have been more specific.  I mean the theme and look of my forum.  Thanks again, for being so helpful!  I really appreciate it. *hugs*
Otsikko: Re: Message icons Question
Kirjoitti: fallen_angel - kesäkuu 02, 2006, 06:37:57 IP
I know this is an old thread, and this is probably way too late, but I thought I'd post my solution to this (I'm using 1.0.7) incase anyone else is trying to do the same thing and isn't ready to upgrade to SMF 1.1 RC1 yet.  ;)

The array for the icons is in post.php
$context['icons'] = array(
array('value' => 'xx', 'name' => $txt[281]),
array('value' => 'thumbup', 'name' => $txt[282]),
array('value' => 'thumbdown', 'name' => $txt[283]),
array('value' => 'exclamation', 'name' => $txt[284]),
array('value' => 'question', 'name' => $txt[285]),
array('value' => 'lamp', 'name' => $txt[286]),
array('value' => 'smiley', 'name' => $txt[287]),
array('value' => 'angry', 'name' => $txt[288]),
array('value' => 'cheesy', 'name' => $txt[289]),
array('value' => 'grin', 'name' => $txt[293]),
array('value' => 'sad', 'name' => $txt[291]),
array('value' => 'wink', 'name' => $txt[292])
);

I gave my new icons the same names as the original images, so I didn't need to change the names at all.
The relevant $txt[xxx] entries I found were in post.english.php and english.index.php. I simply changed the relevant $txt[xxx], e.g.
$txt[286] = 'Lamp';
to
$txt[286] = 'Idea';
and now my new icons display my new text and I'm a very happy little angel.  ;D