AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   [SOLVED]Google-Map on Clan-Details not working (https://forums.alliedmods.net/showthread.php?t=321762)

[WbOF]LuZiFeR 02-28-2020 06:14

[SOLVED]Google-Map on Clan-Details not working
 
Hi all...

Everything is working fine regarding Google-Maps on our HLSX...

http://wbof.de/screenshots/servergoogle.png

Except the map that should be visible on the clan-detail-page:

http://wbof.de/screenshots/clangoogle.png

Field is empty evertime… Should be an map, or?

Any suggestions?

DarkDeviL 03-01-2020 13:22

Re: Google-Map on Clan-Details not working
 
Quote:

Originally Posted by [WbOF]LuZiFeR (Post 2685269)
Except the map that should be visible on the clan-detail-page:

http://wbof.de/screenshots/clangoogle.png

Field is empty evertime… Should be an map, or?

Your site is https:// -

On your fornt page, you are loading various "http://" content, - e.g. images:

Code:

LuZiFeR <br>
                <a href="https://www.wbof.de/csgo-stats/hlstats.php?mode=playerinfo&player=10"><img src="http://www.wbof.de/csgo-stats/sig.php?player_id=10&background=random" border="0" width="560" height="95" alt=""/></a><br><br>

Note the "http://", that one causes your browser to not load the content, depending on your settings.

You (e.g. HLstatsX:CE) are doing the exact same from from the page you mention above, where it is loading:

Code:

http://maps.google.com/maps/api/js?sensor=false

Quote:

Originally Posted by [WbOF]LuZiFeR (Post 2685269)
Any suggestions?

Simple fix would be to grep (search) your HLstatsX:CE files, and replace "http://maps.google.com[...]" with "https://maps.google.com[...]", so you make sure you are loading all content over https://.

[WbOF]LuZiFeR 03-02-2020 03:48

Re: Google-Map on Clan-Details not working
 
Hi DarkDevil,

thank you for the helpfull hint.

It loads the map now, but i get the message, that the map could'nt be showed correctly.

It means, that the API-Key is not recognized on the clan-page (on the Servers-page it works).

https://www.wbof.de/csgo-stats/hlstats.php?mode=claninfo&clan=2



Do you have an idea, why the API is only working on the server-page? :)

[WbOF]LuZiFeR 03-02-2020 13:09

Re: Google-Map on Clan-Details not working
 
Problem solved…

I added the api-key in this Code also (equivalent to the server-page) :) :)

mariozankl 04-15-2020 13:27

Re: Google-Map on Clan-Details not working
 
Quote:

Originally Posted by [WbOF]LuZiFeR (Post 2685609)
Problem solved…

I added the api-key in this Code also (equivalent to the server-page) :) :)

Where can i find the code for the clan page or what do i have to change that this works?

EDIT: Found it. It's in /pages/claninfo.php on line 140.


All times are GMT -4. The time now is 10:45.

Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.