vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Boardstatistic Version 2 (https://vborg.vbsupport.ru/showthread.php?t=66783)

Wential 08-24-2004 08:45 PM

Quote:

Originally Posted by apokphp
Tom, your install script results in this error:

He's knows. See my post above for the install script fix attachment. If you don't use "vb3_" as your table prefix, change it globally throughout the file. I could create one for you, but I don't know what you use.

Onkel_Tom 08-24-2004 09:07 PM

This is not the problem of apokphp !

This error from apokphp results of an not escaped character in that line, sh*t
This was from a translation fix by Zelda-King

apokphp for instance search in the file install_statistic_english.php for:

Code:

Show $postername1's
and replace that by
Code:

Show $postername1\'s
this must be done for 5 instances with the name
$postername1
$postername2
$postername3
$postername4
$postername5

Just change your search to this names and change on each line the 's to \'s

@ Wential
Your table prefix fix is 3 postings before ;)

@Zelda-King
I'm working at the moment at the flag problem and find out that there are 3 countries mixed in the table. It's ID97 Indonesia, ID98 Ireland, ID99 Israel and ID100 Isle of Man. I will fix that also in the next release...

apokphp 08-24-2004 09:13 PM

I have used Wentials, and removed the prefix. It works fine.

But as stated previously, I have a problem. I have installed this on 2 servers. One just now, using the latest English translation...works great.

The PROBLEM, is that I installed this a few weeks ago on a different server using the old English translation, which is needing a lot of help with proper translation. How can I uninstall it so I can reinstall w/ the updated install script?

apokphp 08-24-2004 09:17 PM

Also, found another bug.

When you click Top 10 posters, it displays their homepage url. When you click on the homepage url, it gives you the "page not found" error.

What is displayed in the browser upon clicking it is: See for yourself here: http://www.ez-company.net/forums/statistik.php

Zelda-King 08-24-2004 09:44 PM

Quote:

Originally Posted by Onkel_Tom
This is not the problem of apokphp !

This error from apokphp results of an not escaped character in that line, sh*t
This was from a translation fix by Zelda-King

Hmm, under the circumstances, the original sentence "View the profile of" is acceptable. It's not actually bad grammar at all. Just, well... the done way is to say "view username's profile".

Onkel_Tom 08-24-2004 10:37 PM

Quote:

Originally Posted by Zelda-King
Hmm, under the circumstances, the original sentence "View the profile of" is acceptable. It's not actually bad grammar at all. Just, well... the done way is to say "view username's profile".

No problem Zelda, we can fix it with the escaped ' ;)

Quote:

Originally Posted by apokphp
Also, found another bug.

When you click Top 10 posters, it displays their homepage url. When you click on the homepage url, it gives you the "page not found" error.

What is displayed in the browser upon clicking it is:

Thanks apokphp, I will check it

For the deinstallation there is no deinstall script right now, so you have to drop all database tables with statistik_* and also delete all templates with statistic_* and the main template STATISTC.
I requested a deinstallation script from PcFreak (the maker of this hack) a few days ago in the german vbulletin forum but get no answer right now...

Zelda-King 08-24-2004 10:39 PM

I made a list of all the countries that have the 'noflag' problem. It's easy to spot them in install_english.php by doing a text search for noflag.gif. :D

Anguilla, Brunei Darussalam, Bouvet Island, Belarus, Belize, Cocos Keeling Islands, Dem. Rep. Congo, Cote d Ivoire, Cape Verde, Christmas Island, Wesetern Sahara, Falkland Islands, Faroe Islands, French Guiana, Gibraltar, Guadaloupe, Equatorial Guinea, South Georgia and South Sandwich Islands, Guam, Heard and McDonald Islands, Israel, Jersey, Saint Kitts and Nevis, Cayman Islands, Libya, Mali, Northern Mariana Islands, Martinique, Montserrat, Mauritius, New Caledonia, Norfolk, Island, Nepal, Niue, French Polynesia, Saint Pierre and Miquelon, Pitcairn, Qatar, Reunion, Saint Helena, Svalbard and Jan Mayen Islands, San Marino, Sao Tome and Principe, El Salvador, Turks and Caicos Islands, French Southern Territories, Tokelau, East Timor, US Minor Outlying Islands, Saint Vincent and the Grenadines, Virgin Islands British, Wallis and Futuna Islands, Samoa, Mayotte.

Now here's what I DON'T get: I fixed the El Salvador link in the database as a test fix and even though that entry now correctly points to elsalvador.gif, I still see the flag on the stats page as noflag.gif. Weird. :/

Onkel_Tom 08-24-2004 11:42 PM

Did you reload the page with F5 ????
Try also CTRL + F5 to not use the Internet files cache

Onkel_Tom 08-24-2004 11:56 PM

here is the dump of the fixed country table for phpmyadmin.

If you have phpmyadmin installed on your server, just open your database and click on SQL in top and then open the file countryfix_table.txt with your favorite editor, press CTRL + A to mark all and afterwards CTRL +C to copy all.
Go to your phpmyadmin window and press CTRL +V to paste all the data in the SQL field, now press OK to process the new entries.

hope this is fine now, but I have to check also each entry step by step with image name and name of country in compare with functions_statistik.php to be sure all entries are correct.
As Zelda mentioned the El Salvador flag has also a wrong image name in database....

Zelda-King 08-25-2004 12:05 AM

Quote:

Originally Posted by Onkel_Tom
Did you reload the page with F5 ????
Try also CTRL + F5 to not use the Internet files cache

I refreshed. I cleaned my cache. I closed/reopened my browser. Anyway I'll see how this table fix goes.

Zelda-King 08-25-2004 12:17 AM

Hmm, how does this look to you? On 600x800 resolution those tables are suddenly wide for me. - http://www.gamercrossfire.net/bb/sta...p?do=countries (This is having just run that country table fix.)

oldfan 08-25-2004 01:19 AM

Parse error: parse error in /xxxxx/xxxx/xxxxx/xxxx/admincp/install_statistik_english.php on line 340

lol

oldfan 08-25-2004 01:39 AM

nevermind
[high]* oldfan clicks install
[/high]
thanks again Onkel_Tom'
All I need now is some dark background .gifs :p
Thanks

Onkel_Tom 08-25-2004 11:02 AM

Quote:

Originally Posted by Zelda-King
Hmm, how does this look to you? On 600x800 resolution those tables are suddenly wide for me. - http://www.gamercrossfire.net/bb/sta...p?do=countries (This is having just run that country table fix.)

Perhaps you have to shorten the name of "United Kingdom Academic Institutions" to short your table width

Stormwolf 08-25-2004 11:49 AM

Quote:

Originally Posted by Onkel_Tom
here is the dump of the fixed country table for phpmyadmin.

Worked like a charm thanks, My operating systems are not showing, do you have a working table for that part, if so could you share a similar table dump for that?

Zelda-King 08-25-2004 12:54 PM

Quote:

Originally Posted by Onkel_Tom
Perhaps you have to shorten the name of "United Kingdom Academic Institutions" to short your table width

Hmm, that wasn't a problem before. I reckon it's to do with that 'display dynamical' which I don't think is really needed anyway.

Edit: Yeah, removing that did the trick. It also showed me something I missed so I've changed a sentence in the statistic_spider template:

Code:

$statistic_header
 <!-- Spider Anzeige Start -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
  <tr>
    <td class="tcat" colspan="2"><div align="center"><strong>Spiders and Searchrobots</strong></div></td>
  </tr>
  <tr>
    <td valign="top" class="panelsurround">
      <div class="panel">
        <fieldset class="fieldset">
        <legend><strong>Spiders</strong> ($wieviele_spider of known 93 varieties) <font color="#FF0000"> </font></legend>
        <table width="95%" border="0" align="center">
          <tr>
    <td>&nbsp;</td>
  </tr>
  $statistic_bots_bit
</table>

                </fieldset>

</div>
</td>

<td valign="top" class="panelsurround">
      <div class="panel">
        <fieldset class="fieldset">
            <legend><strong>Searchrobots Summary</strong></legend>
        <table width="95%" border="0" align="center">
  <tr>
            <td>$totalspider ($totalspider_in_prozent %) counted Spiders since statistics started.</td>
  </tr>
</table>
</fieldset>
</div>
</td>
  </tr>
  <tr>
    <td class="tcat" colspan="2">&nbsp;</td>
  </tr>
