Author |
Message |
sexycoder
Spammer and overall low life
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Feb 02, 2009
Posts: 82
|
Posted:
Mon Jun 08, 2009 11:06 am |
|
I do know there is a welcome pm out there and a pop up but what if the user has a spam killer and block that javascript. We never know. The problem is some users dont realize they got a private message so I was sick and tired of this situation.
No problem friends. This little trick can work with Raven Nuke and most of all Nuke I guess.
You as a user or administrator send a pm to another user so when he or she comes to the website they can not say they didnt get a message because it will warn u all the time until user read the message. I hope u understand my point at least u get a deaf user so they need to adjust to the pop up message.
Here we go
Open your memembership block user info and at the end before ?> Copy and paste this codes. Please if u use a decent editor check WHITE SPACE option so u will see white spaces at the end of the codes because that happens most of the time when u copy from forums( I would like to know how bad is white spaces in linux)
Code://Welcome NEW PM by sexycoder
cookiedecode($user);
$uname = $cookie[1];
if (is_user($user)) {
$row = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'"));
$uid = intval($row[user_id]);
$newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')"));
if ($newpms >= 1){
//Embed your custom flash notifier here and image.
echo "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\n";
echo " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0\"\n";
echo " id=\"newpm\" width=\"1\" height=\"1\">\n";
echo " .\"<param name=\"movie\" value=\"newpm.swf\">\n";
echo " .\"<param name=\"bgcolor\" value=\"#DDDDDD\">\n";
echo " .\"<param name=\"quality\" value=\"high\">\n";
echo " .\"<param name=\"allowscriptaccess\" value=\"samedomain\">\n";
echo " .\"<embed type=\"application/x-shockwave-flash\"\n";
echo " pluginspage=\"http://www.macromedia.com/go/getflashplayer\"\n";
echo " width=\"1\" height=\"1\"\n";
echo " name=\"newpm\" src=\"newpm.swf\"\n";
echo " bgcolor=\"#DDDDDD\" quality=\"high\"\n";
echo " swLiveConnect=\"true\" allowScriptAccess=\"samedomain\">\n";
echo " .\"</embed></object>";
} else{ } }
?>
|
Download swf file Sorry Unit. Go to trickedoutnews and download it there. or use our multi download files. I do this just because it is a simple file swf but I never upload php stuff to those multi files. For me phpnuke has too much value and all optional stuff.
http://trickedoutnews.com/ftopict-24.html
Warning! This is something I made but maybe someone has more ideas to make it more beautiful. Remember twice brains are more powerful than one.
The files was corrupt from the multi files uploading. It was my fault. Sorry.
New Downlaod Links
Rapidshare
http://rapidshare.com/files/242728887/newpm.rar.html
Megaupload
http://www.megaupload.com/?d=WVGXEB9P
This is a multi files. I got an idea to make a module which upload multifiles. I dont know but I have to investigate. I hope u can download it.
Thanks for all users who like the idea. we get rid of one additional block which could be slow our site down. ![Very Happy](modules/Forums/images/smiles/icon_biggrin.gif) |
Last edited by sexycoder on Tue Jun 09, 2009 1:55 pm; edited 6 times in total |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
eldorado
Involved
![Involved Involved](modules/Forums/images/ranks/4stars.gif)
![](modules/Forums/images/avatars/52f4453749f5c4a233463.gif)
Joined: Sep 10, 2008
Posts: 424
Location: France,Translator
|
Posted:
Mon Jun 08, 2009 2:07 pm |
|
I was thinking of the exact same thing only with a modal window displaying on startup. Futurenuke has implemented a sexy "you have a private message in your futurenuke mailbox" voice at startup. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/blank.gif)
Joined: Oct 26, 2004
Posts: 134
Location: Boston
|
Posted:
Mon Jun 08, 2009 6:25 pm |
|
sexycoder Tried to download the swf and I get this
Sorry but you are not authorized to view or download this Attachment
In both IE and Firefox ![Bang Head](modules/Forums/images/smiles/banghead.gif) |
_________________ * 5 Simple rules to be happy: * Free Your Heart from Hatred * Free Your Mind from Worries * Live Simply * Give More * Expect Less. |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Mon Jun 08, 2009 6:38 pm |
|
Interesting, I'll take a look at that when the links are working.
I too was thinking of using a jQuery modal pop-up but it is always interesting to look at other options.
Just as a note, not all browser support LiveConnect. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
spasticdonkey
RavenNuke(tm) Development Team
![](modules/Forums/images/avatars/48fb116845dfecf66294c.gif)
Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA
|
Posted:
Mon Jun 08, 2009 10:27 pm |
|
swf, that an interesting idea... maybe i can make those users that don't check pm's listen to elevator music until they check message?
or even worse any song in the midi format, lol
but seriously, sounds cool I'll check it out |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sexycoder
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 09, 2009 1:31 am |
|
spasticdonkey. That's funny. If u make something let me know. I am interesting in this kind of things. hahaha |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 09, 2009 12:17 pm |
|
Thank you sexycoder I am downloading it now and will test it out on Nuke 7.9 I will let you know how well it works on it |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Unit1
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 09, 2009 12:53 pm |
|
Ok tried to download off a few of the sites like filefront and others but the rar is corrupt I will join your site see if I can get it off it. I will not give up lol
newpm.rar: CRC failed in newpm.swf. The file is corrupt
C:\Users\me\Downloads\newpm.rar: Unexpected end of archive |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
sexycoder
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jun 09, 2009 1:50 pm |
|
Sorry it is true I made a mistake. I zipped it again and now it is working and added new links. I dont know where was my head. ![speedtype](modules/Forums/images/smiles/speedtype.gif) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Wed Jun 10, 2009 6:48 pm |
|
Very interesting indeed. Thanks! |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|