[2.0.7] Animated New Message Icon Mod

The cleanup is complete. This forum is now read only.

Rating:

Excellent!
17
57%
Very Good
5
17%
Good
4
13%
Fair
1
3%
Poor
3
10%
 
Total votes: 30

User avatar
jsundquist
Registered User
Posts: 40
Joined: Tue Sep 30, 2003 3:00 pm
Location: Minnesota, USA

Post by jsundquist »

I am having problems getting the blinking image from page two to work with Charcoal2. I replaced the lines it stated and now the blinking image comes up as it if can not be found. When I mouse over the image it shows the mouse over like it is suppose to then it goes back to the standard image when I mouse out. Whats up with that? Also why is my image not showing up in the first place. Any help would be nice.

Here is my code

overall_header.tpl

Code: Select all

<td width="111"><a onmouseover="changeImages( /*CMP*/'pms',/*URL*/'templates/Charcoal2/images/pms_on.jpg');return true" onmouseout="changeImages( /*CMP*/'pms',/*URL*/'templates/Charcoal2/images/pms.jpg');return true" href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" alt="" name="pms" height="37" width="111" border="0"></a></td>
Charcoal2.cfg

Code: Select all

$images['pm_new_msg'] = "$current_template_images/pms.gif";
$images['pm_unread_msg'] = "$current_template_images/pms_blink.gif";
$images['pm_no_new_msg'] = "$current_template_images/pms.gif";
After just looking at the cfg file, do I have where the blinking image in the wrong spot?
vHiker
Registered User
Posts: 333
Joined: Thu Feb 14, 2002 9:59 pm

Post by vHiker »

I think you need to change the onmouseout image from:

/*URL*/'templates/Charcoal2/images/pms.jpg'

to:

/*URL*/'{PRIVMSG_IMG}'
jsundquist wrote: Also why is my image not showing up in the first place.

You need to create a blinking image (pms_blink.gif) and put it in the templates/Charcoal2/images/ folder, for example:

Image

You also need to set the following to the proper image for the Charcoal 2 theme:

$images['pm_new_msg'] = "$current_template_images/pms_on.jpg";
$images['pm_no_new_msg'] = "$current_template_images/pms.jpg";
patrickgillette
Registered User
Posts: 21
Joined: Mon May 02, 2005 12:59 am

Post by patrickgillette »

Did you ever get this working for Charcoal2? I'm planning on doing this MOD in the next few days and would appreciate some step-by-step instructions. I've killed my forums numerous times attempting to install MODS and I would feel alot better if I could get some help. Thanks.
boondocs
Registered User
Posts: 51
Joined: Thu Jul 01, 2004 12:46 am

Post by boondocs »

i was able to get this to work but i cant tell you step by step. i think mod install was good you just need to find the right files in your theme.
patrickgillette
Registered User
Posts: 21
Joined: Mon May 02, 2005 12:59 am

Post by patrickgillette »

Ok, I've got this working for Charcoal2, ONLY if I happen to mouseover on the image.

When the page loads, it's not auto-flashing if I have a PM. Any ideas on what I should edit?

EDIT: Figured it out!

Follow all the normal instructions for privmsg.php and page_header.php

Follow the instructions for subSilver.cfg with these changes for Charcoal2.cfg;

$images['pm_new_msg'] = "$current_template_images/pms_blink.gif";
$images['pm_unread_msg'] = "$current_template_images/pms_blink.gif";
$images['pm_no_new_msg'] = "$current_template_images/pms.jpg";

And the second to last line of code for overall_header.tpl (the part about pms) should read like this;

<td width="111"><a onmouseover="changeImages( /*CMP*/'pms',/*URL*/'templates/Charcoal2/images/pms_on.jpg');return true" onmouseout="changeImages( /*CMP*/'pms',/*URL*/'{PRIVMSG_IMG}');return true" href="{U_PRIVATEMSGS}"><img src="{PRIVMSG_IMG}" alt="" name="pms" height="37" width="111" border="0"></a></td>

Good luck!
salt6
Registered User
Posts: 40
Joined: Wed Jan 05, 2005 8:46 pm

Post by salt6 »

