help abt refresh.
Collapse
X
-
PHP Code: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?
Leave a comment:
-
ok thnx zero mate.. how to apply this?? only copy paste the code to the place i want refrsh?
Leave a comment:
-
<meta http-equiv="refresh" content="5;url=where ever u want to redirect to">
see the red 5
Change that too 0 or 1
Leave a comment:
-
like, when i reply here. it takes me back directly to the topic as i was in topic when i replied.
Leave a comment:
-
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.Originally posted by Loony View Postuse a meta tag to redirectthis will redirect after 5 secondsCode:<meta http-equiv="refresh" content="5;url=where ever u want to redirect to">
Leave a comment:
-
use a meta tag to redirectthis will redirect after 5 secondsCode:<meta http-equiv="refresh" content="5;url=where ever u want to redirect to">
Leave a comment:
-
help abt refresh.
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.Tags: None
Leave a comment: