WebSite X5Help Center

 
Peter H.
Peter H.
User

Php Script code issue from php Jabbers  en

Auteur : Peter H.
Visité 1422, Followers 1, Partagé 0  

Hey everyone "Un problema intresante" I am also trying learn Spanish as well. The issue:

I have installed a script called a "store Finder" from PhP Jabbers https://www.phpjabbers.com/store-locator

I can make it work a treat from its own preview page https://www.website-designer-derby.co.uk/subs/test1/storefinder/preview.php?theme=theme1

But when i install the code on Website X5 (html code object) it loads like this https://heanor.website-designer-derby.co.uk/store-finder.html

I have the google api key installed correctly i think, because it is working in its own preview payne. Has anyone got any ideas? this is for a community project to try and help small businesses to get online. Thanks in advance, more photos in zip folder. ;)

Posté le
4 RéPONSES
John S.
John S.
User

Hello Peter

Maybe it is because of the placement. As far as I remember then the API key is for each location/domain. Maybe it is also for each sub-domain.

As an alternative you could use the same map I am using: PinDown.

It can be seen here: https://pindown.eu/demo03.html

The app has just passed the beta-testing and if you are interested then you could use this contach form (bottom of page): https://www.bramminginfo.dk/ I can then help be getting the app-package and by installation.

Answer to the question in the contact form  is: kat

The app is easy to install and set up. No API-key required, no payment - it is totally free.

Alternatively you could contact PHPjabbers as this has nothing with the X5 to do.

Lire plus
Posté le de John S.
Peter H.
Peter H.
User
Auteur

Thank you John for your comments. This problem does have something to do with X5 as the (html code object) also has some CSS around it, so any code placed within is also subject to this CSS, even though the code may have its own CSS. I had a problem a few years back with a PhP show box not being able to break the boundary of the html code box it was put in, ended up being "True" instead of false on a line of code.

Lire plus
Posté le de Peter H.
John S.
John S.
User

Code you put into a html-object is not in any way supported by INCOMEDIA.

But the users on this forum normally try to help if we are able to. In this case there are two 3. parties involved: Google and PHPjabbers - and that makes it maybe more dissicult.

I have some suggestions:

- try to put the "preview.php?theme=theme1"-script in the same location where you have the X5-page where you want to frame it.

- Does it function here?

If no - then it is probably the API-key that need to be made for that location.

If yes - then try to put it in an iframe.

- Does it function here?

If yes - then all is OK.

If no - then we take it from there. Give a link to the page and I am sure some users will try to find out what could possible be wrong.

Lire plus
Posté le de John S.
John S.
John S.
User

What is the status for this issue?

Lire plus
Posté le de John S.