page auto refresh Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+2
Proxy*64*
rohan aja
6 posters

    page auto refresh

    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty page auto refresh

    Post by rohan aja November 16th 2012, 11:01 am

    how to make the page auto refresh every time the member login or post something?
    Proxy*64*
    Proxy*64*
    Forumember


    Male Posts : 113
    Reputation : 6
    Language : English,Greek|HTML/CSS/jQuery

    page auto refresh Empty Re: page auto refresh

    Post by Proxy*64* November 16th 2012, 2:24 pm

    I can make this,but it can create a serious problem on your forum.

    Look..when a memeber login,a request is sending to the server,and the server is sending back the result.

    So if the page refresh,before the server send back the results,the result won't be taken by the browser,so the member won't login!
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 16th 2012, 2:57 pm

    I don't quite get it, you want the page to refresh or sumth? Because when we do log in, for example in Google, the page refreshes and when a new topic or post is made, we're redirected to an Information page or post page, and then get refreshed back to the original topic, so what is it that you want?
    Proxy*64*
    Proxy*64*
    Forumember


    Male Posts : 113
    Reputation : 6
    Language : English,Greek|HTML/CSS/jQuery

    page auto refresh Empty Re: page auto refresh

    Post by Proxy*64* November 16th 2012, 6:33 pm

    i think he wants to have a reply or login without page change Very Happy
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 17th 2012, 7:49 am

    i want the page auto refresh like fb. so we will know who post something or who member just login without reload the page
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 17th 2012, 8:51 am

    Right, trick is in the widgets. Make sure you place the Recent Topics in and Who Is Online on the sides of the Forum Page. You don't have to arse yourself into coding more if you can do it the easy way Smile.
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 17th 2012, 9:17 am

    i already put that widget. but still same. i must reload the page to see the newest one.
    Sanket
    Sanket
    ForumGuru


    Male Posts : 48766
    Reputation : 2830
    Language : English
    Location : Mumbai

    page auto refresh Empty Re: page auto refresh

    Post by Sanket November 17th 2012, 9:22 am

    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 17th 2012, 9:33 am

    LGforum wrote:As much as it sounds great, you would not want this on forumotion.
    It would be severely damaging to the database and servers to the point of almost crippling them.
    Notifications aren't THAT bad, but REAL-TIME Notifications one 100's of thousands of forums going off all around the world constantly? Forumotion would become unusable.

    On my site I have a facebook style notification bar, which lets you know who has posted on your wall and sent you a friend request. It isn't real time and it only notifies on the homepage, because even if that was on every page it can be damaging to the forum.
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 17th 2012, 10:11 am

    huh.are its will be impossible to do that without take a serious damage to database?
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 17th 2012, 10:13 am

    It's actually possible to do it, but the problem is is that you can't put it in all your forum because a possible crash might happen, and it's advisable for you to avoid it instead since you don't want your whole site to crash Smile
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 17th 2012, 10:44 am

    how about the effect just active in index?
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 17th 2012, 10:45 am

    That's where LG can come in. I don't know the code about it since I've never tried the facebook style notification, but if you insist, I can only hope your forum can handle it.
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 17th 2012, 11:03 am

    its ok. thanks. maybe other member can help me about this problem
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    page auto refresh Empty Re: page auto refresh

    Post by LGforum November 18th 2012, 5:08 am

    The comment above still stands really. Forumotion forums could not afford to be heavy on the database like VB, IPB or facebook. However, I have noticed a significant improvement in their servers and speed over the last couple of months, I don't know if they have changed anything, or if it's just down to my change in ISP lol.

    Anyway, I'm going to assume you want just the forum's to refresh, rather than the whole page. Try this in a Javascript for the homepage only:
    Code:
    setInterval(function(){  $('body').load('/ body > div'); }, 20000);

    If you have Javascripts on your forum which manipulate the homepage in anyway, you'll see the downside to doing this. Those Javascripts will need to be re-executed in order for your page to still look the same...
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 18th 2012, 7:41 am

    I actually like the automatic refresh on the homepage only, and the effect only works every new post. the javascript code anyway it does not work correctly, because when auto refresh both. the page will reload with the imperfect.
    Kaizer Lee
    Kaizer Lee
    Active Poster


    Female Posts : 1064
    Reputation : 54
    Language : English, Tagalog, Spanish and Chinese
    Location : Philippines

    page auto refresh Empty Re: page auto refresh

    Post by Kaizer Lee November 18th 2012, 8:44 am

    As he said, it's risky to use this code, so complications may arise and have been seen already.
    rohan aja
    rohan aja
    Forumember


    Male Posts : 124
    Reputation : 1
    Language : indonesia
    Location : Indonesia

    page auto refresh Empty Re: page auto refresh

    Post by rohan aja November 18th 2012, 10:16 am

    i think it ok. thanks for your help
    Base
    Base
    Forumaster


    Male Posts : 10386
    Reputation : 1695
    Language : English and French
    Location : United Kingdom, England

    page auto refresh Empty Re: page auto refresh

    Post by Base November 23rd 2012, 2:31 pm

    Since the member is banned, this topic is garbaged.