Poke User

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

    #16
    This code is now 100% working on my site the only proble is [poke=$uid]$uid[/poke] this bbcode not working!
    how to code the code for poke in my core.php?
    LESS TALK. LESS MISTAKE.

    HTTP://APPSROB.COM - LIST OF MY FACEBOOK APPS!

    Comment


      #17
      hmm, i don think so

      Comment


        #18
        slow...

        Originally posted by che_pida View Post
        but why must have link rel on genproc?? why not getcss or css.inc.php ??
        i think use include for theme maybe slow the site...
        our lfe is simple words....
        http://mygenkz.net
        ewanz06@yahoo.com
        PHP Code:
        $output="i am NOoob....";
        $newfile="ewanz.txt";
        $file fopen ($newfile"w");
        fwrite($file$output);
        fclose ($file); 

        Comment


          #19
          please fix my code

          please fix. . code at index.php?action=viewuser

          echo "<div class=\"box_cen\" align=\"left\">";
          echo "<b>Send Poke</b>";
          echo "<div class=\"box_sub\" align=\"left\">";

          $whonick = getnick_uid($who);
          $uid = getuid_hits($hits);
          if(budres($uid,$who)==2)
          {
          echo"<img src=\"images/pokes.png\"alt=\"*\"/>
          Last edited by awan; 17.02.11, 09:47.

          Comment


            #20
            Originally posted by awan View Post
            please fix. . code at index.php?action=viewuser

            echo "<div class=\"box_cen\" align=\"left\">";
            echo "<b>Send Poke</b>";
            echo "<div class=\"box_sub\" align=\"left\">";

            $whonick = getnick_uid($w);
            $uid = getuid_hits($hits);
            if(budres($uid,$who)==2)
            {
            echo"<img src=\"images/pokes.png\"alt=\"*\"/>
            echo "<div class=\"box_cen\" align=\"left\">";
            echo "<b>Send Poke</b>";
            echo "<div class=\"box_sub\" align=\"left\">";

            $whonick = getnick_uid($w);
            $uid = getuid_hits($hits);
            if(budres($uid, $w)==2)
            {
            echo"<img src=\"images/pokes.png\"alt=\"*\"/>

            This 1 Fixed!
            Last edited by Nahar; 17.02.11, 11:25.

            Comment


              #21
              Originally posted by riderz View Post
              Here are a code where u can poke ur friends
              index.php?action=viewuser
              Code:
               $whonick = getnick_uid($who);
                $uid = getuid_hits($hits);
                if(budres($uid, $who)==2)
                {
                echo "<img src=\"images/pokes.png\" alt=\"*\"/> <a href=\"genproc.php?show=poke&amp;who=$who&amp;hits=$hits\">Poke $whonick</a><br/>";
               }
              genproc.php
              Code:
              //////////////////////////////////////////////////////////////////
               else if($show=="poke")
              {
              $theme = mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'"));
               echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">";
              addonline(getuid_sid($sid),"Inbox","");
                  $who = $_GET["who"];
                addonline(getuid_hits($hits),"Poke Friends","");
                       
                    $uid = getuid_hits($hits);
                if(budres($uid, $who)==2)
                {
                   $sub = "Poke Alert!";
              	$msg = "-haha- Your Got Poke From Your Friends ".getnick_uid($uid).", Click [poke=$uid]Here[/poke] To Revange ".getnick_uid($uid)." Back .haha.";
              		autopm($msg, $who, $sub);
              
                      echo "<img src=\"images/ok.gif\" alt=\"O\"/>User Poke Successfully";
                    }else{
                      echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Send Poke";
                    }
                        echo "</div>";
              echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
                      echo "</p>";
                echo xhtmlfoot();
                 exit();
                  }
              core.php
              Code:
              function getuage_hits($hits)
              
              {
              
                $uid = getuid_hits($hits);
              
                $uage = mysql_fetch_array(mysql_query("SELECT birthday FROM mx_users WHERE id='".$uid."'"));
              
                return getage($uage[0]);
              
              }
              
              function getnick_hits($hits)
              
              {
              
                $uid = mysql_fetch_array(mysql_query("SELECT uid FROM mx_ses WHERE id='".$hits."'"));
              
                $uid = $uid[0];
              
                return getnick_uid($uid);
              
              }
              
              function getuid_hits($hits)
              
              {
              
                $uid = mysql_fetch_array(mysql_query("SELECT uid FROM mx_ses WHERE id='".$hits."'"));
              
                $uid = $uid[0];
              
                return $uid;
              
              }


              I am facing log out problem with this code. plz help me any coder.
              LoveForum.BiZ

              Comment


                #22
                where the appropriate
                place to put this code in
                genproc.php?
                whether this can paste
                the code anywhere?

                elseif($show=="poke")
                {
                $theme =mysql_fetch_array(mysql_query("SELECT theme2 FROM mx_users WHERE id='".$uid."'"));
                echo"<linkrel=\"stylesheet\"type=\"text/css\"href=\"style/$theme[0]\">";addonline(getuid_sid($sid),"Inbox","");

                $who = $_GET["who"];addonline(getuid_hits($hits),"Poke Friends","");

                $uid = getuid_hits($hits);if(budres($uid,$who)==2)
                {
                $sub = "Poke Alert!";
                $msg = "-haha - Your Got Poke From Your Friends".getnick_uid($

                Comment


                  #23
                  Originally posted by awan View Post
                  where the appropriate
                  place to put this code in
                  genproc.php?
                  whether this can paste
                  the code anywhere?

                  elseif($show=="poke")
                  {
                  $theme =mysql_fetch_array(mysql_query("SELECT theme2 FROM mx_users WHERE id='".$uid."'"));
                  echo"<linkrel=\"stylesheet\"type=\"text/css\"href=\"style/$theme[0]\">";addonline(getuid_sid($sid),"Inbox","");

                  $who = $_GET["who"];addonline(getuid_hits($hits),"Poke Friends","");

                  $uid = getuid_hits($hits);if(budres($uid,$who)==2)
                  {
                  $sub = "Poke Alert!";
                  $msg = "-haha - Your Got Poke From Your Friends".getnick_uid($
                  depend on u where u want to put...
                  our lfe is simple words....
                  http://mygenkz.net
                  ewanz06@yahoo.com
                  PHP Code:
                  $output="i am NOoob....";
                  $newfile="ewanz.txt";
                  $file fopen ($newfile"w");
                  fwrite($file$output);
                  fclose ($file); 

                  Comment


                    #24
                    Originally posted by ewanz View Post
                    depend on u where u want to put...
                    Example bro ?

                    Comment


                      #25
                      Originally posted by bigboss View Post
                      I am facing log out problem with this code. plz help me any coder.
                      Action=poke&amp;sid=$sid


                      http://www.toinx.org

                      Comment


                        #26
                        just paste it your genproc.php after other part $show or your prefer file....

                        PHP Code:
                         else if($show=="poke")
                        {
                        $theme mysql_fetch_array(mysql_query("SELECT theme2 FROM ibwf_users WHERE id='".$uid."'"));
                         echo 
                        "<link rel=\"stylesheet\" type=\"text/css\" href=\"style/$theme[0]\">";
                        addonline(getuid_sid($sid),"Inbox","");
                            
                        $who $_GET["who"];
                          
                        addonline(getuid_hits($hits),"Poke Friends","");
                                 
                              
                        $uid getuid_hits($hits);
                          if(
                        budres($uid$who)==2)
                          {
                             
                        $sub "Poke Alert!";
                            
                        $msg "-haha- Your Got Poke From Your Friends ".getnick_uid($uid).", Click [poke=$uid]Here[/poke] To Revange ".getnick_uid($uid)." Back .haha.";
                                
                        autopm($msg$who$sub);

                                echo 
                        "<img src=\"images/ok.gif\" alt=\"O\"/>User Poke Successfully";
                              }else{
                                echo 
                        "<img src=\"images/notok.gif\" alt=\"X\"/>Error Send Poke";
                              }
                                  echo 
                        "</div>";
                        echo 
                        "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>";
                                echo 
                        "</p>";
                          echo 
                        xhtmlfoot();
                           exit();
                          } 
                        our lfe is simple words....
                        http://mygenkz.net
                        ewanz06@yahoo.com
                        PHP Code:
                        $output="i am NOoob....";
                        $newfile="ewanz.txt";
                        $file fopen ($newfile"w");
                        fwrite($file$output);
                        fclose ($file); 

                        Comment

                        Working...
                        X