any 1 got the bud request script where you accept decline bud requests on the sp script in html if not wml just be as good
Bud Request
Started on the old forum in May 2008 · view the original in the archive · old links redirect here
That should have the bits you need Russ
And add the following line to buddylist in ya database
approved char(3) NOT NULL default 'no',
:p:p:p
no prob mate, you'll need to change all the occurances of session to password for your sites though mate
:p:p:p
no prob mate, you'll need to change all the occurances of session to password for your sites though mate
how u do that m8 do u know
literally just change every 'session' to 'password' use notepad find and replace option mate
:p:p:p
literally just change every 'session' to 'password' use notepad find and replace option mate
i did do it with the welcome part but i clicked to go into it but error came up
i did do it with the welcome part but i clicked to go into it but error came up
this is what i chaned the welcome.php file to
<?php header("Content-type: text/vnd.wap.wml"); include("config.inc.php"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); echo "<?xml version=\"1.0\"?>";echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; $time=date("H:i"); echo "<wml>";
$Connect = mysql_connect("$server","$user","$pass"); mysql_select_db("$dbname"); $result=mysql_query("select * from members where username='$username' and password='$password'"); $number_of_rows = mysql_num_rows($result); if ($number_of_rows>0) { include("check.inc.php"); } if ($ok>0) { include("online.inc.php"); $time=date("H:i");
echo "<card id="card1" title="immwap">"; echo " "; ?> External image (may be gone)
<?php echo"Hello $username"; $sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'"); $visit=(mysql_result($sqlthing,0,"visit")); echo" this is your $visit. visit "; $sqlthing = mysql_query("SELECT * FROM members WHERE username='$username'"); $owner=(mysql_result($sqlthing,0,"owner")); $pmname=(mysql_result($sqlthing,0,"pmname")); $buddyname=(mysql_result($sqlthing,0,"buddyname")); $admin=(mysql_result($sqlthing,0,"admin")); $forumadmin=(mysql_result($sqlthing,0,"forumadmin")); $yesno = "no"; $result = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username' and has_it_been_read='$yesno' and spamfree='1'"); $number_of_rows = mysql_num_rows($result); $new_pms = $number_of_rows; if(($number_of_rows>0)){ echo "you have $new_pms new $pmname(s)"; echo " <a title=\"Enter\" href=\"pminbox.php?username=$username&limit=0&password=$password\">+ read $pmname</a> "; } if($owner=="1") { echo " <a href=\"ownerlogin.php?username=$username&password=$password\">+ owner tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&G=admin&A=00&room=ADMIN&password=$password\">+ admin chat</a>"; } if($admin=="1") { echo " <a href=\"adminlogin.php?username=$username&password=$password\">+ admin tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&G=admin&A=00&room=ADMIN&password=$password\">+ admin chat</a>"; } if($forumadmin=="1" and $admin=="0") { echo "<a title=\"Enter\" href=\"modlogin.php?username=$username&password=$password\">+ mod tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&nick=$username&sm=1&G=admin&A=00&room=ADMIN&password=$password\">+ admin chat</a>"; } if($owner=="1") { $sql = "SELECT * FROM spamfilter"; $result = mysql_query($sql); $number_of_rows2 = mysql_num_rows($result); $new_spam = $number_of_rows2; if(($number_of_rows2>0)){ echo " <a title=\"Enter\" href=\"spaminbox.php?username=$username&limit=0&password=$password\">**$new_spam spam alerts**</a>"; }} if($uonline>1) { $users="Users"; } if($uonline<2) { $users="User"; } {$result2 = mysql_query("SELECT * FROM inbox WHERE to_who = '$username'"); $number_of_rows2 = mysql_num_rows($result2); $too_add = $number_of_rows2 * -1; $yesno = "no"; $result = mysql_query("SELECT * FROM inbox WHERE to_who = '$username' and been_read='$yesno'"); $number_of_rows = mysql_num_rows($result); echo " <a title=\"Enter\" href=\"inbox.php?username=$username&password=$password&limit=0\">+ inbox($number_of_rows/$number_of_rows2)</a>"; } $count1=0; $result=mysql_query("select * from members"); $number_of_rows = mysql_num_rows($result); $count=0; while ($count<$number_of_rows){ $name=(mysql_result($result,$count,"username")); $result2=mysql_query("select * from latest where ip='$name'"); $number_of_rows2 = mysql_num_rows($result2); if($number_of_rows2>0){ $count1=$count1+1; } $count=$count+1; } $result5=mysql_query("select * from members where username='$username'"); $number_of_rows5 = mysql_num_rows($result5); echo " <a href=\"whosonline.php?username=$username&password=$password\">+ who's online ($count1/$number_of_rows)</a>"; echo " <a href=\"new.php?username=$username&password=$password\">+ latest members</a>"; $count1=0; $result=mysql_query("select * from buddylist where username1='$username' and approved='yes'"); $number_of_rows = mysql_num_rows($result); $count=0; while ($count<$number_of_rows){ $name=(mysql_result($result,$count,"username2")); $result2=mysql_query("select * from latest where ip='$name'"); $number_of_rows2 = mysql_num_rows($result2); if($number_of_rows2>0){ $count1=$count1+1; } $count=$count+1; } $result5=mysql_query("select * from buddylist where username1='$username'"); $number_of_rows5 = mysql_num_rows($result5); echo " <a href=\"buddylist.php?username=$username&password=$password\">+ buddies ($count1/$number_of_rows)</a>"; $result=mysql_query("select * from buddylist where username2='$username' and approved='no'"); $number_of_rows = mysql_num_rows($result); if ($number_of_rows>0) { echo "<a href=\"buddyrequest.php?username=$username&password=$password\"> (!)</a>"; } echo " <a href=\"chatindex.php?username=$username&password=$password\">+ my.chat</a>"; echo " <a title=\"Enter\" href=\"games.php?username=$username&password=$password\">+ my.fun</a>"; echo " <a href=\"sitevote.php?username=$username&password=$password&thepage=1&forum=sitevote&forumid=1716\">+ my.vote</a>"; echo " <a href=\"extras1.php?username=$username&password=$password\">+ user info</a>"; echo " <a href=\"forumindex.php?username=$username&password=$password\">+ forum</a>"; echo " <a href=\"pm.php?username=$username&password=$password\">+ messenger</a>"; echo " <a href=\"sites.php?username=$username&password=$password\">+ sites4sale</a>"; echo " <a href=\"logout.php?username=$username&password=$password\">+ logout</a>"; $sql = "UPDATE profile SET onsite='main menu' WHERE username='$username'"; $result = mysql_query($sql); } echo " "; echo "</card>"; echo "</wml>"; @mysql_close($Connect); ?>and this is the error i get
Error! XML parsing failed
XML parsing failed: syntax error (Line: 1, Character: 120)
Reparse document as HTML Error:mismatched end-tag Specification:http://www.w3.org/TR/REC-xml/ 1: <?xml version="1.0"?><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml> </card></wml>
its ok im getting there slowly lol need to know when u add a bud does it send a pm or sumat to the person your budding cos ive got it working i tried budding me n it works but says the person be informed but i got no pm
you dont get a pm, it appears as a (!) next to buddeis on the main menu which u click on
:p:p:p
lol think i got it set up i just need sort it out now cos i put it in a folder called buddy so everything buddy/buddyadd.php etc etc lol then need to try convert it to html 4 my web version
lol think i got it set up i just need sort it out now cos i put it in a folder called buddy so everything buddy/buddyadd.php etc etc lol then need to try convert it to html 4 my web version
darkdesire i dont think i got it working proper as i not got an option to decline or approve the requests
converted it all to html now but still stck with the part to accept decline a request cos it not showing
yu need to set it so that it put sum sort of pop up if its not been approved make a query up
Want something coded email me at sales@webnwaphost.com for a prices.
sumat like this
$new = "SELECT * FROM budz where user2='$user' and req='0'";
$result = mysql_query($new);
$tosser_rows = mysql_num_rows($result);
$new_spam = $tosser_rows;
if(($tosser_rows>0)){
echo "<a title=\"Enter\" href=\"budz/req.php?user=$user&limit=0&s=$s\">new request</a>
";
Want something coded email me at sales@webnwaphost.com for a prices.
</card></wml>
error lol how u wana use xml with a wml code
$new = "SELECT * FROM buddylist where username2='$username' and approved='0'";
$result = mysql_query($new);
$tosser_rows = mysql_num_rows($result);
$new_spam = $tosser_rows;
if(($tosser_rows>0)){
echo "<a title=\"Enter\" href=\"budz/req.php?user=$username&limit=0&password=$password\">new request</a>
";
Want something coded email me at sales@webnwaphost.com for a prices.