Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: rating system for wapdesire v2

  1. #1
    Junior Member mzdesirez's Avatar
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    22
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Wink 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. #2
    Junior Member
    Join Date
    Jan 2010
    Location
    Hyderabad, Sindh, Pakistan
    Posts
    5
    Thanks
    27
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    search retrivewap here

  3. #3
    Senior Member
    Join Date
    Mar 2009
    Posts
    176
    Thanks
    84
    Thanked 42 Times in 18 Posts
    Rep Power
    5

    Default

    Quote Originally Posted by mzdesirez [Only registered and activated users can see links. Click Here To Register...]
    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 at 06:14.

  4. #4
    Junior Member
    Join Date
    Oct 2011
    Posts
    22
    Thanks
    2
    Thanked 8 Times in 6 Posts
    Rep Power
    0

    Default

    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

  5. The Following User Says Thank You to DeViLzHeLpEr For This Useful Post:

    carebear (08-01-12)

  6. #5
    Junior Member
    Join Date
    Oct 2011
    Posts
    22
    Thanks
    2
    Thanked 8 Times in 6 Posts
    Rep Power
    0

    Default

    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 at 15:22. Reason: ADD CODING

  7. The Following User Says Thank You to DeViLzHeLpEr For This Useful Post:

    mzdesirez (03-11-11)

  8. #6
    Senior Member
    Join Date
    May 2009
    Posts
    395
    Thanks
    45
    Thanked 18 Times in 11 Posts
    Rep Power
    5

    Default

    Quote Originally Posted by DeViLzHeLpEr [Only registered and activated users can see links. Click Here To Register...]
    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

    [Only registered and activated users can see links. Click Here To Register...]

    i only work on wapdesire v_2 coding only

  9. #7
    Junior Member mzdesirez's Avatar
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    22
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    i do not beg all the time brand

  10. #8
    Member carebear's Avatar
    Join Date
    Aug 2009
    Location
    Leeton Australia
    Posts
    68
    Thanks
    106
    Thanked 18 Times in 9 Posts
    Rep Power
    4

    Default

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

  11. #9
    Junior Member mzdesirez's Avatar
    Join Date
    Apr 2010
    Posts
    23
    Thanks
    22
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    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

  12. #10
    Senior Member softwarefreak's Avatar
    Join Date
    Jun 2011
    Location
    http://softwarefreak.in
    Posts
    344
    Thanks
    142
    Thanked 212 Times in 69 Posts
    Rep Power
    2

    Default

    Quote Originally Posted by mzdesirez [Only registered and activated users can see links. Click Here To Register...]
    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

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Please help with rating
    By nahid1203 in forum REQUEST FORUM
    Replies: 1
    Last Post: 04-10-10, 09:25
  2. Creating a basic rating system
    By riderz in forum Tutorials
    Replies: 0
    Last Post: 20-02-10, 19:36
  3. Trying To Make A User Rating System
    By nclemale36 in forum Site / Script testing and error fixing
    Replies: 26
    Last Post: 11-02-09, 18:57
  4. Bulk Pm System 4 Wapdesire
    By centiya in forum Coding Forum
    Replies: 6
    Last Post: 27-10-08, 13:23
  5. Wap Rating System
    By Munis in forum Sites / Links
    Replies: 2
    Last Post: 18-09-08, 21:34

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19