New messages flashing mail

Started by edi67, April 07, 2004, 10:53:22 AM

Previous topic - Next topic

copfirearms

#40
Quote from: dschwab9 on August 27, 2004, 06:27:33 PM
Index.template.php

Find:

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;




Add after:

// Show Flashy icon if user has new messages and it not a guest
if (!$context['user']['is_guest'] && $context['user']['unread_messages'])
      echo '
<a href="' . $scripturl . '?action=pm"><img src="' . $settings['images_url'] . '/newim.gif" border="0" />(' . $context['user']['unread_messages'] . ')</a> ' . $context['menu_separator'] . '';


change newim.gif to whatever the name of the image is (mine is a flashing envelope)

Menu ends up looking like this.  Number in () is the number of new messages:

(4) | Home | Help | Search | Admin | Profile | Calendar |

Ok, I inserted  your code, heres what it looks like...



Any way to move the flashing icon to the center??
Or move it from where it's at?

If I could make it look like this, it woulld be great...
Thanks

It's God's Job To Forgive Bin Laden
It's Our Job To Set up The Meeting
-US Marines-

blazin6543

i have a bit of a problem with this coding...... it works great when i have unread messages.....but if i dont have any unread messages i keep getting the login field in place of the spot that shows i have unread messages........ whats going on?

Alan S

#42
I modifyed the code a bit and put it into Mod form , more details + the mod package can be seen here

[mod deleted]
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

snork13

Quote from: Alan S on August 18, 2006, 07:13:30 PM
I modifyed the code a bit and put it into Mod form , more details + the mod package can be seen here

http://mods.simplemachines.org/index.php?mod=426

I had beaten you to it awhile ago ;D

http://mods.simplemachines.org/index.php?mod=260

-Snork13
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Alan S

lol oh well at least i got a small bit of experience with the way mods work
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

David79

I love the idea of a pop up window just like YabbSE already has
I was wondering if there is anyway to add sound like YabbSE allowed? When a new message came in. I remember having a sound directory. when I used the Yabb before....That is a feature I would love to have again

choloman05

#46
 This is a mod done by bigguy.

choloman05

 And can anyone help me out with this mod on the Dilber MC theme? thanks.

RebelRose

Quote from: choloman05 on September 03, 2006, 05:13:48 PM
And can anyone help me out with this mod on the Dilber MC theme? thanks.

If you are having too many problem with Dilber theme then you should go to the DilberMc thread and ask Harzem for help. He is usually good at helping.

wmiles

Hi

If bloc is around could you tell me how to integrate this into the Nexus5 template as when i try to do it the top header seems to go out of alignment, think its just a table issue but i cant sort it.

Seems to put the Flashy above the menu instead of in line with it

wmiles

whoops just noticed this should be on TP site

choloman05

Quote from: RebelRose on September 09, 2006, 12:19:53 AM
Quote from: choloman05 on September 03, 2006, 05:13:48 PM
And can anyone help me out with this mod on the Dilber MC theme? thanks.

If you are having too many problem with Dilber theme then you should go to the DilberMc thread and ask Harzem for help. He is usually good at helping.

  Been trying that and no help so far. I think he might read just the latest page of that thread.

BiGBLiZZ

Did this, works great!  I have it on the Helios theme and in 2 spots (above nav menu and in Forum Stats section)

However, I noticed that it works perfect for the first unread message, however, once you check PMs and then get another new one the newim.gif doesn't show up, although the (1) still does.

Any ideas?
Think you are clever?
Prove It!

sattninja

hello i installed thid manually and looks great my only ? is there a way to move where the image is here is a screen shot of mine i wolud like to move it aboive the messages button

Running Rc4

bangkokcanuck

Quote from: snork13 on August 19, 2006, 09:59:38 AM
Quote from: Alan S on August 18, 2006, 07:13:30 PM
I modifyed the code a bit and put it into Mod form , more details + the mod package can be seen here

http://mods.simplemachines.org/index.php?mod=426

I had beaten you to it awhile ago ;D

http://mods.simplemachines.org/index.php?mod=260

-Snork13

Just curious if there will be a MOD for this email flashy thingy for RC3?

I tried the mod listed above and got the error that it was not compatible with my version... TIA

snork13

Quote from: bangkokcanuck on April 26, 2010, 11:40:03 AM
Quote from: snork13 on August 19, 2006, 09:59:38 AM
Quote from: Alan S on August 18, 2006, 07:13:30 PM
I modifyed the code a bit and put it into Mod form , more details + the mod package can be seen here

http://mods.simplemachines.org/index.php?mod=426

I had beaten you to it awhile ago ;D

http://mods.simplemachines.org/index.php?mod=260

-Snork13

Just curious if there will be a MOD for this email flashy thingy for RC3?

I tried the mod listed above and got the error that it was not compatible with my version... TIA

run the install in emulation mode from the package manager
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Shole

There is that mode that you can use its the same as on the old facebook a black box apeares in the right upper corner if you got a pm or some1 replied on your post!

balti27


knightofdoom

Glory is fleeting, but obscurity is forever.
Web Designer Sri Lanka

jasonnjon

i think the pop up option is default .. its there in vbulletin also

Advertisement: