Need Plusses To Visit A Page

Started on the old forum in July 2007 · view the original in the archive · old links redirect here

28 replies · 1,808 views · started 19 years ago · 1 min read

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.

5 participants
hellspawn #22

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>";
}
WhiteWarrior Principal · 1,419 posts #23

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)

jsyguy23 Developer · 134 posts #25

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 "

";

jsyguy23 Developer · 134 posts #27

chris the last post was neli a year ago lol, i think they may have found out how 2 do it by know

ops o well just trying to help m8 least if any one want it for lava they can use it

Guest #28

Does both the codes that jsyguy go into lists.php

jsyguy23 Developer · 134 posts #29

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close