well brandon11, if u noticed the script bit that futurewap posted he isnt using the funmobile version now is he? External image (may be gone)
Need Plusses To Visit A Page
Started on the old forum in July 2007 · view the original in the archive · old links redirect here
TL;DR · summary of 28 replies
- The code to check if users need more plusses to play games needs to be added.
- A solution was provided with the function points(getuid_sid($sid)) and checking against a threshold of 15 points.
- The user futurewap successfully implemented this by adding the conditional statement at the top of their page: if(points(getuid_sid($sid)) < 15) { $need=15-points(getuid_sid($sid)); echo "You need $need more points to sh...
- Another solution was provided for a different context (funmobile version), but it did not work as intended.
Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.
Cant remember exactly how the funmobile version goes, this should be accurate enough tho, any more wiseass comments from the peanut gallery then by all means lol External image (may be gone)
else if ($action=="funm") {
addonline(getuid_sid($sid),"Fun Menu","");
$page = $_GET["page"];
echo "<p align=\"center\">";
echo "<img src=\"images/roll.gif\" alt=\"*\"/>
";
if(points(getuid_sid($sid))<15 && $page=='wml')
{
$need=15-points(getuid_sid($sid));
echo "
You need $need more points to shout!
";
echo "<a href=\"index.php?action=main&sid=$sid&page=wml\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
if(points(getuid_sid($sid))<15 && $page=='xhtml')
{
$need=15-points(getuid_sid($sid));
echo "
You need $need more points to shout!
";
echo "<a href=\"index.php?action=main&sid=$sid&page=xhtml\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
echo "Hello, so you want to have some creative fun? well you came into the right place";
echo "</p>";
echo "
";
echo "<a href=\"ravebabe.php?sid=$sid\">»lavagirl</a>
";
echo "<a href=\"games.php?action=guessgm&sid=$sid\">»Guess The Number</a>
";
echo "<a href=\"xogame.php?sid=$sid\">»Tic tac toe[size="1"](2
players)[/size]</a>
";
//echo "»Hangman
";
//echo "»Dares Box
";
echo "</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid&page=$page\"><img src=\"images/home.gif\"
alt=\"*\"/>Home</a>";
echo "</p>";
}
bugsbunny, i already posting a working version above lol yours works alright...except for the fact that it inconveniences the user as it does not provide a link back -tea-
yes i know, i didnt notice you replyed.. was tired External image (may be gone)
yes i know, i didnt notice you replyed.. was tired External image (may be gone)
Kewl no sweat m8 External image (may be gone)
heres my version for lava if any one needs it CODE////////////////////////////NOT ENOUGH PLUESSES HAHA////////////////////////// else if($action=="main") { if(getplusses(getuid_sid($sid))<100) { echo "<head>"; echo "<title>Shop</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$uid."'")); echo "<img src="../phpThumb/phpThumb.php?src=../images/pusno.png" alt=""/> "; echo " You Should Have 100 Plusses Veiw The Smilies "; echo "You Currently Have $plusses[0] Plusses
"; echo "<a href="main.php?action=home&sid=$sid"><img src="../phpThumb/phpThumb.php?src=../images/home.gif" alt=""/>Main Menu</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); } //////////////////////////////////SMILIES CATERGORYS/////////////////////////////////// addonline(getuid_sid($sid),"Smiley Categorys",""); echo "<head>"; echo "<title>Smilies Categorys</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; echo "Smiley category
"; echo "Smilies categorys easy for you to find the smilies you would like to use in site"; echo " "; echo "
";
chris the last post was neli a year ago lol, i think they may have found out how 2 do it by know
Want something coded email me at sales@webnwaphost.com for a prices.
if(getplusses(getuid_sid($sid))<100) { echo "<head>"; echo "<title>Smilies</title>"; echo "<link rel="stylesheet" type="text/css" href="../themes/$theme[0]">"; echo "</head>"; echo "<body>"; echo " "; $plusses = mysql_fetch_array(mysql_query("SELECT plusses, name FROM ibwf_users WHERE id='".$uid."'")); echo "<img src="../phpThumb/phpThumb.php?src=../images/pusno.png" alt=""/> "; echo " You Should Have 100 Plusses Veiw The Smilies "; echo "You Currently Have $plusses[0] Plusses
"; echo "<a href="main.php?action=home&sid=$sid"><img src="../phpThumb/phpThumb.php?src=../images/home.gif" alt=""/>Main Menu</a>"; echo " "; echo "</body>"; echo "</html>"; exit(); }
Just this bit m8