Auto Refresh

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

    #16
    if I wont add the select time to refresh every:

    10 or
    20 or
    30 or
    60 seconds
    or OFF

    how I can ??[/b]

    THEN CHANGE THE CONTENT=20
    Services

    Are you looking to take your wap or wapsite to a higher level? Do you want to stand out and rise above your competitors?

    Below is a list of services I offer:

    Wap Design and Customized Coding -The first way to stand out in a crowd is to have a brilliant and unique design for your wap or wapsite.

    Rates

    General consulting – My current hourly rate is $100 / hour.
    Custom Wapsite Community - My current rate is $500 / Wap Community Development.

    Comment


      #17
      sweetangel here is user selected refresh:

      (this is some of your coding i copyied from a previous post of yours so if its got errors in it... its your fault)

      new sql ibwf_user refresh varchar(2) default 20

      index.php
      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="refresh")
      {
      addonline(getuid_sid($sid),"setting refresh","");
      TheHead($uid);
      echo "<body>";
      echo "<div align=\"center\">\n";
      echo "<form action=\"genproc.php?action=refresh&amp;sid=$sid\" method=\"post\">";
      echo "refresh time:
      ";
      echo "<select name=\"refresh\">\n";
      echo "<option value=\"0\">off</option>\n";
      echo "<option value=\"10\">10</option>\n";
      echo "<option value=\"20\">20</option>\n";
      echo "<option value=\"30\">30</option>\n";
      echo "<option value=\"40\">40</option>\n";
      echo "<option value=\"50\">50</option>\n";
      echo "<option value=\"60\">60</option>\n";
      echo "</select>";
      echo "
      ";
      echo "<input type=\"submit\" value=\"send\"/>";
      echo "</form>";
      echo "</p>";
      echo "<div style=\"background-color:#CC0000\">";
      echo "<p align=\"center\">";
      echo "0 <a accesskey=\"0\" href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Home</a>";
      echo "</p>";
      echo "</div>";
      echo "</body>";
      }</div>

      genproc.php
      <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>else if($action=="refresh")
      {
      addonline(getuid_sid($sid),"refresh","");
      TheHead($uid);
      echo "<body>";
      $refresh = $_POST["refresh"];

      $res = mysql_query("UPDATE ibwf_users SET refresh=&#39;".$refresh."&#39; WHERE id=&#39;".$uid."&#39;");

      echo "<div class=\"center\">";
      if($res){
      echo "Refresh set at $refresh

      \n";
      }else{
      echo "oops

      \n";
      }
      echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"*\"/>";
      echo "Home</a>";
      echo "</div>";
      echo "</body>\n";
      echo "</html>\n";
      }</div>

      to use on index.php action=main

      $refresh = mysql_fetch_array(mysql_query("SELECT refresh FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
      if($refresh[0]!="0"){
      echo "<meta http-equiv=\"refresh\" content=\"$refresh[0]; url=index.php?action=main&amp;sid=$sid\">";
      }

      Comment


        #18
        I wont add at chat.php page not index ;)

        tnks buddy
        if like my post click:

        http://coding-talk.com/images/totall...ost_thanks.gif

        Comment


          #19
          $refresh = mysql_fetch_array(mysql_query("SELECT refresh FROM ibwf_users WHERE id=&#39;".$uid."&#39;"));
          if($refresh[0]!="0"){
          echo "<meta http-equiv=\"refresh\" content=\"$refresh[0]; url=chat.php?time=";
          echo "".date("dmHis")."";
          echo "&amp;sid=$sid&amp;rid=$rid&amp;rpw=$rpw\">";
          }

          Comment


            #20
            I have add this:

            ALTER TABLE ibwf_users
            ADD refresh VARCHAR(3) NOT NULL DEFAULT &#39;0&#39;;

            I use 150 seconds at option time...and 0 default is off ;)
            if like my post click:

            http://coding-talk.com/images/totall...ost_thanks.gif

            Comment

            Working...
            X