Auto Refresh
Started on the old forum in July 2008 · view the original in the archive · old links redirect here
what you need is to learn some xhtml and wml the codes are
<meta http-equiv="Refresh" content="n;url">
for xhtml and
<card id="cardname" title="Timer in WML">
<onevent type="ontimer">
<go href="url"/>
</onevent>
<timer value="50"/>
for wml
lol,you are a fun. Yon need to put backslash before every " when you echo or print this code.
echo "<meta http-equiv="refresh" content="30; url=index.php?action=main&sid=$sid">";
to refresh just one page this i do
echo "<meta http-equiv="refresh" content="5">";
no sid etc need page refresh 5 seconds
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
no fungtional my scripts...to lavalair xhtml, Auto Refresh code chat.php is
echo "<meta http-equiv="refresh" content="20; url=index.php?time="; echo "".date("dmHis").""; echo " ?????????????????????????????????">";
in index.php to auto refresh very god to refresh shout text... :sad:
if I wont add the select time to refresh every:
10 or 20 or 30 or 60 seconds or OFF
how I can ??
if like my post click:
no...at user cp user can select if activate/deactivate autorefresh at chat page...if activate can select a time 4 refresh 😉
if like my post click:
Why Would you want random refresh ? lol
$unsure = rand(10,30); echo "<meta http-equiv="refresh" content="$unsure; url=index.php?action=main&sid=$sid">";
if I wont add the select time to refresh every:
10 or 20 or 30 or 60 seconds or OFF
how I can ??
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.
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 CODEelse if($action=="refresh") { addonline(getuid_sid($sid),"setting refresh",""); TheHead($uid); echo "<body>"; echo "\n"; echo "<form action="genproc.php?action=refresh&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 " "; echo ""; echo " "; echo "0<a accesskey="0" href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt=""/>Home</a>"; echo " "; echo ""; echo "</body>"; }
genproc.php CODEelse if($action=="refresh") { addonline(getuid_sid($sid),"refresh",""); TheHead($uid); echo "<body>"; $refresh = $_POST["refresh"];
$res = mysql_query("UPDATE ibwf_users SET refresh='".$refresh."' WHERE id='".$uid."'");
echo ""; if($res){ echo "Refresh set at $refresh
\n"; }else{ echo "oops
\n"; } echo "<a href="index.php?action=main&sid=$sid"><img src="../images/home.gif" alt="*"/>"; echo "Home</a>"; echo ""; echo "</body>\n"; echo "</html>\n"; }
to use on index.php action=main
$refresh = mysql_fetch_array(mysql_query("SELECT refresh FROM ibwf_users WHERE id='".$uid."'")); if($refresh[0]!="0"){ echo "<meta http-equiv="refresh" content="$refresh[0]; url=index.php?action=main&sid=$sid">"; }
🙂
I wont add at chat.php page not index 😉
tnks buddy 🙂
if like my post click:
$refresh = mysql_fetch_array(mysql_query("SELECT refresh FROM ibwf_users WHERE id='".$uid."'")); if($refresh[0]!="0"){ echo "<meta http-equiv="refresh" content="$refresh[0]; url=chat.php?time="; echo "".date("dmHis").""; echo "&sid=$sid&rid=$rid&rpw=$rpw">"; }
🙂
I have add this:
ALTER TABLE ibwf_users ADD refresh VARCHAR(3) NOT NULL DEFAULT '0';
I use 150 seconds at option time...and 0 default is off 😉
if like my post click: