Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating General Discussion
Author Message
sexycoder
Spammer and overall low life



Joined: Feb 02, 2009
Posts: 82

PostPosted: Mon Jun 08, 2009 11:06 am Reply with quote

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 Shocked 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. Very Happy 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.
[ Only registered users can see links on this board! Get registered or login! ]

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. Wink

The files was corrupt from the multi files uploading. It was my fault. Sorry.

New Downlaod Links

Rapidshare [ Only registered users can see links on this board! Get registered or login! ]

Megaupload [ Only registered users can see links on this board! Get registered or login! ]



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. Very Happy we get rid of one additional block which could be slow our site down. Very Happy


Last edited by sexycoder on Tue Jun 09, 2009 1:55 pm; edited 6 times in total 
View user's profile Send private message
eldorado
Involved
Involved



Joined: Sep 10, 2008
Posts: 424
Location: France,Translator

PostPosted: Mon Jun 08, 2009 2:07 pm Reply with quote

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.
 
View user's profile Send private message Visit poster's website MSN Messenger
Unit1
Worker
Worker



Joined: Oct 26, 2004
Posts: 134
Location: Boston

PostPosted: Mon Jun 08, 2009 6:25 pm Reply with quote

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

_________________
* 5 Simple rules to be happy: * Free Your Heart from Hatred * Free Your Mind from Worries * Live Simply * Give More * Expect Less. 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Mon Jun 08, 2009 6:38 pm Reply with quote

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.
 
View user's profile Send private message Send e-mail
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Mon Jun 08, 2009 10:27 pm Reply with quote

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? Smile

or even worse any song in the midi format, lol

but seriously, sounds cool I'll check it out
 
View user's profile Send private message Visit poster's website
sexycoder







PostPosted: Tue Jun 09, 2009 1:31 am Reply with quote

spasticdonkey. That's funny. If u make something let me know. I am interesting in this kind of things. hahaha
 
Unit1







PostPosted: Tue Jun 09, 2009 12:17 pm Reply with quote

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







PostPosted: Tue Jun 09, 2009 12:53 pm Reply with quote

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







PostPosted: Tue Jun 09, 2009 1:50 pm Reply with quote

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



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Jun 10, 2009 6:48 pm Reply with quote

Very interesting indeed. Thanks!

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating General Discussion

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©