Bud Request

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

    Bud Request

    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

    #2
    [attachment=1612:buddyrqst.zip]

    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',
    Attached Files
    :p:p:p

    Comment


      #3
      ok cheers ill have a go at it in bit cheers

      Comment


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

        Comment


          #5
          no prob mate, you'll need to change all the occurances of session to password for your sites though mate[/b]

          how u do that m8 do u know

          Comment


            #6
            literally just change every 'session' to 'password' use notepad find and replace option mate
            :p:p:p

            Comment


              #7
              literally just change every 'session' to 'password' use notepad find and replace option mate[/b]

              i did do it with the welcome part but i clicked to go into it but error came up

              Comment


                #8
                i did do it with the welcome part but i clicked to go into it but error came up[/b]

                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=&#39;$username&#39; and password=&#39;$password&#39;");
                $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 "<p align=\"left\">";
                ?>
                [img]logo.gif[/img]

                <?php






                echo"Hello $username";
                $sqlthing = mysql_query("SELECT * FROM members WHERE username=&#39;$username&#39;");
                $visit=(mysql_result($sqlthing,0,"visit"));

                echo"
                this is your $visit. visit
                ";




                $sqlthing = mysql_query("SELECT * FROM members WHERE username=&#39;$username&#39;");

                $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 = &#39;$username&#39; and has_it_been_read=&#39;$yesno&#39; and spamfree=&#39;1&#39;");
                $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;passw ord=$password\">+ owner tools</a>
                ";
                echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&am p;G=admin&amp;A=00&amp;room=ADMIN&amp;password=$pa ssword\">+ admin chat</a>";
                }

                if($admin=="1")

                {

                echo "
                <a href=\"adminlogin.php?username=$username&amp;passw ord=$password\">+ admin tools</a>
                ";
                echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&am p;G=admin&amp;A=00&amp;room=ADMIN&amp;password=$pa ssword\">+ admin chat</a>";
                }

                if($forumadmin=="1" and $admin=="0")

                {

                echo "<a title=\"Enter\" href=\"modlogin.php?username=$username&amp;passwor d=$password\">+ mod tools</a>
                ";
                echo "<a title=\"Enter\" href=\"/ufonechat/index.php?gum=croom&amp;nick=$username&amp;sm=1&am p;G=admin&amp;A=00&amp;room=ADMIN&amp;password=$pa ssword\">+ 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 = &#39;$username&#39;");

                $number_of_rows2 = mysql_num_rows($result2);

                $too_add = $number_of_rows2 * -1;

                $yesno = "no";
                $result = mysql_query("SELECT * FROM inbox WHERE to_who = &#39;$username&#39; and been_read=&#39;$yesno&#39;");

                $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=&#39;$name&#39;");
                $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=&#39;$username&#39;");
                $number_of_rows5 = mysql_num_rows($result5);






                echo "
                <a href=\"whosonline.php?username=$username&amp;passw ord=$password\">+ who&#39;s online ($count1/$number_of_rows)</a>";
                echo "
                <a href=\"new.php?username=$username&amp;password=$pa ssword\">+ latest members</a>";

                $count1=0;
                $result=mysql_query("select * from buddylist where username1=&#39;$username&#39; and approved=&#39;yes&#39;");
                $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=&#39;$name&#39;");
                $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=&#39;$username&#39;");
                $number_of_rows5 = mysql_num_rows($result5);



                echo "
                <a href=\"buddylist.php?username=$username&amp;passwo rd=$password\">+ buddies ($count1/$number_of_rows)</a>";



                $result=mysql_query("select * from buddylist where username2=&#39;$username&#39; and approved=&#39;no&#39;");
                $number_of_rows = mysql_num_rows($result);
                if ($number_of_rows>0)
                {
                echo "<a href=\"buddyrequest.php?username=$username&amp;pas sword=$password\"> (!)</a>";
                }



                echo "
                <a href=\"chatindex.php?username=$username&amp;passwo rd=$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;passwor d=$password&amp;thepage=1&amp;forum=sitevote&amp;f orumid=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;passw ord=$password\">+ forum</a>";
                echo "
                <a href=\"pm.php?username=$username&amp;password=$pas sword\">+ 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=&#39;main menu&#39; WHERE username=&#39;$username&#39;";

                $result = mysql_query($sql);

                }

                echo "</p>";
                echo "</card>";
                echo "</wml>";
                @mysql_close($Connect);
                ?>

                Comment


                  #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></p></card></wml>

                  Comment


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

                    Comment


                      #11
                      Sorry dont think thats what your looking for sorry

                      Comment


                        #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

                        Comment


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

                          Comment


                            #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

                            Comment


                              #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[/b]


                              darkdesire i dont think i got it working proper as i not got an option to decline or approve the requests

                              Comment

                              Working...
                              X