Pm Refresh

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

    Pm Refresh

    i have the xhtml sp script which on the web looks quite nice. but i cant figure out why the pm page wont refresh like the wml version does. only difference in the script is the head tags etc .

    <?php


    include("config.inc.php");


    header("Content-type: text/html; charset=ISO-8859-1");
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    echo "<head>";

    echo "<title>$username@$stitle</title>";
    echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
    echo "</head>";

    echo "<body>";
    $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")) ;

    echo "<card id=\"card1\" title=\"$pmname Inbox\">";
    $datime=time();
    echo "<onevent type=\"ontimer\">\n";
    echo "<go href=\"pm.php?session=$session&amp;username=$usern ame&amp;datime=$datime\"/>\n";
    echo "</onevent>\n";
    echo "<timer value=\"80\"/>";

    echo "<p align=\"center\">";

    include ("pic.php");
    echo "
    ";



    echo "
    <a title=\"Enter\" href=\"welcome.php?username=$username&amp;session= $session\">(Main Menu)</a>
    ";

    $Connect = mysql_connect("$server","$user","$pass");
    mysql_select_db("$dbname");
    $result=mysql_query("select * from members where username=&#39;$username&#39; and session=&#39;$session&#39;");
    $number_of_rows = mysql_num_rows($result);
    if ($number_of_rows>0)
    {
    include("check.inc.php");
    }
    if ($ok>0)
    {
    include("online.inc.php");

    $yesno = "no";
    $result = mysql_query("SELECT * FROM privatemessage WHERE to_username = &#39;$username&#39; and has_it_been_read=&#39;$yesno&#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;session=$session\">(Read)</a>";
    }

    if(($number_of_rows<1)){

    $result2 = mysql_query("SELECT * FROM privatemessage WHERE to_username = &#39;$username&#39;");
    $number_of_rows2 = mysql_num_rows($result2);
    $too_add = $number_of_rows2 * -1;
    if(($number_of_rows2>0)){
    echo "<a title=\"Enter\" href=\"pminbox.php?username=$username&amp;session= $session&amp;limit=0&amp;number_of_rows2=$number_o f_rows2&amp;too_add=$too_add\">(Inbox($number_of_r ows/$number_of_rows2)</a>
    ";
    echo "<a title=\"Enter\" href=\"pmdelete.php?username=$username&amp;amount= 0&amp;session=$session\">(Delete)</a>
    ";
    }

    echo "<a title=\"Enter\" href=\"sendpm.php?username=$username&amp;session=$ session&amp;to_username=\">(Send $pmname)</a>";
    $result2 = mysql_query("SELECT * FROM privatemessage WHERE from_username = &#39;$username&#39; order by date_sent desc");
    $number_of_rows = mysql_num_rows($result2);
    if(($number_of_rows>0)){
    echo "
    <a title=\"Enter\" href=\"beensent.php?username=$username&amp;session =$session&amp;username2=&amp;page=0\">(Outbox($num ber_of_rows)</a>";
    }


    $result=mysql_query("select * from buddylist where username1=&#39;$username&#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 title=\"Enter\" href=\"buddylist.php?username=$username&amp;sessio n=$session\">(Buds($count1/$number_of_rows5)</a>";
    echo "
    <a title=\"Enter\" href=\"whosonline.php?username=$username&amp;sessi on=$session\">($uonline) Online!!</a>";
    echo "
    <a title=\"Enter\" href=\"smilelists.php?username=$username&amp;sessi on=$session\">(Icon Lists)</a>";
    echo "
    <a href=\"extras1.php?username=$username&amp;session= $session\">(P.M Xtras)</a>";
    $result=mysql_query("select * from chatusers");
    $tot = mysql_num_rows($result);

    echo "
    <a href=\"chatindex.php?username=$username&amp;sessio n=$session\">(Chat($tot)</a>";
    $result=mysql_query("select * from forumindex");
    $forums = mysql_num_rows($result);
    echo "
    <a href=\"forumindex.php?username=$username&amp;sessi on=$session\">(Forums($forums)</a>";
    ?>


    [img]bar.gif[/img]
    <?php


    }}
    echo "</p>";
    echo "</card>";
    echo "</html>";
    ?>



    can anyone help .
    Wapchat4u


    Topsites4u

    #2
    change the
    Code:
     echo "<timer value=\"80\"/>";
    to
    Code:
    echo "<timer value=\"60\"/>";
    it should refresh every 60 seconds if it don&#39;t work i will dig out my copy of that script and give you my xhtml pm part.

    Comment


      #3
      change the
      Code:
       echo "<timer value=\"80\"/>";
      to
      Code:
      echo "<timer value=\"60\"/>";
      it should refresh every 60 seconds if it don&#39;t work i will dig out my copy of that script and give you my xhtml pm part.[/b]

      na mate its not refreshing at all.

      oh and btw my front page shoutbox aint working with your server lol . wont update at all . weird cos everything else is fine .
      Wapchat4u


      Topsites4u

      Comment


        #4
        ontimer dont work in xhtml theres a code

        Code:
        <meta http-equiv="refresh" content="5" />
        but it doesn&#39;t work on nokia, on samsung it works just fine.
        Code:
        <head>
        <meta http-equiv="refresh" content="10;URL= URL SITE" />
        </head>

        Try that one
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          ontimer dont work in xhtml theres a code

          Code:
          <meta http-equiv="refresh" content="5" />
          but it doesn&#39;t work on nokia, on samsung it works just fine.
          Code:
          <head>
          <meta http-equiv="refresh" content="10;URL= URL SITE" />
          </head>
          Try that one [/b]


          hi, what nokia doesn&#39;t run with meta?? im curios.
          http://ngeo.ro

          Comment


            #6
            No only some nokias bro
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              No only some nokias bro[/b]

              managed to get that to work . cheers
              Wapchat4u


              Topsites4u

              Comment

              Working...
              X