Jump to content
MakeWebGames

(New) Feature Vip News [V1]


?-XxDeceptionxX-?

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...