The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

page auto refresh

View previous topic View next topic Go down

page auto refresh

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

how to make the page auto refresh every time the member login or post something?

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by Proxy*64* on 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!

Proxy*64*
Forumember

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

http://fataola.forumgreek.com

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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?

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

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

Proxy*64*
Forumember

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

http://fataola.forumgreek.com

Back to top Go down

Re: page auto refresh

Post by rohan aja on 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

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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.

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

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

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

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


Sanket
ForumGuru

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

http://webartzforum.com

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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.

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

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

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

how about the effect just active in index?

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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.

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

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

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by LGforum on 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...

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: page auto refresh

Post by rohan aja on 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.

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

Post by Kaizer Lee on 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.

Kaizer Lee
Active Poster

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

http://www.medievalchaos.net/forum

Back to top Go down

Re: page auto refresh

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

i think it ok. thanks for your help

rohan aja
Forumember

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

http://www.game-spots.co.cc

Back to top Go down

Re: page auto refresh

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

Since the member is banned, this topic is garbaged.

Base
Forumaster

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

http://forumotionhub.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum