Hi everyone need help. Im using this code to hide my gallery link on my index page but i want it to show your need 75plusses to view gallery then disappear when ive got 75plusses and show the gallery link i tryed this but after ive got 75plusses its still showing you need 75 plusses to view gallery if(getplusses(getuid_sid($sid))<75) { echo "you need 75 plusses to view gallery "; // Gallery link ere } any help wud be grateful thanks
Plusses to view page
Started on the old forum in April 2009 · view the original in the archive · old links redirect here
muzza345 wrote: Hi everyone need help. Im using this code to hide my gallery link on my index page but i want it to show your need 75plusses to view gallery then disappear when ive got 75plusses and show the gallery link i tryed this but after ive got 75plusses its still showing you need 75 plusses to view gallery if(getplusses(getuid_sid($sid))<75) { echo "you need 75 plusses to view gallery "; // Gallery link ere } any help wud be grateful thanks
if(getplusses(getuid_sid($sid))<75)
echo "you need 75 plusses to view gallery "; // Gallery link ere }
##Get user id from session id##
function getuid_sid($sid)
{
$uid = mysql_fetch_array(mysql_query("SELECT uid FROM ibwf_ses WHERE id='".$sid."'"));
$uid = $uid[0];
return $uid;
}
########Get user plusses########
function getplusses($uid)
{
$plus = mysql_fetch_array(mysql_query("SELECT plusses FROM ibwf_users WHERE id='".$uid."'"));
return $plus[0];
}
##############################
$uid = getuid_sid($sid);
if(getplusses($uid)<50)
{
echo "Minimum required 50 credits";
}
else
{
echo"Do wareve u want ";
}
##############################
muzza345 wrote: Get userid and getplusses they in core already arent they.
i dont knw which script u use i just posted a code snip edit it according to ur script
muzza345 wrote: Im tryin to add this aswel but i just get a blank screen any ideas. $post=mysql_fetch_array(mysql_query("SELECT posts, name FROM ibwf_users WHERE id=""$.uid."")); echo "you currently have $posts[0] posts ";
wapdesire dnt hav ibwf_users table 😕
replace it wid user tables name
It is s0 easy, just make a new functi0n n d0 the same..
our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com
$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file);