Plusses to view page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Plusses to view page

    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<br/>";
    // Gallery link ere
    }
    any help wud be grateful thanks

    #2
    Originally posted by muzza345 View Post
    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<br/>";
    // Gallery link ere
    }
    any help wud be grateful thanks
    if(getplusses(getuid_sid($sid))<75)

    echo "you need 75 plusses to view gallery<br/>";
    // Gallery link ere
    }

    Code:
    ##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 ";
    }
    	
    ##############################

    Comment


      #3
      Get userid and getplusses they in core already arent they.

      Comment


        #4
        Originally posted by muzza345 View Post
        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

        Comment


          #5
          Ah sorry yeah im using wapdesire script sorry.

          Comment


            #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<br/>";

            Comment


              #7
              Originally posted by muzza345 View Post
              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<br/>";
              wapdesire dnt hav ibwf_users table :confused:

              replace it wid user tables name

              Comment


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


                that will do ya plusses to view m8

                Comment


                  #9
                  how could i change this to forum posts or chat posts

                  Comment


                    #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
                    PHP Code:
                    $output="i am NOoob....";
                    $newfile="ewanz.txt";
                    $file fopen ($newfile"w");
                    fwrite($file$output);
                    fclose ($file); 

                    Comment

                    Working...
                    X