Вопросы, советы, возможные модификации и вообще все про модуль статистики кланов

Модератор: Exinaus, shw

#10016 Exinaus 17 окт 2012, 23:48
Guni писал(а):Fresh install of 2.1.4 and allready same message: Lack of data ...

I'm going to wait some days and i've allready do a cron.

Log is here:

 Читать дальше



First: plz, for the next time, hide large amount of data like logs, or errors under spoiler. I will edit your post, and add spoiler.

Second: according to cron log - everything is fine, cron are working, he collects data for all players. And ofc you will have "Lack of data" message, after fresh installation. Module, to display that info, needs data from at least 3 days of collecting data. So calm down, be patient, and look for result after at least 3 more cron runs.
#21005 exelenze 28 ноя 2012, 04:39
I found some bugs and i have corrected them too here you go.

poss.php line 94

Wrong:
Код: Выделить всё<td><img src="/images/<?php echo $val['type']; ?>.png"></td>


Correct:
Код: Выделить всё<td><img src="./images/<?php echo $val['type']; ?>.png"></td>


---------------------------------------------------------------------------------------------------------------------------

translate\main_en.php line 120

Wrong:
Код: Выделить всё$lang['total'] = 'Total income';


Correct:
Код: Выделить всё$lang['total_gold'] = 'Total income';



----------------------------------------------------------------------------------------------------------------------------

An empty cron.log file should be placed in the roots zip/rar folder from the beginning else you cannot start the installation.

After you press install this happens
Изображение


----------------------------------------------------------------------------------------------------------------------------


Blocked tanks dont show up after ranked battles.

This function for sorting/adding new tabs to the tabs "Presented Tanks" dont work.
If you select anything else than 1 in the sections 1 to 10 the tank/tier will go missing in "Presented Tanks"
Изображение

----------------------------------------------------------------------------------------------------------------------------

Missing translations for both russian and english - Check out this picture
Изображение



This was all i found for now thanks, your doing a great job. PS i have setup cron job :=)
#21012 Exinaus 28 ноя 2012, 11:19
exelenze писал(а):I found some bugs and i have corrected them too here you go.

poss.php line 94

Wrong:
Код: Выделить всё<td><img src="/images/<?php echo $val['type']; ?>.png"></td>


Correct:
Код: Выделить всё<td><img src="./images/<?php echo $val['type']; ?>.png"></td>


---------------------------------------------------------------------------------------------------------------------------

translate\main_en.php line 120

Wrong:
Код: Выделить всё$lang['total'] = 'Total income';


Correct:
Код: Выделить всё$lang['total_gold'] = 'Total income';


Missing translations for both russian and english - Check out this picture

thnx, we will fix that.

exelenze писал(а):After you press install this happens
Изображение

This happens because you use default windows Notepad for editing files. Notepad, when saving files places at the beginning of the file some system symbols, and PHP threats threat them like a output text, and this cause a mistake.
So, open functions/mysql.php, delete the space before first "<?php" in the first line of file, and this mistake will disappear.
Also use another text editor, not Notepad (for example, i use AkelPad), and save text in "UTF8-without BOM" charset, not in the ANSI.

Blocked tanks dont show up after ranked battles.

There is no way to determine blocked tanks automatically. Wargaming just don't share with anyone this information, and this tab doesn't work like you think.
When you login to site, on the tab with blocked tanks you will see a form for upload files. You must upload replay of your battle, script will automatically parse data from replay, detect who played, on what tank and how log this tank will be blocked. And this info he will display.
So, feed him with replays of your fights, and he will work.

PS. In version 2.1.5 we added Activity tab, who works almost the same. You upload replay of any of you clan fight (global map, training, etc.) and module count this fights as activity, and show info about that.

This function for sorting/adding new tabs to the tabs "Presented Tanks" dont work.
If you select anything else than 1 in the sections 1 to 10 the tank/tier will go missing in "Presented Tanks"

For sorting you have "show order", this tab index used to split one tab for 2-10 new tabs.
We don't have faq in english how to use it, mb google translate can help: viewtopic.php?f=30&t=2982
If not, here the simple faq - copy aval_top_tanks.php as any other file to tabs folder, open it, find "$index = 1;" text, change 1 to 2-10, in admin CP give name/id to new tab and all tanks with index 2-10 will be displayed in new tab.
For example:
http://gs-wot.16mb.com/main.php#tabs-90
http://gs-wot.16mb.com/main.php#tabs-91
http://gs-wot.16mb.com/main.php#tabs-92
#21014 exelenze 28 ноя 2012, 12:52
Exinaus писал(а):
exelenze писал(а):I found some bugs and i have corrected them too here you go.



