PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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 to the forums!


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 to the forums!


Megaupload
Only registered users can see links on this board!
Get registered or login to the forums!




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: 414
Location: France,Translator

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

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 Back to top

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
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
spasticdonkey
RavenNuke(tm) Development Team


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

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

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
sexycoder
Spammer and overall low life


Joined: Feb 02, 2009
Posts: 82

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

spasticdonkey. That's funny. If u make something let me know. I am interesting in this kind of things. hahaha
View user's profile Send private message
Unit1
Worker
Worker


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

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

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
View user's profile Send private message
Unit1
Worker
Worker


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

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

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
View user's profile Send private message
sexycoder
Spammer and overall low life


Joined: Feb 02, 2009
Posts: 82

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

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
View user's profile Send private message
montego
Site Admin


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

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

Very interesting indeed. Thanks!
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum