Wordpress - Google Map sporadic display - php

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.

Related

Dynamically showing the people who come online / offline

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

Web Scraping in php? need a specific piece of data

I'm trying to pull a piece of data from the website www.coinmarketcap.com
specifically, the market cap number up the top.
I've been trying to figure this out the past hour or so and have read MANY different ways people use these web scrapers but have not been successful at all. Could someone shed some light?
There are multiple ways, but the easiest is just take their url:
https://files.coinmarketcap.com/generated/stats/global.json
Please note: They might not like this. Maybe they dont want external parties to use their scripts. So also buidl a check wether the file still exists and doesnt give a 403 back.
How did I find this:
When the page loads,the header with the information loads after the document ready, so it can not have been made by the server and has to be AJAX.
Now we know that it is AJAX, we want to know which file. You do this by opening your browsers console. All browsers have a network tab, showing all resources being loaded. When you filter by XHR you see all AJAX request. Then you try to find the right one.

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.

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/

Openx Ad Delivery Issues

My System
Apache 2.2.9
PHP 5.2.9
MySQL client version: 5.1.28-rc
Openx v2.8.5
I am using the Javascript single page call to serve my ads. I am running an in house CMS where everything is processed through a template.php file.
My Issue
The success of an ad being served seems to be very hit and miss. The placement or type of the ad does not seem to matter. For some reason, the loading of the ads is very spotty. Each page serves an average of 3 ads. Sometimes none show up, sometimes 2, sometimes 1. There does not seem to be any consistency in the problem occurring. The problem seems to have worsened since I updated to the most recent version and started using Single Page Call.
I have checked the source. All Javascript script is in place, but the ad content is not generated under the script where it should be. The space where the ad should be is just empty.
No Javascript errors are generated.
Any help will be greatly appreciated.
For me, this happened when the campaigns assigned to the zone were all contract and there was no Remnants assigned. OpenX basically had no banners with impressions left to display.
Also, another time t his happened was with their implementation of Single Page Call. OpenX pre-loads all zones you have put into the array on every page, regardless of if they are displayed or not. So if you have a lot of zones, the ones near the end of the array can not get any ads because the ones above it take all the ads with impressions.
If you have a CMS with a lot of advertising zones, you're going to have to dynamically control the Javascript array to only load the zones needed for display on that specific page. I have a solution for Joomla if you need more details.

Categories