Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions Automatic Private Message Ajax Notifier (Tutorial) |
Automatic Private Message Ajax Notifier |
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 "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
|
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 |
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
|
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
|
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
|
k i was just confused with the replies thats why i asked you guys
http://funnart.ucoz.com/ <-- for your graphic needs
|
Post edited by adytzu1_vl01 - Thursday, 2010-06-10, 8:42 PM
|
| |||