PM Notification Bar

Started by Dzonny, March 15, 2009, 06:30:51 PM

Previous topic - Next topic

Dzonny

Version 2.0 Realised.
Now it works with smf 1.1.x and with 2.0 versions include 1.1.10 and 2.0RC1.2...
Enjoy.  8)

WIZARD87

using a custom 2.0 RC 1.2 theme and your mod is not working at all. not sure why but nothing happens ?

Dzonny

Quote from: WIZARD87 on September 16, 2009, 09:56:50 PM
using a custom 2.0 RC 1.2 theme and your mod is not working at all. not sure why but nothing happens ?
If you're using custom theme, you should add codes manually for Index.template.php
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1707;attach=109029;smf_version=2.0_RC1.2

Kyrna

Trying to install just now and got the "The package you are trying to download or install is either corrupt or not compatible with this version of SMF." I'm using 1.1.10. Can anyone help?

Kyrna

OK, ignore the above. I made the changes to the package-info.html that someone else mentioned, zipped it up, and was able to install just fine. My question is - how do I make this work in other themes? I tried parsing the instructions but it says it isn't compatible no matter which of the 1.x version I choose and I don't know if the instructions for 2.0RC will work just fine with 1.1.10 since I have no clue what the differences are between versions.

KahneFan

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Kyrna

Quote from: KahneFan on October 14, 2009, 09:38:44 PM
It parses for 1.1.8.
Not when I try. I tried for every version and it wouldn't parse any of the 1.x versions.

KahneFan

./Themes/default/index.template.php

FIND:

// The main content should go here.


REPLACE WITH:

if(!empty($context['user']['unread_messages'])) {     
echo '<br /><br /><div class="categoryframe tborder" style="width: 90%; text-align: center; margin: auto;"><h3 class="catbg headerpadding"><center>';       
echo '<a href="', $scripturl, '?action=pm">', $txt['msg_alert_you_have'], ' ', $context['user']['messages'], ' ', $context['user']['messages'] != 1 ? $txt['msg_alert_messages'] : $txt['message_lowercase'], $txt['newmessages4'], ' ', $context['user']['unread_messages'], ' ', $context['user']['unread_messages'] == 1 ? $txt['newmessages0'] : $txt['newmessages1'] , '.</a>';       
echo '</center></h3></div>'; }

// The main content should go here.



./Themes/default/languages/Modifications.english.php

FIND:

?>


ADD BEFORE:


//Start Pm Notification Bar by Dzonny
$txt['msg_alert_you_have'] = 'You have';
$txt['msg_alert_messages'] = 'messages';
$txt['message_lowercase'] = 'messages';
$txt['newmessages4'] = ',';
$txt['newmessages0'] = 'new message';
$txt['newmessages1'] = 'new messages';
//End Pm Notification Bar by Dzonny

#eric_on_twit| (video) Creating Themes for SMF | Reset Your Forum
NOTE: No PM's for support please.

Kyrna

That worked perfectly, thanks!

An awesome mod. :)

C4G-TK

This installed fine on RC2, but I don't have a 2nd account on the test forum to test it.  Has anyone else installed this on an RC2 forum, yet?

-img removed-

TheListener

#30
Quote from: C4G-TK on December 13, 2009, 07:02:32 PM
This installed fine on RC2, but I don't have a 2nd account on the test forum to test it.  Has anyone else installed this on an RC2 forum, yet?

Have installed the mod onto www.parascifi.net

Will be testing the feature out later tonight.

EDIT:

The mod does work on RC2

C4G-TK

Yepp, I upgraded last week or the week before (time is flying by) and it's working fine!

-img removed-

Jack_the_ripper


Dzonny


Jack_the_ripper


3mrhythm

i like the idea behind this.  do you think its possible to change the image used for the pm button to a different button when there is a new message?

instead of there being a bar with a notification..

my forum is www.nhfragswap.com/forum 

the theme is darkmark

i would love to be able to change the regular PM buttom  to a PM button with a exclaimation or something on it when there is a new message. I posted in the theme builders support thread a long time ago and never got a response.. figured you might have an idea of how i can make this happen :)


Thanks!
www.nhfragswap.com
www.yariscentral.com

SimpleGost

// The main content should go here.

I cant find this code in my theme....

TheListener

Quote from: InternetFazoni on November 26, 2011, 08:20:55 AM
// The main content should go here.

I cant find this code in my theme....

Helps if you mention the theme you are using as a link.


SimpleGost


TheListener

Am using this mod on my newly started forum (yesterday).

Installed with no errors.

Advertisement: