| Author |
Message |
sexycoder Spammer and overall low life

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.
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
Megaupload
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.  |
Last edited by sexycoder on Tue Jun 09, 2009 1:55 pm; edited 6 times in total |
|
|
 |
eldorado Involved


Joined: Sep 10, 2008 Posts: 366 Location: France
|
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. |
|
|
|
 |
Unit1 Worker


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  |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6299 Location: Vsetin, Czech Republic
|
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. |
|
|
|
 |
spasticdonkey RavenNuke(tm) Development Team

Joined: Dec 02, 2006 Posts: 1251 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 |
|
|
|
 |
sexycoder Spammer and overall low life

Joined: Feb 02, 2009 Posts: 82
|
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 |
|
|
|
 |
Unit1 Worker


Joined: Oct 26, 2004 Posts: 134 Location: Boston
|
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 |
|
|
|
 |
Unit1 Worker


Joined: Oct 26, 2004 Posts: 134 Location: Boston
|
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 |
|
|
|
 |
sexycoder Spammer and overall low life

Joined: Feb 02, 2009 Posts: 82
|
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.  |
|
|
|
 |
montego Former Admin in Good Standing

Joined: Aug 29, 2004 Posts: 9071 Location: Arizona
|
Posted:
Wed Jun 10, 2009 6:48 pm |
|
Very interesting indeed. Thanks! |
|
|
|
 |
|
|
|
|