• Page 1 of 2
  • 1
  • 2
  • »
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Automatic Private Message Ajax Notifier (Tutorial)
Automatic Private Message Ajax Notifier
Cheburator
Posts: 13
Reputation: 8

Message # 1 | 7:53 PM
This script notifies you allways, wenn you get a new PM in an Ajax window.

Put the follow code between <head> and </head> of your site.

Code
<?if($USER_LOGGED_IN$)?><?if($IS_NEW_PM$)?>
<script type="text/javascript">
window.onload=function(){new _uWnd('npm', 'New Message', 250, 200,{align:'justify',min:0,max:0,modal:1,icon:'http://www.iconfinder.net/data/icons/tango/16x16/actions/mail-message-new.png'},'You have a new private message. To read the news message click on <a href="$PM_URL$" >Read PM</a> .');}          
</script>
<?endif?><?endif?>

Source: http://scripts4.ucoz.de
Author: Cheburator


"What's the difference between a wife and a job? After 10 years a job still sucks."
Post edited by CreativeCollusions - Wednesday, 2011-01-05, 8:41 PM
NTP
Posts: 296
Reputation: 10

Message # 2 | 0:25 AM
you're not supposed to put script in <head></head>. anyways we got the message icon on the admin bar, and this would get pretty annoying very soon, having it pop up every time you get a new message.
Web design and film == my 2 passions.

Genesis Inc. ~ New Horizons, New Beginnings
Air
Posts: 103
Reputation: 6

Message # 3 | 5:03 PM
Well actually I've tested this not in the 'head' section of the website, it seems to work everywhere. I also have some suggestions for the visible part.
Code
You have a new private message. To read the new message click <a href="$PM_URL$" >here</a>.

Not much just a little shorter

Post edited by Air - Wednesday, 2009-12-30, 5:24 PM
CodeResolution
Posts: 1570
Reputation: 58

Message # 4 | 2:26 PM
Cheburator, thanks for code biggrin I love it.
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by Mistory - Saturday, 2010-01-02, 2:26 PM
AAS2
Posts: 7
Reputation: 0

Message # 5 | 3:52 PM
good code all i did was modify text and change image
Killer047
Posts: 26
Reputation: 0

Message # 6 | 8:30 AM
Thx man it's awesome code!!!!!!
Funndoo
Posts: 12
Reputation: 0

Message # 7 | 3:07 PM
where do i have to put it
http://funnart.ucoz.com/ <-- for your graphic needs
Dartz
Posts: 1931

Message # 8 | 3:44 PM
Funndoo, how about second line?
[... With uCoz since December 2 2007 ...]
Funndoo
Posts: 12
Reputation: 0

Message # 9 | 5:19 PM
Quote (NTP)
you're not supposed to put script in <head></head>.

DARTZ, then what abt this

http://funnart.ucoz.com/ <-- for your graphic needs
Post edited by Funndoo - Tuesday, 2010-03-23, 5:20 PM
CodeResolution
Posts: 1570
Reputation: 58

Message # 10 | 5:26 PM
Quote (Funndoo)
where do i have to put it

Funndoo, just place the code in between '<head>' and '</head>' and it should work.

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by Mistory - Tuesday, 2010-03-23, 5:26 PM
Funndoo
Posts: 12
Reputation: 0

Message # 11 | 5:28 PM
k i was just confused with the replies thats why i asked you guys
http://funnart.ucoz.com/ <-- for your graphic needs
Dartz
Posts: 1931

Message # 12 | 5:47 PM
Funndoo, we tend not to take NTP serious.

I mean, sometimes users are wrong too.


[... With uCoz since December 2 2007 ...]
adytzu1_vl01
Posts: 251
Reputation: 0

Message # 13 | 1:30 PM
happy
This site does not support Internet Explorer.
Join me All-Stars.ro
With uCoz since 2009
Post edited by adytzu1_vl01 - Thursday, 2010-06-10, 8:42 PM
dail
Posts: 8
Reputation: 0

Message # 14 | 3:49 PM
how come it's not working on me?

what's the principle behind this?will it be only showed in ajax if the user is online or even he's offline?

WHERE SHOULD I PUT IT? I had putted it inside the "<head></head>" but it doesn't work? Or is it?

Saifu
Posts: 10
Reputation: 0

Message # 15 | 4:03 PM
i need it with fadein-out effects...

help me and please tell me with images help

uCoz Community » For Webmasters » Custom Solutions » Automatic Private Message Ajax Notifier (Tutorial)
  • Page 1 of 2
  • 1
  • 2
  • »
Search: