Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
146 stars 127 forks source link

onlinelist.php is missing us.png #378

Closed SeeingBlue closed 4 years ago

SeeingBlue commented 4 years ago

onlinelist.php references a us.png in the root directory that doesn't exist.

Znote commented 4 years ago

Or you are mixing secure and insecure web protocols.

Does your server run SSL? Do you have your own flag host? Flags are by default loaded by my web host flag.znote.eu

https://github.com/Znote/ZnoteAAC/blob/6fd5aa5409234601043d71e48116103c00ed4742/config.php#L579-L586

My host is not running through SSL, so if your website does, you cannot load images from my host. The solution is to host your own flag server.

Create a folder in your Znote AAC directory, etc call it "flags".

Download my copy of my flag host: http://flag.znote.eu/flags.zip

Extract the flag images into your own flag folder.

Change country_flags server in config.php to your website, etc:

'server' => 'https://yourotwebsite.com/flags' 

And it should correctly load the us.png flag, representing USA. Or any other country a user might sign up as when they create their account.

SeeingBlue commented 4 years ago

I got it working. Thanks for the clarification.