?-XxDeceptionxX-? Posted February 3, 2008 Posted February 3, 2008 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save As vipnews.php Add This To Mainmenu.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not fully sure if it works please post iff it dont work :) +1 If it does May Need sql i dont really no anyone finds it post it please Quote
HITMAN 17 Posted February 3, 2008 Posted February 3, 2008 Re: (New) Feature Vip News [V1] nice mod ans does need a vip sql Quote
?-XxDeceptionxX-? Posted February 3, 2008 Author Posted February 3, 2008 Re: (New) Feature Vip News [V1] Im Thinking so .... im working onit i might have the sql in my files somewere Quote
Ghetto Posted February 3, 2008 Posted February 3, 2008 Re: (New) Feature Vip News [V1] Booo 8-) Quote
BlatantDude Posted February 3, 2008 Posted February 3, 2008 Re: (New) Feature Vip News [V1] Nice one Dragon..Good mod :-D Quote
moyles Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] we need a sql file for this :-) anyone got one ?? Quote
YoungGold Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] well apart from a few very small edits dragon forgot this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ^^^ not sure if it was him or not :/ doubt it.. and the mysql is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this script is almost exactly the same as the one i have in a zip file infront of me.. Quote
bling Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] make a file called vipnews.php and put this in it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or here ver 2 of it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Add This To Mainmenu.php in the vip or donator part of it this way only they can see it You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not fully sure if it works please post if it dont work :) see how i do not have a ver one game but here the sql for it to -- -- Table structure for table `vipnews` -- CREATE TABLE `vipnews` ( `msg` text NOT NULL, `time` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE `users` ADD `newvip` INT( 11 ) NOT NULL ; ALTER TABLE `users` ADD `ant` INT( 11 ) NOT NULL ; i have only add the sql to it i want no + for this but if you need other stuff made hit me up Quote
YoungGold Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] isnt this what dragon just posted? Quote
bling Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] they are called for in it it has to have a vipnew and ant in the users table if you read over the code you will see what i mean i also added the ver 2 for it Quote
POG1 Posted February 7, 2008 Posted February 7, 2008 Re: (New) Feature Vip News [V1] You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Save As vipnews.php Add This To Mainmenu.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Not fully sure if it works please post iff it dont work :) +1 If it does May Need sql i dont really no anyone finds it post it please why post other peoples mods? Quote
brandon_1243 Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] hey i think this is the basic bit for v2 convert because this is my first time trying to convert so i ain't too sure so please don't get angry if it ain't. Ok just trying to help out create a file vipnews.php and save this file as vip news <?php /*----------------------------------------------------- Vip News -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "globals.php"; $post=strip_tags($_POST['post']); if ($post) { $db->query("INSERT INTO vipnews VALUES ('$post', unix_timestamp())",$c) or die ($db->error()); print "News Added"; $db->query("UPDATE users SET newvip=newvip+1 WHERE userid>0",$c); exit; } $vip=$db->query("SELECT * FROM vipnews ORDER BY time DESC LIMIT 10",$c); print "<center><table width='75%' cellpadding='2' border=0 class='forumline'> <tr> <table width=75% border=1><tr><th width=75%>News</th><th>Time</th></tr><tr><td>"; while ($a=@$db->fetch_array($vip)) { $time=date(' G:i:s, F d, Y', $a['time']); if ($a['time']>$ir['ant']) { print "<tr><td>New:</font>";} print " {$a['msg']} <td>$time</br /> </tr> "; } print "</table></center> "; if ($ir['user_level']==2) { print "<form action='vipnews.php' method='post'><textarea name='post' rows='7' cols='100'></textarea> <center><input type='submit' value='Post News'></center></form>"; } $ti=time(); $db->query("UPDATE users SET ant=$ti WHERE userid=$userid",$c); $db->query("UPDATE users SET newvip=0 WHERE userid=$userid",$c); ?> Add this to mainmenu.php if ($ir[newvip]==0) print" <LI></font>VIP News</font> "; if ($ir[newvip]>0) print" "; i think thats all right i aint sure but it was a first attemt and i dont have the sql so i aint to sure ok :) Quote
Klikoka Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] hey i think this is the basic bit for v2 convert because this is my first time trying to convert so i ain't too sure so please don't get angry if it ain't. Ok just trying to help out create a file vipnews.php and save this file as vip news <?php /*----------------------------------------------------- Vip News -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "globals.php"; $post=strip_tags($_POST['post']); if ($post) { $db->query("INSERT INTO vipnews VALUES ('$post', unix_timestamp())",$c) or die ($db->error()); print "News Added"; $db->query("UPDATE users SET newvip=newvip+1 WHERE userid>0",$c); exit; } $vip=$db->query("SELECT * FROM vipnews ORDER BY time DESC LIMIT 10",$c); print "<center><table width='75%' cellpadding='2' border=0 class='forumline'> <tr> <table width=75% border=1><tr><th width=75%>News</th><th>Time</th></tr><tr><td>"; while ($a=@$db->fetch_array($vip)) { $time=date(' G:i:s, F d, Y', $a['time']); if ($a['time']>$ir['ant']) { print "<tr><td>New:</font>";} print " {$a['msg']} <td>$time</br /> </tr> "; } print "</table></center> "; if ($ir['user_level']==2) { print "<form action='vipnews.php' method='post'><textarea name='post' rows='7' cols='100'></textarea> <center><input type='submit' value='Post News'></center></form>"; } $ti=time(); $db->query("UPDATE users SET ant=$ti WHERE userid=$userid",$c); $db->query("UPDATE users SET newvip=0 WHERE userid=$userid",$c); ?> Add this to mainmenu.php if ($ir[newvip]==0) print" <LI></font>VIP News</font> "; if ($ir[newvip]>0) print" "; i think thats all right i aint sure but it was a first attemt and i dont have the sql so i aint to sure ok :) Take This Out You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
HITMAN 17 Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] works on my v2 game check it out www.tbrpg.890m.com Quote
?-XxDeceptionxX-? Posted February 9, 2008 Author Posted February 9, 2008 Re: (New) Feature Vip News [V1] 1) Youngold There Has 2 Be Some Way Of You Not Posting On The Threads I Make 2) Thanks For Using My Mod Which I Made (Youngold) Despite What You Have 3) Stop Re-Posting This Mod Please Thanks Quote
HITMAN 17 Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] he posts ie spamming cause he wants to get hist credits up Quote
Ghetto Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] he posts ie spamming cause he wants to get hist credits up You cant talk much, Half of your posts are spams just to get your credits/posts up. Quote
HITMAN 17 Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] ye some but not all mate and u cant talk Quote
Ghetto Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] I dont post pointless things like "Cheerz mate" on every single topic unlike you. Quote
?-XxDeceptionxX-? Posted February 9, 2008 Author Posted February 9, 2008 Re: (New) Feature Vip News [V1] Why Has This Thread Turned Into A Battle Zone Guys Come Off It Do It Somewere Else Please I Would Apreciate It Thanks Alot Quote
YoungGold Posted February 9, 2008 Posted February 9, 2008 Re: (New) Feature Vip News [V1] he posts ie spamming cause he wants to get hist credits up lmao...im posting to get my credits up.......a forum is for posting if there was no credits i would still post....does it look like i really care about credits...no one knows what the finally things of the shops will be so why would i post all the useless crap that you post...to get credits..credits are like the post count at the moment they are only for show..and how do you know that i want my credits up are you in my brain or something. get a life Quote
-Matt- Posted February 12, 2008 Posted February 12, 2008 Re: (New) Feature Vip News [V1] Anyways back on the topic ( This just like an idea that was took from Noto Maybe Vorlen Can Post ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.