Login     Sign up
Auto refresh every 3 min
adil (@adil)
Join date: May 9th 2010
Community posts: 202
View Profile
Send Message

I've made small change but, not complete it refresh the application area every 3 min here is the code

  1. find this line in the page.tpl.php of your used theme (backup first)
    [code]
    display_application_content();
    [/code]
    replace with
    [code]
    echo '
    <script type="text/javascript">
    setInterval(function() {
    $("#appframer").load(location.href+" #appframer>*","");
    }, 180000);

</script>
<div id="appframer">';

display_application_content();
echo '</div>';

[/code]

One issue I should mention here if your client is trying to make something tooks hime more than 3 min it will be lost like uploading very big picture or music file olso if he is writing in his quick share in a bad timing (before seconds of refresh.. hope someone can fix that for me I'm very bad at java

adil

177 months ago
Jumanji (@jumanji)
Join date: Sep 1st 2010
Community posts: 27
View Profile
Send Message

thanks mate nice modification!

177 months ago
adil (@adil)
Join date: May 9th 2010
Community posts: 202
View Profile
Send Message

I did not dig it out but from its name this function only display the current selected module... so to make modification for example at the dashboard display you should modify the /module/dashboard not this function it self ... got the point man

the real modification to my change would be if someone come up with away to refresh the /feed and /dashboard but not the others that require more time in interacting like adding music and photos so if any one can help please give me a hint

adil

177 months ago
Jumanji (@jumanji)
Join date: Sep 1st 2010
Community posts: 27
View Profile
Send Message

k thanks, i know what you mean... hmmm let me think of it!

177 months ago