help abt refresh.

Started on the old forum in December 2009 · view the original in the archive · old links redirect here

11 replies · 715 views · started 16 years ago · 1 min read

5 participants
icedroplet1987 Senior · 258 posts #1

hello friends, i want to know.. how to code a auto refresh.. like.. whenever soembody post shout in lavalair.. it gives a message.. "shout added successfully.. hom link" . but what i want.. i want to remove this note n want user to come on same place after posting the shout.

icedroplet1987 Senior · 258 posts #3

Loony wrote: use a meta tag to redirect

<meta http-equiv="refresh" content="5;url=where ever u want to redirect to">

this will redirect after 5 seconds

bro, then what if i don want "shout added successfully" page.. whenever users click to post shout. it shot post shout n come back to same page without any delay.

icedroplet1987 Senior · 258 posts #4

like, when i reply here. it takes me back directly to the topic as i was in topic when i replied.

subzero Super moderator Fellow · 3,954 posts #5
<meta http-equiv="refresh" content="5;url=where ever u want to redirect to">

see the red 5

Change that too 0 or 1

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

icedroplet1987 Senior · 258 posts #6

ok thnx zero mate.. how to apply this?? only copy paste the code to the place i want refrsh?

icedroplet1987 Senior · 258 posts #8
else if($action=="shout")
{
  $shtxt = $_POST["shtxt"];
    addonline(getuid_sid($sid),"Roaring","");

$pstyle = gettheme($sid);
      echo xhtmlhead("Roar",$pstyle);
    echo "<p align=\"center\">";
    if(getplusses(getuid_sid($sid))<75)
    {
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>You should have at least 75 plusses to Roar!";
    }else{
      $shtxt = $shtxt;
    //$uid = getuid_sid($sid);
    $shtm = (time() - $timeadjust) + $timeadjust;
    $res = mysql_query("INSERT INTO ibwf_shouts SET shout='".$shtxt."', shouter='".$uid."', shtime='".$shtm."'");
    if($res)
    {
    $shts = mysql_fetch_array(mysql_query("SELECT shouts from ibwf_users WHERE id='".$uid."'"));
    $shts = $shts[0]+1;
    mysql_query("UPDATE ibwf_users SET shouts='".$shts."' WHERE id='".$uid."'");
    echo "<img src=\"images/ok.gif\" alt=\"O\"/>Roar added successfully";
    }else{
        echo "<img src=\"images/notok.gif\" alt=\"X\"/>Database Error";
    }
            }
			echo "<br/><a href=\"121lists121.php?action=shouts&sid=$sid\">Back to Roar Full Version!!</a> ";
         echo "<br/><br/><a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
    echo "</p>";
  echo xhtmlfoot();
}

where i put in this code?

subzero Super moderator Fellow · 3,954 posts #9

in your headers like this

<doctype html

<head> HERE <title>

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

amylee Principal · 1,092 posts #11

how about ctrl + F5?

kei_ki7 Senior · 431 posts #12

Better refresh with Ctrl 🙂

Did I help you? You can help me too Your donations will help me finance my studies.

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