Works great. I had to do a little searching in one file. I had changed some stuff. Also used my own icons on on of my boards. Looks great.


Steve
chattalk
Registered User
Posts: 173
Joined: Fri Mar 18, 2005 3:42 am

Post by chattalk »

i installed ur MOD, but the images for the PM, the mini icons, dont show.
I think it may be because of the:
img src="{PRIVMSG_IMG}" in the overall header.tpl

because when i change the {PRIVMSG_IMG} to a link to the image it works.
User avatar
570thusaag
Registered User
Posts: 122
Joined: Thu May 19, 2005 1:44 am

Post by 570thusaag »

Is there a mod out there that just uses the wiggly message indicator for new messages posted, and does not add all of the rest of this stuff?
chattalk
Registered User
Posts: 173
Joined: Fri Mar 18, 2005 3:42 am

Post by chattalk »

anyone know how to fix my problem.. ^^ up thr ??
vHiker
Registered User
Posts: 333
Joined: Thu Feb 14, 2002 9:59 pm

Post by vHiker »

I'm guessing you haven't installed the mod properly. Make sure you have set $icon_pm properly in page_header.php, and that you have also set $images['pm_new_msg'], $images['pm_unread_msg'], and $images['pm_no_new_msg'] properly in subsilver.cfg (or whatever template you are using, if not subsilver).
marksalehouse
Registered User
Posts: 268
Joined: Tue Dec 28, 2004 5:35 pm
Location: N.I.
Contact:

Post by marksalehouse »

Brilliant piece of work, thanks.

However, I did notice on my copy (though this might not be on others) that there is a link underline on the space before the image, so I changed the overall_header.tpl from

<a href="{U_PRIVATEMSGS}" class="mainmenu">
<img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />
{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;


to this

<img src="{PRIVMSG_IMG}" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />
<a href="{U_PRIVATEMSGS}" class="mainmenu">
{PRIVATE_MESSAGE_INFO_UNREAD}</a>&nbsp;


Notice I left out the height/width parameters. This is because I used my own animated gif which is longer than the original - icon_mini_message_new.gif. I did a version for subSilver (5 repeats and then static arrow) if anyone cares to have a look

http://www.spbwni.co.uk/icon_mini_message_new.gif

I also did a version for the unread messages (static arrow)

http://www.spbwni.co.uk/icon_mini_message_unread.gif


Although I had worked as a Mod for a couple of years at portal.portland.co.uk I never got into the Admin work. I am just a complete newbie Admin at www.spbw.com/bb/ and mods like this are fun - especially when they work first time.

Mark
ciscoguy24
Registered User
Posts: 15
Joined: Sat Jul 30, 2005 7:55 pm

need help with this mod

Post by ciscoguy24 »

Great mod i love it! One problem though after i installed the mod and i tested it. It keeps saying that i have 1 unread message when i really don't. I deleted all my messages and cleared my cache/cookies and it still shows 1 unread message any ideas?
StarInShadows
Registered User
Posts: 1
Joined: Sat Aug 06, 2005 12:45 pm
Contact:

Post by StarInShadows »

I love the mod but I'm having the oddest problem with it. The flashing icons work. The pms send and are recieved just fine but when you hit the submit button it gives you this error:
General Error

Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : emailer.php


Line 234 of my emailer.php file reads:
message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);


I'm a total n00b when it comes to PHP so I'm at a total loss as to why it's doing this. I used Easymod to install it and as I said everything works it just gives me this random and seemingly useless error. Any ideas on how to fix it? I'm thinking I might be having problems with my email notifications which is probably the cause of this. Again I have no idea how to fix it and I'm not even sure who to ask considering that's a core function and I haven't looked around this site very much yet. Any help you could give me would be greatly appreciated.
~Star
rhinton
Registered User
Posts: 299
Joined: Sat Dec 20, 2003 8:01 pm
Location: orlando, fl

Post by rhinton »

mine blinks yellow now :D
Van Zant
Registered User
Posts: 154
Joined: Tue Aug 16, 2005 3:15 am

Post by Van Zant »

does this work in 2.0.17?
Post Reply

Return to “[2.0.x] MOD Database Cleanup”