Plusses to view page

Started on the old forum in April 2009 · view the original in the archive · old links redirect here

9 replies · 529 views · started 17 years ago · 1 min read

5 participants
muzza345 Junior · 41 posts #1

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

Anshul Senior · 296 posts #2

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 Junior · 41 posts #3

Get userid and getplusses they in core already arent they.

Anshul Senior · 296 posts #4

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 Junior · 41 posts #5

Ah sorry yeah im using wapdesire script sorry.

muzza345 Junior · 41 posts #6

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 ";

Anshul Senior · 296 posts #7

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

lee27 Developer · 63 posts #8

If(getplusses(getuid_sid($sid))<200) { $plusses = $info["plusses"]; echo "you need 200 plusses to view page "; } else { echo "put ya link here }

that will do ya plusses to view m8

using name geordielee now

evo21 Junior · 15 posts #9

how could i change this to forum posts or chat posts 🙂

ewanz Developer · 187 posts #10

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

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