Giter VIP home page Giter VIP logo

worldopole's Introduction

Worldopole

Build Status Scrutinizer Code Quality License: MIT Discord

Based on Brusselopole, Worldopole is an open source version of the website, allowing you to display in a nice way the data you have gathered of the Pokemon in your city such as Team Gym Battles, Raids, Pokemon nests and Pokéstops. This app is a base and will help you build your own version of Brusselopole with more data-visualisation!

Up-to-date demos:

Chat with us on our official Discord: https://discord.gg/SDvsxkN

Requirements

  • PHP 5.4+
  • Apache 2.4+
  • Apache modules (see Wiki)
  • Existing RocketMap (previously PokemonGo-Map) MySQL database

Installation

See Wiki

Contribute

For feature requests please open a GitHub issue with a [Feature Request] tag.

Help to translate

License

Worldopole is released under the MIT License.

worldopole's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

worldopole's Issues

Translation not showing up

Expected Behavior

See German Translations on the Website.

Current Behavior

Translated Words are just blank/hidden/not showing on the Page.

Steps to Reproduce (for bugs)

  1. I edited translations.json, added lines with "DE"
  2. Edited my variables.json, DE:true - all other languages false

Your Environment

No database connection at home page?

Hi,

0 pokemon, 0 gyms and 0 lures it says.
Recent pokemons:
Notice: Undefined variable: pokemon in \pages\home.page.php on line 49 Call Stack #TimeMemoryFunctionLocation 10.0038148968{main}( )...\index.php:0 20.0251681648include( '\pages\home.page.php' )...\index.php:112

If I go to ./pokestops, ./gyms or ./pokemon it works just fine.

All Strings dissapeared

Hey, at my site:
www.dapole.zockfreunde.de

