a user needs help

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

    #16
    Originally posted by LadyEnigma View Post
    Hello everyone, I urgently need a solution to help a user of my chat lava, being blind he uses a voice reader to participate in the discussions in the room but the auto refresh prevents him because his readers to interact does not have time to read the text with the refresh, if some good soul please help me urgently giving me the code to disable the automatic refresh independently by the individual user, thanks so much to who helps me
    /////insert into ibwf_users
    chatrefrate int(5)
    /////link
    PHP Code:
    echo "<a href=\"chat.php?action=editrefrate\">change refresh rate</a><br/>"
    PHP Code:
    /////edit
    else if($action=="editrefrate")
    {
        echo 
    "<form action=\"chat.php?action=changerefrate\" 

    method=\"post\">"

    echo 
    "refresh rate: <select name=\"jhundgreat\">";
    echo 
    "<option value=\"60\">1 minute</option>";
    echo 
    "<option value=\"120\">2 minutes</option>";
    echo 
    "<option value=\"180\">3 minutes</option>";
    echo 
    "<option value=\"240\">4 minutes</option>";
    echo 
    "<option value=\"300\">5 minutes</option>";
    echo 
    "<option value=\"360\">6 minutes</option>";
    echo 
    "<option value=\"420\">7 minutes</option>";
    echo 
    "<option value=\"480\">8 minutes</option>";
    echo 
    "<option value=\"540\">9 minutes</option>";
    echo 
    "<option value=\"600\">10 minutes</option>";
    ///////echo "<option value=\"3600\">1 hour</option>";
    echo "</select>";
    echo 
    "<br/><input type=\"submit\" value=\"change\"><br/>"
    echo 
    "</form>";
    }

    /////proccess
    else if($action=="changerefrate")
    {
    $xdosx $_POST["jhundgreat"];
    $uid getuid_sid($sid);
    mysql_query("UPDATE ibwf_users SET chatrefrate='".$xdosx."' WHERE  id='".$uid."'");
    echo 
    "chat refresh rate succesfully changed<br/>";

    usage:
    PHP Code:
    $uid getuid_sid($sid);
    $pinoyworld mysql_fetch_array(mysql_query("SELECT chatrefrate FROM ibwf_users WHERE id='".$uid."'"));
    echo 
    "<timer value=\"$pinoyworld[0]\"/>"

    Comment


      #17
      xdosx in the usage:
      PHP Code:
      PHP Code:
      $uid getuid_sid($sid); 
      $pinoyworld mysql_fetch_array(mysql_query("SELECT chatrefrate FROM ibwf_users WHERE id='".$uid."'")); 
      echo 
      "<timer value=\"$pinoyworld[0]\"/>"
      where?? in index not work please can you explain me ?

      Comment


        #18
        Seems you don't want my help.
        I could do this in five seconds and without any database interaction.
        I am on mobile so the best is for me to work on it and upload it for you. I can't work online directly.
        Perfection comes at a cost



        I accept liberty!

        Comment


          #19
          search for <meta http-equiv=\"refresh\" content=\"30; in your chat.php and replace it w/
          PHP Code:

          $pinoyworld 
          =mysql_fetch_array(mysql_query("SELECT chatrefrate FROM ibwf_users WHERE id='".$uid."'")); 
          <meta http-equiv=\"refresh\" content=\"$pinoyworld[0];



          gudluck.. Hope it will help u with u prob.. Kung ndi pa rin send m0 s kin chat.php mo..

          in chat.php.

          Comment


            #20
            xdosx your code is practically perfect, I followed your directions and goes on to wonder, there is only one thing that I do not understand, do not upgrade completely regardless of the minutes that I have done something wrong, but I not I understand what..

            Comment


              #21
              60 = 1minute
              30 - 30 seconds
              3600 - 1 hour
              @ ladyenigma

              Comment

              Working...
              X