Can ahref could be auto refresh

Started on the old forum in February 2012 · view the original in the archive · old links redirect here

4 replies · 467 views · started 14 years ago · 1 min read

4 participants
something else Fellow · 2,296 posts #2
<meta http-equiv="refresh" content="30; <?php echo $_SERVER['PHP_SELF']; ?>?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
&nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>">

//:P

Added after 23 minutes:

or you could do it via javascript:

<html>
<head>
<script>
 function autoClick(){
 document.getElementById('linktoclick').click();
 }
 </script>
</head>

<body onload="setTimeout('autoClick();',2000);">
<a id="linktoclick" href="<?php echo $_SERVER['PHP_SELF']; ?>
 ?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?>
 &nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?>
 ">Refresh</a><br/>
</body>
</html>
GumSlone Administrator Principal · 1,690 posts #3

Dillu wrote: This code is in the php file, its for refresh hyperlink, when we click it its work with some numbers,

All want to have that i should be autoclick or auto refresh on timer. how to do it the same code with auto refresh timer.


?k=<?php echo $this->_tpl_vars['user']['user_login_key']; ?> &nocache=<?php echo smarty_function_math(array('equation' => 'rand(1,100000)'), $this);?> ">Refresh


i think that gumchat script is to complicated for you, the copied code is from the smartys temporary folder, it doesnt make any sense to edit files there because this files will be overwritten and all the newly added codes will be lost, you received a reply in another topic how to do the autorefresh, here you ask again, if you are unable to add simple autorefresh to a page - you should start with basic html, php tutorials and "Hello World!" page first , or hire someone who will do it for you.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Dillu Junior · 11 posts #4

i am not novice, but the problem is really big Actually if i will enter room.php its just logout. its mean if it will go to room.php it will be logout.

arnage Lead · 811 posts #5

Yes you are and there is nothing bad about it. Bad is to claim otherwise when the thing is perfectly clear.

<!DOCTYPE html PUBLIC "-//***WAPFORUM**.**RS***

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