Pm Refresh

Started on the old forum in November 2007 · view the original in the archive · old links redirect here

6 replies · 674 views · started 19 years ago · 1 min read

4 participants
nclemale36 Lead · 537 posts #1

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='$username'"); $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&username=$username&datime=$datime"/>\n"; echo "</onevent>\n"; echo "<timer value="80"/>";

echo " ";

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

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

$Connect = mysql_connect("$server","$user","$pass"); mysql_select_db("$dbname"); $result=mysql_query("select * from members where username='$username' and session='$session'"); $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 = '$username' and has_it_been_read='$yesno'"); $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&limit=0&session=$session">(Read)</a>"; }

if(($number_of_rows<1)){

$result2 = mysql_query("SELECT * FROM privatemessage WHERE to_username = '$username'"); $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&session=$session&limit=0&number_of_rows2=$number_of_rows2&too_add=$too_add">(Inbox($number_of_rows/$number_of_rows2)</a> "; echo "<a title="Enter" href="pmdelete.php?username=$username&amount=0&session=$session">(Delete)</a> "; }

echo "<a title="Enter" href="sendpm.php?username=$username&session=$session&to_username=">(Send $pmname)</a>"; $result2 = mysql_query("SELECT * FROM privatemessage WHERE from_username = '$username' 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&session=$session&username2=&page=0">(Outbox($number_of_rows)</a>"; }

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

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

External image (may be gone)

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

can anyone help .

WhiteWarrior Principal · 1,419 posts #2

change the

 echo "<timer value=\"80\"/>";

to

echo "<timer value=\"60\"/>";

it should refresh every 60 seconds if it don't work i will dig out my copy of that script and give you my xhtml pm part.

nclemale36 Lead · 537 posts #3

change the

 echo "<timer value=\"80\"/>";

to

echo "<timer value=\"60\"/>";

it should refresh every 60 seconds if it don't work i will dig out my copy of that script and give you my xhtml pm part.

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 .

subzero Super moderator Fellow · 3,954 posts #4

ontimer dont work in xhtml theres a code

<meta http-equiv="refresh" content="5" />

but it doesn't work on nokia, on samsung it works just fine.

<head>
<meta http-equiv="refresh" content="10;URL= URL SITE" />
</head>

Try that one External image (may be gone)

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... _______…

blackhowk Senior · 411 posts #5

ontimer dont work in xhtml theres a code

<meta http-equiv="refresh" content="5" />

but it doesn't work on nokia, on samsung it works just fine.

<head>
<meta http-equiv="refresh" content="10;URL= URL SITE" />
</head>

Try that one External image (may be gone)

hi, what nokia doesn't run with meta?? im curios.

subzero Super moderator Fellow · 3,954 posts #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... _______…

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close