search retrivewap here
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
search retrivewap here
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 wayOriginally Posted by mzdesirez [Only registered and activated users can see links. Click Here To Register...]
Last edited by woody; 30-10-11 at 06:14.
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
Put This In Profile.phpPHP 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")
{
$rate= mysql_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&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&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&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&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;
}
In PHPMyAdmin In Users make a new part Named Rate INT 2 AND SAVEPHP 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&sid=$sid&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\">";
carebear (08-01-12)
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:
Make A File On Cpanel Named rating.php And 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&sid=$sid&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\">";
Go In Ya Database, In Users Add Row, Name It rate INT 2 and SavePHP 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")
{
$rate= mysql_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&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&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&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&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;
}
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
mzdesirez (03-11-11)
this is very true mate she beg's all the time and dont try any thing her selfOriginally Posted by DeViLzHeLpEr [Only registered and activated users can see links. Click Here To Register...]
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
i do not beg all the time brand
Yes im with Brand on this she dose beg for codes n u dont get nothing in reture..
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! :DOriginally Posted by mzdesirez [Only registered and activated users can see links. Click Here To Register...]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks