Bud Request

Started on the old forum in May 2008 · view the original in the archive · old links redirect here

19 replies · 1,310 views · started 18 years ago · 1 min read

4 participants
immortalempire Developer · 219 posts #1

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

darkdesire Senior · 250 posts #2

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

Attachments: buddyrqst.zip
darkdesire Senior · 250 posts #4

no prob mate, you'll need to change all the occurances of session to password for your sites though mate

:p:p:p

immortalempire Developer · 219 posts #5

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

darkdesire Senior · 250 posts #6

literally just change every 'session' to 'password' use notepad find and replace option mate

:p:p:p

immortalempire Developer · 219 posts #7

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

immortalempire Developer · 219 posts #8

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&amp;limit=0&amp;password=$password\">+ read $pmname</a> "; } if($owner=="1") { echo " <a href=\"ownerlogin.php?username=$username&amp;password=$password\">+ owner tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&amp;G=admin&amp;A=00&amp;room=ADMIN&amp;password=$password\">+ admin chat</a>"; } if($admin=="1") { echo " <a href=\"adminlogin.php?username=$username&amp;password=$password\">+ admin tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&amp;G=admin&amp;A=00&amp;room=ADMIN&amp;password=$password\">+ admin chat</a>"; } if($forumadmin=="1" and $admin=="0") { echo "<a title=\"Enter\" href=\"modlogin.php?username=$username&amp;password=$password\">+ mod tools</a> "; echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&amp;G=admin&amp;A=00&amp;room=ADMIN&amp;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&amp;limit=0&amp;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&amp;password=$password&amp;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&amp;password=$password\">+ who's online ($count1/$number_of_rows)</a>"; echo " <a href=\"new.php?username=$username&amp;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&amp;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&amp;password=$password\"> (!)</a>"; } echo " <a href=\"chatindex.php?username=$username&amp;password=$password\">+ my.chat</a>"; echo " <a title=\"Enter\" href=\"games.php?username=$username&amp;password=$password\">+ my.fun</a>"; echo " <a href=\"sitevote.php?username=$username&amp;password=$password&amp;thepage=1&amp;forum=sitevote&amp;forumid=1716\">+ my.vote</a>"; echo " <a href=\"extras1.php?username=$username&amp;password=$password\">+ user info</a>"; echo " <a href=\"forumindex.php?username=$username&amp;password=$password\">+ forum</a>"; echo " <a href=\"pm.php?username=$username&amp;password=$password\">+ messenger</a>"; echo " <a href=\"sites.php?username=$username&amp;password=$password\">+ sites4sale</a>"; echo " <a href=\"logout.php?username=$username&amp;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); ?>
immortalempire Developer · 219 posts #9

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>

Guest #10

remove the wml header header("Content-type: text/vnd.wap.wml"); from the above it will work

Guest #11

Sorry dont think thats what your looking for sorry

immortalempire Developer · 219 posts #12

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

darkdesire Senior · 250 posts #13

you dont get a pm, it appears as a (!) next to buddeis on the main menu which u click on

:p:p:p

immortalempire Developer · 219 posts #14

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

immortalempire Developer · 219 posts #15

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

immortalempire Developer · 219 posts #16

converted it all to html now but still stck with the part to accept decline a request cos it not showing

crazybrumi Super moderator Principal · 1,064 posts #18

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.

http://flagcounter.com/more/W80q

kaibaspoon Developer · 63 posts #19
<?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>

error lol how u wana use xml with a wml code

External image (may be gone)

crazybrumi Super moderator Principal · 1,064 posts #20
$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.

http://flagcounter.com/more/W80q

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close