Auto Refresh

Started on the old forum in July 2008 · view the original in the archive · old links redirect here

19 replies · 1,827 views · started 18 years ago · 1 min read

7 participants
xxchellxx Newbie · 3 posts #1

hi can any1 help with auto refresh on main page plz what code would l use its for a wapdesire script thanks

Guest #3

error syntax.... 🤨 🤨

Guest #5

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:

something else Fellow · 2,296 posts #6

echo "<meta http-equiv="refresh" content="30; url=index.php?action=main&sid=$sid">";

Guest #8

echo "<meta http-equiv="refresh" content="30; url=index.php?action=main&sid=$sid">";

😮 thx ,,,,,

Guest #9

ontimer="index.php?action=main&sid=$sid">"; echo "<timer value="300"/>"; echo "Auto Refreshes every 30 seconds

";

sweetangel Lead · 885 posts #10

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:

External image (may be gone)

friend Developer · 112 posts #11

if I wont add the select time to refresh every:

10 or 20 or 30 or 60 seconds or OFF

how I can ??

Or how can we set random time refresh to script?

sweetangel Lead · 885 posts #12

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:

External image (may be gone)

something else Fellow · 2,296 posts #13

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">";

friend Developer · 112 posts #14

HEHE U KNOW WHY I WANT RANDOM REFRESH 🙂

Guest #15

if I wont add the select time to refresh every:

10 or 20 or 30 or 60 seconds or OFF

how I can ??

No...I problem last msg shout text i, all user my site viewing in index msg shout , hehe thanks or thx....

inet Senior · 264 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 ??

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.

something else Fellow · 2,296 posts #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 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">"; }

🙂

something else Fellow · 2,296 posts #19

$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">"; }

🙂

sweetangel Lead · 885 posts #20

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:

External image (may be gone)

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