All Strings are missing :|
Apache Error log tells me:
[Mon Aug 29 19:37:16.047158 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 36, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047331 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 42, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047379 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/core/inc/meta.inc.php on line 46, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047438 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 62, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047559 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 65, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.047627 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 5, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049055 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 17, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049089 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 22, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049115 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 22, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049138 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 28, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049162 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 28, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.049196 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 33, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050177 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 43, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050484 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 67, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050519 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050544 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050570 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050595 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/pages/home.page.php on line 75, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050623 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 129, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050648 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 130, referer: http://www.dapole.zockfreunde.de/pokestops [Mon Aug 29 19:37:16.050675 2016] [:error] [pid 6099] [client 109.90.208.28:48125] PHP Notice: Undefined property: stdClass::$1 in /var/www/dapole/index.php on line 131, referer: http://www.dapole.zockfreunde.de/pokestops

Pokemon search at Pokedex: Searching only in "seen XX" string

If entering a search String in the search field at the Pokédex,
it only will search in all "seen XX" strings below the pictures.

Examples:

  • Entering "Ch" (for Charmander e.g.) won't yield any results.
  • Searching for "3" will return all Pokémon seen 3, 30, 13, 53... times.
  • Searching for "seen" will return all Pokémon.

Blank page on Ubuntu 16.10 VPS

Expected Behavior

The page should be displayed

Current Behavior

The page is blank.

Possible Solution

Context

I'm trying to host the site on my Ubuntu 16.10 VPS. But when I enable mod_php the page stays blank. When I disable mod_php it works (with the php parts not working of course).

I tested on my Debian Jessie stable on my local computer and I managed to make it work there.

I tried both php7.0 and php5.6 on the Ubuntu server.

On my local Debian computer I have php5.6 and it works

Your Environment

  • Version used: 2fb2292
  • URL: IP of my VPS for now, prefer not to make it public.
  • Operating System and version (desktop or mobile): Ubuntu 16.10

Timezone bug in cron

$ grep -R '2 HOUR' *
core/cron/pokestop.cron.php:$req                = "SELECT COUNT(*) as total FROM pokestop WHERE lure_expiration > (NOW() - INTERVAL 2 HOUR)";
core/cron/pokemon.cron.php:$req                 = "SELECT COUNT(*) as total FROM pokemon WHERE disappear_time > (NOW() - INTERVAL 2 HOUR);";
core/cron/pokemon.cron.php:$req                 = "SELECT pokemon_id FROM pokemon WHERE disappear_time > (NOW() - INTERVAL 2 HOUR);";

Note the hardcoded 2 hours.
Should be replaced with time_interval

unexpected '<' in pokemon.page.php on line 130

Context

Can't open Pokémon detail page (e.g /pokemon/1)
Error:

unexpected '<' in pokemon.page.php on line 130

Problem

<tr>
                <td class="col-md-8 col-xs-8"><strong><?= $locales->POKEMON_EVOLUTION->$lang ?> :</strong></td>
                <td class="col-md-4 col-xs-4"><?php if(isset($pokemon->candies)) { echo  $pokemon->candies . "&nbsp;". $pokemon->candy_name . " " . <?= $locales->POKEMON_CANDIES->$lang ?> ;} else { echo $locales->POKEMON_FINAL->$lang; } ?></td>
</tr>

Line 130 in pokemon.page.php

Possible Solution

Remove inside the echo function:

<tr>
                <td class="col-md-8 col-xs-8"><strong><?= $locales->POKEMON_EVOLUTION->$lang ?> :</strong></td>
                <td class="col-md-4 col-xs-4"><?php if(isset($pokemon->candies)) { echo  $pokemon->candies . "&nbsp;". $pokemon->candy_name . " " . $locales->POKEMON_CANDIES->$lang ?> ;} else { echo $locales->POKEMON_FINAL->$lang; } ?></td>
            </tr>

Steps to Reproduce (for bugs)

  1. Open detail page of a Pokémon

Your Environment

  • Version used: Current
  • URL: -
  • Operating System and version (desktop or mobile): Debian 8, NGINX, PHP-FPM

Translation file doesn't have POKEMON_CANDIES entry so causes errors on pokemon page

This file - https://github.com/brusselopole/Worldopole/blob/master/core/json/translations.json

does not have an entry for 'POKEMON_CANDIES' which is then attempted to be read on line 128 of this file - https://github.com/brusselopole/Worldopole/blob/master/pages/pokemon.page.php

Current Behavior

The error_log file on the webserver shows an exception error

Possible Solution

Add in the 'POKEMON_CANDIES' entry into the translation file

Steps to Reproduce (for bugs)

load the an individual pokemon's info page e.g. blah.com/pokemon/10 and then see that it says

Next Evolution Requirements : 12 Caterpie

without the word candy on the end.

[Refactoring] Translation and timezone implementation

Expected Behavior

  • Fix all annoying issues with translations and timezones once and for all

Current Behavior

  • Translation support is buggy and a pain to maintain #81
  • Some features don't even work
  • Timezone is buggy in cron #90, we should write a dedicated load "class" for it
  • duplicate code

Possible Solution

  • Have special loading classes for translations and timezone we can include everywhere it's needed
  • refactor translation and pokemon files completely

Copy paste of my suggestion on discord

Have a translations.json file for each language

  • with Key Value pairs
  • so like the current one just seperate for each language

Have a locale.loader.php

  • This will load the language and can be included in each site which needs translation (so dashboard as well :D)
  • This will load the specific language file + en language for fallback if the string isn't translated yet for new language
  • Then it should be very easy for everybody to add new translations. Just copy paste the EN file and edit the strings
  • There will be no merge conflicts with other languages or new features

About pokedex.json

We should refactor pokelist_XX.json way more I think.
So we have one global pokedex.json with:

{
  "typecolors": {
    "Grass":"#008000",
    "Poison":"#EE82EE",
    "Water":"#0000FF"
  },
  "1": {
    "max_cp":"1072",
    "max_pv":"82",
    "candy_id":"1",
    "quick_move":"Vine Whip",
    "charge_move":"Power Whip",
    "spawn_rate":0.0159,
    "candies":"25",
    "atk":"126",
    "def":"126",
    "stam":"90",
    "types":["Grass", "Poison"]
  },
  "2": { .., .. }
}
  • Move Name and Description out, Users have to translate only this
  • reference poke ID for candies instead of name --> no need to translate twice
  • define type colors in own array
  • instead of saving spawn_rate and rarity we should write a function which translates rarity based on spawn_rate. Then we just include translations for all rarities in translations.json.

New file /XX/pokes.json

This will have: type translations, move translations and pokemon translations:

{
  "moves": {"Tackle":"bla", "Quick Attack":"bla bla bla" },
  "types": {"Grass": "blablabla", "Water":"bla" },
  "1": {
    "name":"Bulbasaur",
    "description":"bla bla bla"
  }
  "2": { ... }
}

Then merge both json files programmatically and replace moves and types with translations. Maybe resolve candy_id as well.
This way we can update stats/optimal moves whatever and it will be translated automatically 😉
All cronjobs need to touch pokedex.json only.

File structure may look like this

└── core
    ├── json
    │   ├── pokedex.json
    │   └── locales
    │       ├── DE
    │       │   ├── pokes.json
    │       │   └── translations.json
    │       ├── EN
    │       │   ├── pokes.json
    │       │   └── translations.json
    │       └── FR
    │           ├── pokes.json
    │           └── translations.json
    └── process
        ├── locale.loader.php
        └── timezone.loader.php

Total gym count drops sometimes

Expected Behavior

Gym count should stay the same the whole time.
2k in my case.

Current Behavior

From time to time it drops ~300 in my case
But as you can see sum of team gym count is ~2k. So it should be around 2k not 1.7k
Reloading the site fixes the count --> back to 2k.

image

Steps to Reproduce (for bugs)

  1. Open site
  2. wait

Your Environment

current

Pokémon Translations in the 'last spawns' list are not applied on new Spawns

Expected Behavior

On the main page, the 'last spawns' list should apply the translations for the selected language (in my case German) when a new spawn is added.

Current Behavior

On a page load, the translations are correctly applied. When a new Pokémon spawn is added to the list, it appears with the English name instead of the desired translation.

Your Environment

Dashboard Pokémon total spawn/Lure graphs are not only 7 days

Expected Behavior

  • Pokémon total spawn graph shows last 7 days
  • Lure graph the same
  • Read the times/dates on the X axis

Current Behavior

Pokémon total spawn graph shows all days and is slow as hell

Possible Solution

  • For last 7 days:

In dashboard.graph.js.php:

Around line 50:

  • add $lastweek
  • add if condition for $lastweek
$now		 = time(); 
$yesterday	 = $now-86400; 
$lastweek        = $now-604800;
$i=0; 

foreach($stats as $data){
	
	if($data->timestamp > $lastweek){

	$labels_global[]	= '"'.date('d/m h:i a', $data->timestamp ).'"';
	$total[]                    = $data->pokemon_now;
    }
	
if($data->timestamp > $yesterday){

And for lure:

    if($data->timestamp > $lastweek){
	
		$labels_stops[]			= '"'.date('d/m - h:i a', $data->timestamp ).'"';
		$lure[]				= $data->lured; 
	
	}
  • For the axes:

Current solution is to add the date to the X axis by the following:


if($data->timestamp > $yesterday){
		
		$labels[] = '"'.date('d/m h:i a', $data->timestamp ).'"'; 

and:


if($data->timestamp > $yesterday){
	
		$labels_gym[]			= '"'.date('d/m h:i a', $data->timestamp ).'"';

graph
prestige

No Maps on subpages such as /gym or /pokestops

Expected Behavior

small maps showing of where gyms are located and their respective team color
same for stops/lured stops

Current Behavior

everything works fine, except all the small maps are missing and there is a big white space instead

Possible Solution

no idea at all

Steps to Reproduce (for bugs)

  1. visit https://pokemapoberursel.de/
  2. see for yourself
    3.
    4.

Context

it appeared yesterday on another VPS. i got a new one and set that up and still got the same error

Your Environment

[Feature Request] rarity table

just a rarity table generated from your database

POKE IMAGE / POKENAME(with link to pokedex) / spawn time / %

Wont be hard to be made, i tried and i faild :/

*dot* missing at Pokemon counter on main page

Expected Behavior

It should say "X Pokémon in Y right now."

Current Behavior

It acutally says "X Pokémon in Y right now" (so the dot at the end is missing)

Possible Solution

I made and ugly fix adding a " . " in line 17 in home.page.php
<?= sprintf($locales->WIDGET_POKEMON_SUB->$lang, $config->infos->city); ?></a>.</p>

Steps to Reproduce (for bugs)

  1. visit http://brusselopole.be/ for example at see for yourself

Context

Your Environment

  • Version used:
  • URL:
  • Operating System and version (desktop or mobile):

Timezones and Interval not working properly

I followed the instructions and everything is working fine except for the time information.
I'm located on the US East Coast (EST: GMT-4) and I have to choose between getting the correct "last seen" information, or the correct graph.

If I set the variables.json "time_interval" to -4, then the last seen time, and the "current pokemon" is not working properly.
If I set the variables.json "time_interval" to 0, then the last seen time works, but the graph on the pokemon page is offset by 4 hours.

Expected Behavior

I would expect that setting the time interval and timezone would work, but it is not working correctly.

Current Behavior

Either the last seen or the graph is "offset" by the +/- number provided.

Possible Solution

Properly use the time interval and timezone settings, or simply ask for the information once.
I think the problem may be due to the information being both in the config.php and variable.json that it may be counted twice in some situations.
Maybe I'm not using the "timezone" in the json correctly. I have it set to "New_York/America"

Steps to Reproduce (for bugs)

Set up the site and check the "last seen" vs the "graph" in the pokemon page.
After 24 hours it may be hard to notice, since you will have data points for all hours, but if you start from scratch, the data is offset.

No Pokemon in the Counter "X Pokemon in $City"

Expected Behavior

Show Pokemon on Website

Current Behavior

Website says "0 Pokemon in $City right now",
but is showing Gyms, Pokestops and recent Spawns

Possible Solution

Please tell me, i have no clue 👯

Steps to Reproduce (for bugs)

  1. Have PokemonGo-Map running since weeks
  2. Cloned the repo local, done all steps in readme
  3. Page loads fine, but no pokemon in the counter

Your Environment

  • OS X Server
  • Apache2
  • mod_rewrite active
  • PHP 5+ installed

Corrupted links and "0 Pokémons / 0 Gyms / 0 Lures"

I followed all the install recommendations but when I tried to open the page it just show some links (all corrupted) and "0 Pokémons / 0 Gyms / 0 Lures". Checking the error.log of apache I have this message:

"[Sun Aug 28 19:38:38.564788 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 49 [Sun Aug 28 19:38:38.564949 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.564989 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.565780 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Notice: Undefined variable: pokemon in /var/www/html/Worldopole/pages/home.page.php on line 51 [Sun Aug 28 19:38:38.565845 2016] [:error] [pid 6117] [client 127.0.0.1:57712] PHP Fatal error: Cannot access empty property in /var/www/html/Worldopole/pages/home.page.php on line 51"

Could be a error related to PHP and mysql connection?

URL rewrite not workin

Expected Behavior

When clicking on a link like "All Pokemon" the /pokemon page should display something.

Current Behavior

The pages like /pokemon are 404 not found.

Possible Solution

Steps to Reproduce (for bugs)

  1. Go to the main page
  2. Click on All Pokemon or any other link

Context

When I'm trying to go to the "All pokemon" page or "Gym" page I get a 404. However when I look into the .htaccess file and enter the real adress like index.php?page=gym, it works.

I have mod_rewrite enable, I checked with sudo a2enmod rewrite and the .htaccess is the original.

The directory with Worldopole is /var/www/Worldopole and my apache2 site conf file is :

<VirtualHost *:80>

             ServerAdmin webmaster@localhost
             DocumentRoot /var/www/Worldopole


             ErrorLog ${APACHE_LOG_DIR}/error.log
             CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Your Environment

  • Version used: 2fb2292
  • My VPS adresse
  • Operating System and version (desktop or mobile): Ubuntu 16.10

[TODO] Gym info window improvements

Bugs

  • Fix closing button. See: #96
  • Add arrow to gym. See: #99
  • There seem to be a few utf8 issues with gym names. See: 9c815f4
  • There is dead space right above the gym-info window which is non-clickable and therefore the gym-info can't be closed up there by clicking on the map. See: 6fc8f12
  • Handle gyms without gym-info, right now a lot of them are created on edges of maps where they are updated but gym-info could not be retrieved. Right now the "new" gym-info window is not available for those and ugly info is shown (was it the old of aru.php?). See: #103

Ideas

  • Too much empty space? Like wrapping it more, remove "CP" and put CP-Number+IV-Bar closer to the Poké icon, lower inner margins? See: 6fc8f12
  • Move the whole infowindow context from gym_map to gym_defender in aru.php? Right now we do things twice.
  • Implement gym images with level like: PokemonGoMap/PokemonGo-Map#782. See: #103
  • Improve the active/inactive pokemon query. Right now it checks whether last_seen is not older than 24h only. See: 4254cfe Fixed: 93d4a35
  • Do we want to add lat long?
  • Replacing gym image with a standard image for gyms without gym info
  • Do we want to add a progress bar for level as well? Like this:
<=|=|=|==|==|==|===|== |   |   >
Level 7 | Prestige: 434634

Need Help to install the website. I get weird results at the moment :/

Hello, I'm really in trouble about the installation of the website. I got weird result.
-I don't have acces to pokemon/pokestops/gym/etc pages.
-I only have acces to the first index page, but it's so weird and buggy ..

I obviously missed something.

Thanks in advance for your help !

image

Fatal error: Uncaught exception 'Exception' with message 'Timestamp is in the future'

I'm getting this error in the "When was it last seen?" section of any pokemon page

Fatal error: Uncaught exception 'Exception' with message 'Timestamp is in the future' in /home/pokenata/public_html/functions.php:38 Stack trace: #0 /home/pokenata/public_html/pages/pokemon.page.php(101): time_ago(1472448094) #1 /home/pokenata/public_html/index.php(100): include('/home/pokenata/...') #2 {main} thrown in /home/pokenata/public_html/functions.php on line 38

Changing language not working

In the translations.json, they're all the string for the website and UI elements. When using "fr" : true, it is not updating the main site language.

[Feature Request] Make most recents on "home.page.php" great again

I question the use of the "home.page.php"'s most recent spawns in its current state. It's nice to see the scanner live but further the information provided for the user is pretty low.

Expected Behavior

What someone likes to see there is on the one hand really rare spawns and how long ago this was.

Current Behavior

Shows rare spawns in the area with link to the Pokédex page. No further information is provided.

Possible Solution

  • Change the Pokémon list to actually real mythic spawns, maybe change the general rare categories for all Pokémon that they reflect the actual rarity of Pokémon in-game or their usefulness. Like "Mythic" for the most powerful Pokémon as well as extreme hard to obtain.
  • Further, provide a time information below the most recent Pokémons like "< 1min ago", "10min ago"

Effect "wow" is coded but nowhere implemented

Expected Behavior

Effect "wow", like "pokemon-single" for blue glow, should do something. It is coded for the very most recent Poké on "home.page.php".

Current Behavior

It's just not there.

Possible Solution

Implement another hover effect in the css file like "pokemon-single" and add a .png to "img" folder.

Steps to Reproduce (for bugs)

  1. Open homepage
  2. Watch recent Pokémon
  3. Directly loaded Pokémon are blue glowing on hovering
  4. All new added Pokémon while dynamic loading do not show an effect

Context

Your Environment

  • Version used:
  • URL:
  • Operating System and version (desktop or mobile):

No Pokestop found is your database

I'm using mariadb and the database is connected. Pokestops and even gyms are enabled on the PokemonGo-Map. But it shows:

"No Pokestop found is your database"

Thanks

Main page not working

Hi
I set up the page for my city.
On the front page it shows 0 Pokémon and 0 gyms.
But if I go to the gym page or Pokémon page everything works.

[Feature Request] Dynamical loading "alltrainer" page

Expected Behavior

Follow a second button "Full list" instead of "Search" on "trainer" page to obtain a full view of all trainers, without their Pokémon, which loads around 50 trainers dynamically when scrolling further down. This list can be sorted by "name","level" and "gym Pokémon".

Current Behavior

We just have the top 30 (for some pages top 100) list which is nice for the top player but uninteresting to watch for all the other user.

Possible Solution

Create a new page "alltrainer.page.php" with less content of detail for the trainer div-pattern. Change data.loader.php or ajax to handle the desired job. Also possible to cache this page every X hours wie cron to take stress from the DB. Quick implementation by copy/paste the trainer page data loader and some deprecations of Pokémon CP, IVs etc. for the DB request.
Implement sort options, clickable by column label, by using multisort and reload list.

name: name->level
level: level->gym Pokémon
gym Pokémon: gymPokémon -> level.

Dashboard ?

Would It be possible to add the dashboard you have on your page to the repo ?

Pokemon count on home page only rising

Expected Behavior

My pokemon count on the front page is working but the ammount of pokemons is only rising and not decreasing when the pokemon dissapear. The count should update every time a pokemon dissapear.

Current Behavior

I already have +11k pokemons on my live count and I can guarantee my city doesn't have this ammount of pokemons.

Possible Solution

I don't know

Steps to Reproduce (for bugs)

  1. You can see my count here http://pokefast.ga

Context

Your Environment

  • Version used: the last one
  • URL: http://pokefast.ga
  • Operating System and version (desktop or mobile):

replace short tags (<?) with full open tag (<?php)

I encountered this issue when setting up the app. by default, short_open_tag are disabled in php.ini. I enabled this to get it to work.

The behavior I was experiencing was raw php code displayed on the screen, some of the site was working some wasn't.

Thanks!

POC: Trainer level distribution chart

Expected Behavior

Having a chart showing trainer level distribution in dashboard would be nice!

Current Behavior

Nothing like this exists

Possible Solution

Integrate these graphs in dashboard. Unfortunately I can't contribute to dashboard because it's not available right now ;-)

Requirements

Have gym-info enabled in PokemonGo-Map

Screenshots

Something like this (trainers of ~2500 gyms):
trainer_levels
trainer_level_per_team

SQL

SELECT level AS trainerlevel, count(level) AS count FROM trainer GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=1 GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=2 GROUP BY level;
SELECT level AS trainerlevel, count(level) AS count FROM trainer WHERE teamid=3 GROUP BY level;

PS: Maybe add average trainer level per team to gym page as well?

Does not work in subfolder

The site doesn't work if you put it in a subfolder and DocumentRoot doesn't point to this subfolder, because all links are absolute paths to DocumentRoot.

So something like this doesn't work out of the box:

DocumentRoot /srv/www/vhosts/domain.com/htdocs/
https://domain.com/wordpress --> /srv/www/vhosts/domain.com/htdocs/wordpress
https://domain.com/worldopole --> /srv/www/vhosts/domain.com/htdocs/worldopole

This would result in 404 for image and css files like --> https://domain.com/core/pokemons/96.png
Shoulde be: https://domain.com/worldopole/core/pokemons/96.png

What do you think about it?
Use relative paths or add another config parameter site-url or something like this?
Or add some additional htaccess options?

Last seen: Days/Day wrong display in pokemon.page.php

Expected Behavior

When was it last seen? 1 day or 2 days ...

Current Behavior

When was it last seen? 1 day 2day ....

Possible Solution

functions.php: line 80

if ( $difference_value <= 1 ) {

better: if ( $difference_value < 1 ) {

But this does not solve the day display, only solves correct week display.

I have no idea what so change. The calculation in functions.php seems correct.

When I look on other Worldopole pages from other users, some have a problem here, some not.

This is a reminder from my message in discord with @Obihoernchen

Gym level calculation

Level : '.substr($data->gym_points,0,1).'

I'm pretty sure that gym level isn't calculated this way :D Now it shows gyms with 10k+ prestige as lvl 1.

Bad formated time_interval

I'm Trying to get it to work on my Mac, but I get this response:

Bad formated time_interval in variables.json. Please use +X or -X format only (eg for Brussels : +2) without leading or ending space.

I didn't change it, it still is:
"time_inverval" : "+2",

Am I missing a step?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.