Thanks for the fast respond and the info Exinaus ;). So if i understand you correct th[цензура]cked vehicles still does show who has been blocked for the amount of time but you just manual has to upload the replay so i can parse from the file correct?.

So i forgot to add 2 other things.

First one being rather simple if i may say :),

Give an option to either choose english or russian from beginning, because when you dont know a single word of russian you have to guess and press alot of different buttons which you dont know lol :)
---------------------------------------------------------------------------------------------------------------------------

Second question

In the first 2-3-4 tabs from the left as shown in t[цензура]icture it lacks data.

Note: This is the first time im installing this php script, so its not because im on any old version of yours :)

Изображение
---------------------------------------------------------------------------------------------------------------------------
#21031 exelenze 28 ноя 2012, 18:57
Got one more thing, would you please add th[цензура]cked vehicles info time date etc. to the red cross icon no2.png in the tabs section too(aval_top_tank.php) For now its only shown in the gk.php

Once again thanks :)
#21032 Exinaus 28 ноя 2012, 22:47
exelenze писал(а):Second question

In the first 2-3-4 tabs from the left as shown in the picture it lacks data..

Note: This is the first time im installing this php script, so its not because im on any old version of yours :)

Those 3 tabs work with other kind of data. To get the needed data, and start working you need to create a Cron job. It's a service to run scripts in selected time.
Cron service, today, are available on almost any hosting.
How to setup it, written here: viewtopic.php?f=30&t=2553
Also, it might be useful to disable authentication for cron job, how to do it look here (after you read previous link): viewtopic.php?f=30&t=2553#p7779
#21067 exelenze 29 ноя 2012, 17:31
Exinaus писал(а):
exelenze писал(а):Second question

In the first 2-3-4 tabs from the left as shown in t[цензура]icture it lacks data.

Note: This is the first time im installing this php script, so its not because im on any old version of yours :)

Those 3 tabs work with other kind of data. To get the needed data, and start working you need to create a Cron job. It's a service to run scripts in selected time.
Cron service, today, are available on almost any hosting.
How to setup it, written here: viewtopic.php?f=30&t=2553
Also, it might be useful to disable authentication for cron job, how to do it look here (after you read previous link): viewtopic.php?f=30&t=2553#p7779


I have already done this, made it check each 30 mins, but i can see it write/generates only after 24/hours check log below.

http://pastebin.com/6z7cae2q
#21069 Exinaus 29 ноя 2012, 17:46
1. Absolutely no need to run cron task every hour. Once per day is enough. And running more than one time doesn't change anything. If there is no at least 23 hour between current and previous run, script will not save any data.
2. Module, when showing info for that tabs compares not the current and dafa from db for past days. He compares only data collected by cron task, also he compares the data with three few days difference. So to show you any info, there must be at least 3 successful run for cron script, this means wait at least 3 days.
3. The best time to setup cron is around 3-4 am. It's a tricky situation involving caching result of a player, when he still plays, from Wargaming. So just like in bad movie "No time to explain, just setup cron job when all your clan are sleeping".
#21104 exelenze 02 дек 2012, 03:58
Exinaus писал(а):1. Absolutely no need to run cron task every hour. Once per day is enough. And running more than one time doesn't change anything. If there is no at least 23 hour between current and previous run, script will not save any data.
2. Module, when showing info for that tabs compares not the current and dafa from db for past days. He compares only data collected by cron task, also he compares the data with three few days difference. So to show you any info, there must be at least 3 successful run for cron script, this means wait at least 3 days.
3. The best time to setup cron is around 3-4 am. It's a tricky situation involving caching result of a player, when he still plays, from Wargaming. So just like in bad movie "No time to explain, just setup cron job when all your clan are sleeping".



Okay so i had all the 3 tabs filled with positive information, but now one day later its all missing again, dont it stay until there has been 3 new succesfull cron jobs aka 72 hours?, i have not touched anything.
#21115 vaxoiva 02 дек 2012, 16:22
hi all

i have problem to install and plz help me

i try install on 000webhost.com hosting upload script on file manager change date in mysql.php and then when i try install

i get this

 Читать дальше



and this is my public_html/admin/index.php date

 Читать дальше



my skills in web technology abote 4-5 from 10 :oops:

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

Реклама | Adv
cron