rating system for wapdesire v2

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

    rating system for wapdesire v2

    has any one got the code for a rating system with a drop down box where u can rate from 1-10 for a wapdesire v2 script plz

    #2
    search retrivewap here

    Comment


      #3
      Originally posted by mzdesirez View Post
      has any one got the code for a rating system with a drop down box where u can rate from 1-10 for a wapdesire v2 script plz
      or how about TRY to code it yourself then ask people for help if you get stuck, dont just assume people will code it for you, you'll never learn anything this way
      Last edited by woody; 30.10.11, 06:14.

      Comment


        #4
        Here Ya Go, I Coded It For V2, Dont Forget To Say Thanks

        * You Should Try Coding For V2, Just Take It From LAVA And Change The echo to $main.

        You Wont Learn Unless Ya Try, Ya Cant Keep Beggin!!!

        Make A file And Name It rating.php
        PHP Code:


        <?php
        define
        ('WCS',true);
        include(
        './core/main.inc');
        header_type();
        cleardata();
        if(
        ipbanned(ip(),browser())){
        if(!
        shield(getuid_sid($sid))){
        echo 
        head_tag("Ip Blocked!!!",0,0);
        echo 
        ipbanned_msg();
        echo 
        foot_tag();
        exit();
        }
        }
        if(!
        islogged($sid)){
        echo 
        head_tag("Error!!!",0,0);
        echo 
        session_expired();
        echo 
        foot_tag();
        exit();
        }
        if(
        banned(getuid_sid($sid))){
        echo 
        head_tag("Error!!!",1,getnick_sid($sid));
        echo 
        banned_msg($sid);
        echo 
        foot_tag();
        exit();
        }



        ///////////////////
        else if($action=="rate")
        {
        $ratemysql_real_escape_string$_REQUEST["rate"] );
        $bid mysql_real_escape_string$_REQUEST["bid"] );
        $who mysql_real_escape_string$_REQUEST["who"] );

         
        $whnick getnick_uid($who);
          
        addonline(getuid_sid($sid),"Rating $whnick","rating.php?action=rate&amp;who=$who");
        addonline(getuid_sid($sid),"Viewing $nick Profile","");
        echo 
        head_tag(getnick_sid($sid)."@View Profile",1,getnick_sid($sid));

        //$uid = getuid_sid($sid);
        if ($uid==$who)
        {
              
        $main.="<head>";
              
        $main.="<title>$sitename</title>";
              
        $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
              
        $main.="</head>";
              
        $main.="<body>";
              
        $main.="<p align=\"center\">";
             
        $main.="You Cant Rate Yourself You Daft Pervert lol<br/>";

        $main.="<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";


        echo 
        "</p></body>";
              exit();
        }
        $main.="<head>";
        $main.="<title>$sitename</title>";
        $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
        $main.="</head>";
        $main.="<body>";
        $main.="<p align=\"center\">";
        // Let's see how many is there count it up
        $addplus mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));

        // Let's add the rate + so the rate add's to the data
        // replace rate with ccreate


        $add $rate;
        $addplus $add $addplus[0];

        // Ok.... done Lets send the query!!
        //$res = mysql_query("UPDATE users SET rate= '".$addplus."',ratecount = ( ratecount +1 ) WHERE id='".$who."'");
        $res mysql_query("UPDATE users SET rate= '".$addplus."' WHERE id='".$who."'");
        // query has being sent to mysql Job done!
         
        if($res)
           {
        mysql_query("UPDATE users SET rateuser= $who WHERE id='".$uid."'");
                
        $main.="<img src=\"../images/ok.gif\" alt=\"o\"/>".getnick_uid($who)." Rated Successfully You Daft Pervert lol<br/>";

        }
        $main.="";
        $L1="$sixkey<a $key6 href=\"./profile.php?who=$who&amp;sid=$sid\">Back</a>";
        $L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
        $L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
        $L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
        $L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
        $L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
        echo 
        xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
        echo 
        foot_tag();
        exit;
        }


        else if(
        $action=="rate2")
        {
          
        $rate$_REQUEST["rate"];
          
        $who mysql_real_escape_string$_REQUEST["who"] );

           
        addonline(getuid_sid($sid),"Rating a member","");


        if (
        $uid==$who)
        {
              
        $main.="<head>";
              
        $main.="<title>$sitename</title>";
              
        $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
              
        $main.="</head>";
              
        $main.="<body>";
              
        $main.="<p align=\"center\">";
              
        $main.="You Cant Rate Yourself Silly<br/>";
              
        $main.="</p></body></html>";
              exit();
        }


              
        $main.="<head>";
              
        $main.="<title>$sitename</title>";
              
        $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
              
        $main.="</head>";
              
        $main.="<body>";
               
        $main.="<p align=\"center\">";

        // Let's see how many is there count it up
        $addplus mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));

        // Let's add the rate + so the rate add's to the data
        // replace rate with ccreate


        $add $rate;
        $addplus $add $addplus[0];

        // Ok.... done Lets send the query!!
        $res mysql_query("UPDATE users SET rate= '".$addplus."',ratecount = ( ratecount +1 ) WHERE id='".$who."'");
        //$res = mysql_query("UPDATE users SET rate= '".$addplus."' WHERE id='".$who."'");
        // query has being sent to mysql Job done!
          
        if($res)
           {
        mysql_query("UPDATE users SET rateuser= $who WHERE id='".$uid."'");
                
        $main.="<img src=\"../images/ok.gif\" alt=\"o\"/>Rated Successfully<br/>";
           }else {
                
        $main.="<img src=\"../images/notok.gif\" alt=\"x\"/>You have rated this user before<br/>";
           }


          
        $L1="$sixkey<a $key6 href=\"./profile.php?who=$who&amp;sid=$sid\">Back</a>";
        $L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
        $L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
        $L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
        $L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
        $L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
        echo 
        xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
        echo 
        foot_tag();
        exit;
        }
        Put This In Profile.php

        PHP Code:

        $rate 
        mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));
        $main.="<b>Rating:</b> $rate[0]<br/>";

        $who mysql_real_escape_string$_REQUEST["who"] );

        $main.="<form action=\"rating.php?action=rate&amp;sid=$sid&amp;who=$who\" method=\"post\"><p align=\"center\">";
        $main.="<select name=\"rate\">";
        $main.="<option value=\"1\">1</option>";
        $main.="<option value=\"2\">2</option>";
        $main.="<option value=\"3\">3</option>";
        $main.="<option value=\"4\">4</option>";
        $main.="<option value=\"5\">5</option>";
        $main.="<option value=\"6\">6</option>";
        $main.="<option value=\"7\">7</option>";
        $main.="<option value=\"8\">8</option>";
        $main.="<option value=\"9\">9</option>";
        $main.="<option value=\"10\">10</option>";
        $main.="</select>";
        $main.="<input type=\"Submit\" Name=\"Rate\" Value=\"Rate\"></form>";
        $main.="<p align=\"center\">"
        In PHPMyAdmin In Users make a new part Named Rate INT 2 AND SAVE

        Comment


          #5
          Here Ya Are. Dont Forget To Say Thanks!

          **Try Code SomeThing Yourself & Post What Uve Made And You'll Get Help

          In Profile.php Add This:

          PHP Code:
          $rate mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));
          $main.="<b>Rating:</b> $rate[0]<br/>";

          $who mysql_real_escape_string$_REQUEST["who"] );

          $main.="<form action=\"rating.php?action=rate&amp;sid=$sid&amp;who=$who\" method=\"post\"><p align=\"center\">";
          $main.="<select name=\"rate\">";
          $main.="<option value=\"1\">1</option>";
          $main.="<option value=\"2\">2</option>";
          $main.="<option value=\"3\">3</option>";
          $main.="<option value=\"4\">4</option>";
          $main.="<option value=\"5\">5</option>";
          $main.="<option value=\"6\">6</option>";
          $main.="<option value=\"7\">7</option>";
          $main.="<option value=\"8\">8</option>";
          $main.="<option value=\"9\">9</option>";
          $main.="<option value=\"10\">10</option>";
          $main.="</select>";
          $main.="<input type=\"Submit\" Name=\"Rate\" Value=\"Rate\"></form>";
          $main.="<p align=\"center\">"
          Make A File On Cpanel Named rating.php And Add This:

          PHP Code:
          <?php
          define
          ('WCS',true);
          include(
          './core/main.inc');
          header_type();
          cleardata();
          if(
          ipbanned(ip(),browser())){
          if(!
          shield(getuid_sid($sid))){
          echo 
          head_tag("Ip Blocked!!!",0,0);
          echo 
          ipbanned_msg();
          echo 
          foot_tag();
          exit();
          }
          }
          if(!
          islogged($sid)){
          echo 
          head_tag("Error!!!",0,0);
          echo 
          session_expired();
          echo 
          foot_tag();
          exit();
          }
          if(
          banned(getuid_sid($sid))){
          echo 
          head_tag("Error!!!",1,getnick_sid($sid));
          echo 
          banned_msg($sid);
          echo 
          foot_tag();
          exit();
          }



          ///////////////////
          else if($action=="rate")
          {
          $ratemysql_real_escape_string$_REQUEST["rate"] );
          $bid mysql_real_escape_string$_REQUEST["bid"] );
          $who mysql_real_escape_string$_REQUEST["who"] );

           
          $whnick getnick_uid($who);
            
          addonline(getuid_sid($sid),"Rating $whnick","rating.php?action=rate&amp;who=$who");
          addonline(getuid_sid($sid),"Viewing $nick Profile","");
          echo 
          head_tag(getnick_sid($sid)."@View Profile",1,getnick_sid($sid));

          //$uid = getuid_sid($sid);
          if ($uid==$who)
          {
                
          $main.="<head>";
                
          $main.="<title>$sitename</title>";
                
          $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                
          $main.="</head>";
                
          $main.="<body>";
                
          $main.="<p align=\"center\">";
               
          $main.="You Cant Rate Yourself You Daft Pervert lol<br/>";

          $main.="<b>0 </b><a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";


          echo 
          "</p></body>";
                exit();
          }
          $main.="<head>";
          $main.="<title>$sitename</title>";
          $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
          $main.="</head>";
          $main.="<body>";
          $main.="<p align=\"center\">";
          // Let's see how many is there count it up
          $addplus mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));

          // Let's add the rate + so the rate add's to the data
          // replace rate with ccreate


          $add $rate;
          $addplus $add $addplus[0];

          // Ok.... done Lets send the query!!
          //$res = mysql_query("UPDATE users SET rate= '".$addplus."',ratecount = ( ratecount +1 ) WHERE id='".$who."'");
          $res mysql_query("UPDATE users SET rate= '".$addplus."' WHERE id='".$who."'");
          // query has being sent to mysql Job done!
           
          if($res)
             {
          mysql_query("UPDATE users SET rateuser= $who WHERE id='".$uid."'");
                  
          $main.="<img src=\"../images/ok.gif\" alt=\"o\"/>".getnick_uid($who)." Rated Successfully You Daft Pervert lol<br/>";

          }
          $main.="";
          $L1="$sixkey<a $key6 href=\"./profile.php?who=$who&amp;sid=$sid\">Back</a>";
          $L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
          $L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
          $L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
          $L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
          $L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
          echo 
          xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
          echo 
          foot_tag();
          exit;
          }


          else if(
          $action=="rate2")
          {
            
          $rate$_REQUEST["rate"];
            
          $who mysql_real_escape_string$_REQUEST["who"] );

             
          addonline(getuid_sid($sid),"Rating a member","");


          if (
          $uid==$who)
          {
                
          $main.="<head>";
                
          $main.="<title>$sitename</title>";
                
          $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                
          $main.="</head>";
                
          $main.="<body>";
                
          $main.="<p align=\"center\">";
                
          $main.="You Cant Rate Yourself Silly<br/>";
                
          $main.="</p></body></html>";
                exit();
          }


                
          $main.="<head>";
                
          $main.="<title>$sitename</title>";
                
          $main.="<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
                
          $main.="</head>";
                
          $main.="<body>";
                 
          $main.="<p align=\"center\">";

          // Let's see how many is there count it up
          $addplus mysql_fetch_array(mysql_query("SELECT rate FROM users WHERE id='".$who."'"));

          // Let's add the rate + so the rate add's to the data
          // replace rate with ccreate


          $add $rate;
          $addplus $add $addplus[0];

          // Ok.... done Lets send the query!!
          $res mysql_query("UPDATE users SET rate= '".$addplus."',ratecount = ( ratecount +1 ) WHERE id='".$who."'");
          //$res = mysql_query("UPDATE users SET rate= '".$addplus."' WHERE id='".$who."'");
          // query has being sent to mysql Job done!
            
          if($res)
             {
          mysql_query("UPDATE users SET rateuser= $who WHERE id='".$uid."'");
                  
          $main.="<img src=\"../images/ok.gif\" alt=\"o\"/>Rated Successfully<br/>";
             }else {
                  
          $main.="<img src=\"../images/notok.gif\" alt=\"x\"/>You have rated this user before<br/>";
             }


            
          $L1="$sixkey<a $key6 href=\"./profile.php?who=$who&amp;sid=$sid\">Back</a>";
          $L2="$sixkey<a $key6 href=\"./inbox/inbox.php?sid=$sid\">Inbox</a>";
          $L3="$sevenkey<a $key7 href=\"./buds/buds.php?sid=$sid\">BuddyList</a>";
          $L4="$eightkey<a $key8 href=\"./chat/public.php?sid=$sid\">Chat</a>";
          $L5="$ninekey<a $key9 href=\"./forums/forums.php?sid=$sid\">Forums</a>";
          $L6="$zerokey<a $key0 href=\"./main.php?sid=$sid\"><img src=\"./images/home.gif\" alt=\"\"/>Main Menu</a>";
          echo 
          xhtml($sid,$title,1,$L1,$L2,$L3,$L4,$L5,$L6,0,0,$main);
          echo 
          foot_tag();
          exit;
          }
          Go In Ya Database, In Users Add Row, Name It rate INT 2 and Save

          There Ya Are, 100 percent working, next time try re-code a lava version into v2 like ive done
          Last edited by DeViLzHeLpEr; 30.10.11, 15:22. Reason: ADD CODING

          Comment


            #6
            Originally posted by DeViLzHeLpEr View Post
            H

            You Wont Learn Unless Ya Try, Ya Cant Keep Beggin!!!
            this is very true mate she beg's all the time and dont try any thing her self
            HELP THEM WHO HELPS YOU



            i only work on wapdesire v_2 coding only

            Comment


              #7
              i do not beg all the time brand

              Comment


                #8
                Yes im with Brand on this she dose beg for codes n u dont get nothing in reture..

                Comment


                  #9
                  i dont beg i just ask, i was told that if u dont ask u dont get lol so thats what i do i ask for things

                  Comment


                    #10
                    Originally posted by mzdesirez View Post
                    i dont beg i just ask, i was told that if u dont ask u dont get lol so thats what i do i ask for things
                    & wat iff someone asks for something to you! :D
                    I need some facebook likes, can you please help me
                    http://facebook.com/softwarefreakin
                    I noticed social media is really powerful
                    Well DONE is better than well SAID

                    Comment


                      #11
                      well if i knew the answer then id give it lol

                      Comment


                        #12
                        Originally posted by mzdesirez View Post
                        well if i knew the answer then id give it lol
                        C'mon, why don't you ask dat person again who suggested you this :D >>>>>
                        i was told that if u dont ask u dont get
                        I need some facebook likes, can you please help me
                        http://facebook.com/softwarefreakin
                        I noticed social media is really powerful
                        Well DONE is better than well SAID

                        Comment


                          #13
                          softwarefreak she dosent like helping or sharing things n what she dose have on her site its not her work.. or she hasnt had a go..

                          Comment


                            #14
                            Originally posted by carebear View Post
                            softwarefreak she dosent like helping or sharing things n what she dose have on her site its not her work.. or she hasnt had a go..
                            Haha, bear everywhere :D
                            Ok, don't fight
                            Sharing is caring!
                            I need some facebook likes, can you please help me
                            http://facebook.com/softwarefreakin
                            I noticed social media is really powerful
                            Well DONE is better than well SAID

                            Comment


                              #15
                              why i dont need to ask the person again software freek lol and carebear yeah some of the things on mine i admit is not mine it has been done by others and i have had some codes given to me and i have attempted to try at things to get things to work on mine

                              Comment

                              Working...
                              X