Dynamically showing the people who come online / offline - php

I have been working on a project that is supposed to be a forum but i got stuck. i want to show all the online / offline players dinamically without needing to restart the page to see who comes online or who goes offline
I have tried with automatic page refresh but that isnt aesthetically pleasing and it might cause me problems in the future, can anyone help me?
Thanks in advance!

jQuery post is an option and so is socket.io

Related

Is php pagination compulsory?

sorry if the question seems too idiot. I am student in development. I created a complete php website for posting stitches (with image video and audio) and then retrieving other users opinions on posted stitches. I made mobile ready and all. But I forgot to set pagination while building it. Yes that was not smart at all. Somehow I still don't have any issue with the website cause there are only 20-30 entries in the database. But in the future if I get more entries, will it freeze browsers considering the fact that there is no pagination for limiting query fetching. I'd like you to tell me what will technically happen if I don't set a pagination system.
If it is compulsory to set a pagination system, can you point me a very great and simple pagination tutorial !?
Thank you
EDIT: Ok, thank you for answers, I will set a pagination system for better user experience. Once again, thanks to all of you !!! 😊👍🏾
RE-EDIT:
I did it !!!!!!! I used Ajax. Added a load more button button and refreshes div via Ajax. Merci !!
Pagination plays a very important role in performance and user experience. As you are hitting to database and fetching more rows uses more memory which can slow database. On the other hand browsers can crash with a lot-of records. specially when you are making web services for mobile devices. So it is good practice to use pagination in php to avoid such overhauls of browser and database or any mobile device etc.

Advanced Custom Fields Issue

So, there's a code that I've recycled multiple times on sites as it's well liked by my company. I am trying to update and recreate my portfolio due to my old hosting company wiping my entire file system. My fault for not having a back up, but lesson learned. Makattak.com Using this code here, I am unable to get anything to display.
A site I've used it on is here: Bowhunting.com
Here is a photo of my repeater field in ACF. I followed the same structure but still cannot get anything to display.
Can anyone offer some suggestions as far as what I am doing wrong? I've tried cutting things out, I've tried rebuilding from scratch, I just can't seem to get the loop to happen.
I am using the latest version of WordPress, and the latest purchased copy of ACF: Advanced.
I know this my sounds stupid but, did you assign the template to a page and select the page on the wordpress Reading settings?
Thanks to both Dre and Raul Cruz, I was able to find the issue.
I didn't set the Reading Settings to Home Page, static.
I revamped my code to change the_sub_field('field'); to
get_sub_field('field')
a change I made while debugging but didn't revert back
There was an issue with my syntax, and when writing the code back in, line by line, testing after each line, I was able to get what I needed back in working order
Thank you both for the help.

Wordpress - Google Map sporadic display

First time post here.
We are having problems with the google map above the search results on our site and thought we'd see if anyone on this site could help out, here's the page:
http://www.thehealthcard.co.uk/?category_name=all&s=richmond
The map is used to display pointers which are local offers (addresses managed via the CMS) this was built by a third party who we cannot now get hold of (fantastic!).
The map is sporadically appearing and then disappearing upon load at different times, we cannot see a reason for this at all upon investigation, Google have claimed nothing is wrong with the map and the site is not using up the free quota that Google allow for map pointer loads.
It just works sometimes and then doesn't at other times.
We have been left scratching our heads for over a week now, any help would be really appreciated.
Thanks in advance.
Chris
That's what causes it - http://note.io/1tvL0dN
Simple JavaScript error.
Can not solve it quickly, but can you have a look at lines 44-53 in custom.js file. Try to increase the timeout in line 52.

Google tv issue

testing the scripts as per template at:
http://gtv-resources.googlecode.com/svn/trunk/templates/html-02/index.html
i see something is not working properly.
In fact.... if i click two times the same thumbnail ( and we know viewers can do it) the video player stop working.
It is like ..... if the server stay on the previous request without take care of the new one.
Because there is not a visual movie preloader i don't know what is happening on server side.
I really hope someone can help me on this issue.
Many thanks
maurizio
It seems like a bug in the html UI templates. Please file it in the issue tracker with step by step instructions to reproduce this issue:
http://code.google.com/p/googletv-issues/

Problem, site works on FF4 but not IE9 or other browsers

I have been developing a website for a University coursework, and at the moment, i have managed to get the features i want.
The website works using jQuery,AJAX and PHP to allow the user to view articles and media that goes with each article. My problem is that the site works as it should on my laptop, on FF4 however it does not work on my IE9 or other browsers, I have given the link to a few people and they all encounter the same problem.
The problem is that when you click the story on the left (thats how you navigate) it fades the text as it should, but it is meant to load in the next story aswell.... If you guys could help, that would help alot.
Link to website: newspaper.nmyster.co.uk
Thanks
IE8 is bugging out on this line:
console.log(storyId);
I'd suggest commenting this out.
If you enable debugging you should be able to see the same error.
These kind of problems always occurs by HTML and JavaScript support of broswer. First of all you shold validate your HTML by W3C validation. If the problem still persists than carefull check your javascript or jquery.

Categories