This is a Hitskin.com skin preview
Install the skin • Return to the skin page
+2
Proxy*64*
rohan aja
6 posters
page auto refresh
rohan aja- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°1
page auto refresh
how to make the page auto refresh every time the member login or post something?
Proxy*64*- Forumember
Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery
- Post n°2
Re: page auto refresh
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!
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- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°3
Re: page auto refresh
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*- Forumember
Posts : 113
Reputation : 6
Language : English,Greek|HTML/CSS/jQuery
- Post n°4
Re: page auto refresh
i think he wants to have a reply or login without page change
![Very Happy](https://2img.net/i/fa/i/smiles/icon_biggrin.png)
rohan aja- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°5
Re: page auto refresh
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- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°6
Re: page auto refresh
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](https://2img.net/i/fa/i/smiles/icon_smile.gif)
rohan aja- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°7
Re: page auto refresh
i already put that widget. but still same. i must reload the page to see the newest one.
Sanket- ForumGuru
Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
- Post n°8
Re: page auto refresh
Kaizer Lee- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°9
Re: page auto refresh
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- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°10
Re: page auto refresh
huh.are its will be impossible to do that without take a serious damage to database?
Kaizer Lee- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°11
Re: page auto refresh
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](https://2img.net/i/fa/i/smiles/icon_smile.gif)
![Smile](https://2img.net/i/fa/i/smiles/icon_smile.gif)
rohan aja- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°12
Re: page auto refresh
how about the effect just active in index?
Kaizer Lee- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°13
Re: page auto refresh
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- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°14
Re: page auto refresh
its ok. thanks. maybe other member can help me about this problem
LGforum- Hyperactive
Posts : 2265
Reputation : 264
Language : English
Location : UK
- Post n°15
Re: page auto refresh
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:
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...
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- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°16
Re: page auto refresh
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- Active Poster
Posts : 1064
Reputation : 54
Language : English, Tagalog, Spanish and Chinese
Location : Philippines
- Post n°17
Re: page auto refresh
As he said, it's risky to use this code, so complications may arise and have been seen already.
rohan aja- Forumember
Posts : 124
Reputation : 1
Language : indonesia
Location : Indonesia
- Post n°18
Re: page auto refresh
i think it ok. thanks for your help
Base- Forumaster
Posts : 10386
Reputation : 1695
Language : English and French
Location : United Kingdom, England
- Post n°19
Re: page auto refresh
Since the member is banned, this topic is garbaged.