</table>
 <!-- Spider Anzeige Ende -->
$statistic_footer

So it says "Spiders (4 of known 93 varieties)"

Onkel_Tom 08-25-2004 01:10 PM

Quote:

Originally Posted by apokphp
Also, found another bug.

When you click Top 10 posters, it displays their homepage url. When you click on the homepage url, it gives you the "page not found" error.

What is displayed in the browser upon clicking it is:

See for yourself here: http://www.ez-company.net/forums/statistik.php

to fix it:
open template "statistic_top_poster_bit" and search for:
Code:

<a onclick="window.open(\'goto.php?goto=$poster_homepage\')
replace it with:
Code:

<a onclick="window.open(\'$poster_homepage\')

Onkel_Tom 08-25-2004 01:35 PM

new zip file with all updates right now !
the only thing missing at the moment is the compare of all countries in database table in conjuction with image name of flag and identification listing in file functions_statistic.php

LAST UPDATE of Zip File: August, 25th 04:30pm

Onkel_Tom 08-25-2004 02:11 PM

Quote:

Originally Posted by Stormwolf
Worked like a charm thanks, My operating systems are not showing, do you have a working table for that part, if so could you share a similar table dump for that?

Did you install the latest version ?
The tables are okay for the browser identification.

here is the requested export of this table

PcFreak 08-25-2004 02:35 PM

Thank you at Onkel_Tom for the super support.

In the first post of this Thread i have update this hack, with Onkel_Tom“s zip.file. All credits go to him.

PcFreak

Onkel_Tom 08-25-2004 02:42 PM

Thank youuuuuuu PcFreak for that great hack !
It's a pleasure for me to support this hack, you're welcome PCFreak

Zelda-King 08-25-2004 03:41 PM

Just to confirm my El Salvador flag is working properly now.

weitalia 08-25-2004 03:56 PM

i start to phrase this hack, is the update already phrased?

Onkel_Tom 08-25-2004 04:28 PM

Quote:

Originally Posted by weitalia
i start to phrase this hack, is the update already phrased?

No, there are no phrases right now.
To have a phrased hack would be very helpfull for translation in other languages.
If you will do that it would be great to share your work so we can update also the hack with phrases https://vborg.vbsupport.ru/external/2004/08/1.gif

SnowBot 08-25-2004 04:53 PM

Can you supply proper upgrade instructions? For some people comparing files is hard so maybe you could write some upgrade instructions for us so we know what to change to what, please.

Snowy

Onkel_Tom 08-26-2004 01:54 AM

Quote:

Originally Posted by SnowBot
Can you supply proper upgrade instructions? For some people comparing files is hard so maybe you could write some upgrade instructions for us so we know what to change to what, please.

Snowy

Hmmm, to supply a proper upgrade instruction would be very hard work because we changed in the meanwhile all 36 Templates and also the information in table statistic_laender.
With the wrong information in this table it would be better to do a complete reinstall of the hack because your data shown in Country stats is wrong.

Today I get an answer from PcFreak about the uninstalltion script but he mentioned that he is to busy to do that, so I decided to code this script tonight on my own ;)
At the moment this script is a independed script and can be uploaded and executed on the server. Next version will be integrated in the installation script and also in future an upgrade code in this script to make it easier for you.

Since PcFreak has updates the first post in this thread with my version from today I will now release updates for that version until a major change is neccesarry.

Updates for today:

- Fix for wrong referer count in file statistik.php:
- Arcade Games add on in file statistik.php
- Arcade Games add on hack
- Uninstalltion Script

Attached you will find the updates files which should be copied to your forums installation. The uninstallation script should be copied to your admincp directory only if you want to uninstall !

Only 4 days left to reach Hack of the Month... vote for us ;)

oldfan 08-26-2004 03:06 PM

c00, I'll add these too :)

SnowBot 08-26-2004 03:20 PM

AHH!! Great an uninstaller is cool, THANKS for the great work you have put in on this.

oldfan 08-26-2004 06:20 PM

/me voted

Razz 08-27-2004 01:46 AM

Onkel Tom, thanks for all the recent fixes :)

Do you know what causes the stats page to be too wide when using a fixed width board? This even happens when the stats are not big enough to stretch the page.

