News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Code to auto-refresh the who's online page

Started by Trevor Hale, November 11, 2009, 06:52:49 PM

Previous topic - Next topic

L'AltroWeb

Sorry, some my test, now i put your code (i've ftp opened: just 2 seconds) :)
-
Ok, fixed.
As you can see, this code refresh (and damage) also left column (all banner disappear).
-
PS: can you also provide a slow/fade effect?

L'AltroWeb

#61
Edit:
Ok, finally i've fix with this code:
Open Who.template.php.
Find:
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">Replace with:
<table id="jqrefresh" cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder">
Now put this code before the closing brace to the end of file:
echo '
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript">
//<![CDATA[
setInterval(function() {
$("#jqrefresh").fadeOut("slow").load(location.href+" #jqrefresh>*","").fadeIn("slow");}, 10000);
//]]>
</script>'
;

-
I don't know if is the best solution but work fine for me: http://www.darkwolf.it/who/

darrenbeige

Sorry, forgot about this. But yeah that looks about right. It's quite annoying as your custom portal-theme meant that the normal tables would be damaged when the content was inserted.

Glad to see you managed to fix it yourself. I do admire personal perseverance.

L'AltroWeb


Advertisement: