Welcome, Guest. Please Login or Register.
November 23, 2024, 02:56:50 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Test Board  |  Custom Message Icon « previous next »
Pages: 1 [2] Reply Ignore Print
Author Topic: Custom Message Icon  (Read 72199 times)
nietzscheatpetfish
Guest
Re:Custom Message Icon
« Reply #15 on: January 19, 2004, 12:18:52 PM »
Reply with quote

heh - doesn't really matter now; I've just finished up doing this on a forum I admin.

Pretty cool stuff.  

Here's how it's done (if you own / admin the forum and want to add icons to the list):

In Sources/ModifyMessage.php, you'll notice all your Message Icons starting at line 189 and continuing on until line 205 or so.  If you wanted to add, say, a menu option that said "nietzsche", and displayed an image called "niet.gif" in your Images/General folder, you would add this line
Quote<option value="niet">' . nietzsche . '</option>
(a PHP drop-down option; like a listbox in Java).
before these lines
Quote</select>
<img src="' . $gimagesdir . '/' . $row['icon'] . '.gif" name="icons" border="0" hspace="15" alt="" />
Logged
Donna T
Noobie
*
Posts: 2


WWW
Re:Custom Message Icon
« Reply #16 on: January 19, 2004, 10:00:56 PM »
Reply with quote

I tried your trick, nietzscheatpetfish, and it didn't work for me.  Too bad since I was really hoping to find a way to get rid of some of those lame icons and replace them with something more useful.  

Donna
« Last Edit: January 19, 2004, 10:01:31 PM by Donna T » Logged

nietzscheatpetfish
Guest
Re:Custom Message Icon
« Reply #17 on: January 20, 2004, 02:33:56 AM »
Reply with quote

Quote from: Donna T on January 19, 2004, 10:00:56 PM
I tried your trick, nietzscheatpetfish, and it didn't work for me.  Too bad since I was really hoping to find a way to get rid of some of those lame icons and replace them with something more useful.  

Donna

Bear in mind - my method (editing ModifyMessage.php) will work, but you'll need to go BACK to the message via "Modify" in order to see the icon(s).

I'm sure there's one in PostMessage or whatever, too ... I'll have to check it out.

Ideally, I could modify these to be PHP includes - I've already done this with our template.php files - and it's VERY handy for making menu changes ONCE and having them push over to all themes.  :)

PS:  You can see some of the new icons I've incorporated for our site out at this web address.

HTH.

N

* nietzscheatpetfish runs off to grep through the Sources directory files some more ....  ;D
« Last Edit: January 20, 2004, 02:37:27 AM by nietzscheatpetfish » Logged
nietzscheatpetfish
Guest
Re:Custom Message Icon
« Reply #18 on: January 20, 2004, 02:44:47 AM »
Reply with quote

It's likely in Sources/Post.php.

So you'll have to push the changes to 2 files, Post.php and ModifyMessage.php, in order for this to work "as one would expect".

You know, would there be any value to me modularizing this into a PHP-include??  [Unknown], you likely know this better than anyone else; if this would be a helpful thing, let me know and I should have it done tonight.  If not, then I'll just do it for petfish.

Here's the result of my grep:
Quotebash-2.05a$ grep "lamp" *
ModifyMessage.php:                                                             <option value="lamp">' . $txt[286] . '</option>
ModifyMessage.php.old:                                                         <option value="lamp">' . $txt[286] . '</option>
Poll.php:                                                                      <option value="lamp">' . $txt[286] . '</option>
Post.php:                                                                      <option value="lamp">' . $txt[286] . '</option>
Post.php:                                                                      <option value="lamp"' . ($icon == 'lamp' ? 'selected' : '') . '>' . $txt[286] . '</option>
Security.php:   $icons = array("xx", "thumbup", "thumbdown", "exclamation", "question", "lamp", "smiley", "angry", "cheesy", "laugh", "sad", "wink");

EDIT:  Oh yeah - Post.php is EXACTLY where it is.  :)
« Last Edit: January 20, 2004, 02:50:06 AM by nietzscheatpetfish » Logged
Donna T
Noobie
*
Posts: 2


WWW
Re:Custom Message Icon
« Reply #19 on: January 20, 2004, 06:16:54 AM »
Reply with quote

I tried to join PetFish to look at the changes you incorporated but my password wasn't accepted.

I got in!  Very nice modifications!

Anyway, we got the extra icon added to our message icon list.  It would be great to have a little script that does this tho...

;D

Donna
« Last Edit: January 20, 2004, 06:30:26 AM by Donna T » Logged

nietzscheatpetfish
Guest
Re:Custom Message Icon
« Reply #20 on: January 20, 2004, 07:52:43 PM »
Reply with quote

Quote from: Donna T on January 20, 2004, 06:16:54 AM
I tried to join PetFish to look at the changes you incorporated but my password wasn't accepted.

I got in!  Very nice modifications!

Anyway, we got the extra icon added to our message icon list.  It would be great to have a little script that does this tho...

;D

Donna

Very cool.

I'll see what I can do about writing a quick-hit plugin (which will load out into your Sources directory), and a replacement Post.php and ModifyMessage.php.  :)
Logged
nietzscheatpetfish
Guest
Re:Custom Message Icon
« Reply #21 on: January 20, 2004, 08:51:52 PM »
Reply with quote

The mod is done; I'll go ahead and zip it up and post it here (if I can)...

Bah.  No luck there.

Well, you can grab a copy here.  Please be nice to the server!   :P
« Last Edit: January 20, 2004, 09:01:23 PM by nietzscheatpetfish » Logged
darksteel
Sr. Member
****
Posts: 305


www.cmh-ip.net

luis18a@hotmal.com
Re:Custom Message Icon
« Reply #22 on: March 01, 2004, 10:34:05 PM »
Reply with quote

The Icon was delete

Salu2 :'(
Logged

mmmm....Searching Hosting !
homie
Jr. Member
**
Posts: 74


I Love YaBB SE.

Re:Custom Message Icon
« Reply #23 on: March 05, 2004, 04:36:58 AM »
Reply with quote

 ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) :: ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::)) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::) ::)
Logged

Pages: 1 [2] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Test Board  |  Custom Message Icon « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.053 seconds with 20 queries.