Onkel_Tom 08-27-2004 08:17 AM

Quote:

Originally Posted by Razz
Onkel Tom, thanks for all the recent fixes :)

Do you know what causes the stats page to be too wide when using a fixed width board? This even happens when the stats are not big enough to stretch the page.

I had also problems with the size of the statistic window. Try to replace the template statistic_header with this code:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
 <!-- no cache headers -->
 <meta http-equiv="Pragma" content="no-cache" />
 <meta http-equiv="Expires" content="-1" />
 <meta http-equiv="Cache-Control" content="no-cache" />
 <meta name="author" content="PcFreak" />
 <meta name="Keywords" content="Statistics" />
 <meta name="Description" content="Statistics for vBulletin 3.0.x" />
 <!-- end no cache headers -->
<title>$vboptions[bbtitle] - Forenstatistik ?bersicht</title>
$headinclude
</head>
<body>
$header
$navbar
$statistic_menue
<br />

This fixes my size problem ;)

Onkel_Tom 08-28-2004 01:25 AM

Hi again,
Today I fixed some template cache lines with a dot instead a comma at the end, and additional 2 instances of missing escaped apostrophe in db queries for usernames (=> db error).

just download the updated statistik.php file and replace the old one.

Razz 08-28-2004 01:55 AM

Quote:

Originally Posted by Onkel_Tom
I had also problems with the size of the statistic window. Try to replace the template statistic_header with this code:

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
 <!-- no cache headers -->
 <meta http-equiv="Pragma" content="no-cache" />
 <meta http-equiv="Expires" content="-1" />
 <meta http-equiv="Cache-Control" content="no-cache" />
 <meta name="author" content="PcFreak" />
 <meta name="Keywords" content="Statistics" />
 <meta name="Description" content="Statistics for vBulletin 3.0.x" />
 <!-- end no cache headers -->
<title>$vboptions[bbtitle] - Forenstatistik ?bersicht</title>
$headinclude
</head>
<body>
$header
$navbar
$statistic_menue
<br />

This fixes my size problem ;)

Perfect, thanks :)

Darax The Good 08-28-2004 08:47 AM

installed, thanks, I love looking at numbers and I didn't feel like writing a bunch o'queries.

PcFreak 08-29-2004 04:23 AM

I have updated the zip.file with Onkel_Toms modified code in the first post of this thread.

@all
I have closed the at-lantis board now.
For the moment it is no longer possible show a demo on my side.
But i plan a Version 3 of this hack.

PcFreak

Zelda-King 08-29-2004 05:26 PM

The flag link for Grenada: images/statistik/flaggen/grenada

It needs .gif putting on the end.

oldfan 08-29-2004 07:33 PM

Thanks, can't wait :)

Quote:

Originally Posted by PcFreak
I have updated the zip.file with Onkel_Toms modified code in the first post of this thread.

@all
I have closed the at-lantis board now.
For the moment it is no longer possible show a demo on my side.
But i plan a Version 3 of this hack.

PcFreak


Onkel_Tom 08-30-2004 12:56 AM

Quote:

Originally Posted by Zelda-King
The flag link for Grenada: images/statistik/flaggen/grenada

It needs .gif putting on the end.

Also for:
- Gabon
- Georgia
- Djibouti
- Puerto Rico

Just put .gif at the end of this db entries for the flag in images/statistik/flaggen/

@ oldfan
Version 3 is only in planing ;)
For instance I work on Version 2, the spider part, to get more information about the spiders itself and also identify more spider. I found nearly 300 different spiders which can be identified, but therefore it's a lot of work t implement this spidern in the database and also put the additional data for the spiders in.
Also I found a lot of error in the actual spider identification of Version 2 with wrong useragent-names so please wait until my new release is ready ;)
This new spider identification will also be part of Version3

Host Directory 08-30-2004 04:56 PM

Great hack.. just installed.. works fine, no problems.

I click install

Onkel_Tom 08-30-2004 05:05 PM

Wow, 101 installations right now and also 71 clicks for the Hack of the Month August !
Thanks to all Users ;)


All times are GMT. The time now is 11:40 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01922 seconds
  • Memory Usage 1,851KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_code_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete