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)

PcFreak 07-09-2004 04:39 PM

Quote:

Originally Posted by Smitty
I'm not sure. I'm still playiing with what I installed and haven't really zeroed in on several numbers and how they're computed. I'm not a php / MySQL guru ato begin with.

I still have one bug I can't figure out how to fix where, in the Most Popular Forums popup, no forum ID is given when someone clicks on the forum name.

I've chaged some labels and such.

You can check mine at http://Elsmar.com/Forums/

Yep, this is a bug.

I will fix them in a new zipfile soon.

To fix this now, search in the template statistic_popular_forum_bit
Code:

$popularforum_id
replace it with
Code:

$popularforum_forumid
(you found this two times)

PcFreak

zetetic 07-09-2004 06:43 PM

While doing that I noticed the variable $popularforum_titel which is a misspelling. It should be $popularforum_title. I won't change it because I don't know where all it's used.

Oh, and all those references to "autor" on the last post on the last page should be "author". Not messing with ya just trying to help. :)

Smitty 07-09-2004 06:59 PM

Quote:

Originally Posted by PcFreak
Yep, this is a bug.
(you found this two times)

Thanks! I had that template in bbedit looking at it but I just didn't see the problem. I replaced both and it works fine now.

MGM 07-09-2004 09:44 PM

I'm still having problems with no fix :(

Once again, check out my Stats and click on any page besides the main (Overview) page to view my problem: www.forevergaming.com/forums/statistik.php

MGM out

PcFreak 07-09-2004 10:39 PM

Quote:

Originally Posted by MetalGearMaster
I'm still having problems with no fix :(

Once again, check out my Stats and click on any page besides the main (Overview) page to view my problem: www.forevergaming.com/forums/statistik.php

MGM out

I can?t see any problem.
Ok. The poll statistic is a little bit small on your side, but this ist not a bug.

This screenshoot show, what i see, when i visit your side.

PcFreak

MGM 07-10-2004 01:25 AM

yea, I know, i just fixed it.... I copied the header from forumhome into Statistiks_header and it worked (while editing the title to say Stats and adding statistik_menue to the bottom)

damned XML giving me problems :p

thanks for the help! lol

MGM out

Smitty 07-10-2004 04:55 AM

In the do=referer Referrer Summary at the bottom of the page, I understand:
"1427 Visitors visited The Elsmar Cove directly"
and
"1215 Visitors came over a Hyperlink (Referer) to us"

Can anyone better explain to me what these are:
"over 1185 different Hyperlinks (Referer) found visitors to The Elsmar Cove"
and
"One has The Elsmar Cove over 117 different Top level Domains reaches"

PcFreak 07-10-2004 05:00 AM

Perhaps also this solution helps.

In AdminCP under vBulletin Settings -> General Settings

there must be a setting like this:

Templatenames as comment in HTML source text write?

NO!

(This is a free translation, because my AdminCp is in German).

PcFreak

Smitty 07-10-2004 05:05 AM

I was looking at the Browsers numbers. How do the two numbers relate to each other?

Other Unidentified 7.804 % (283)* *of it 625 Spider

See attached.

Deska 07-11-2004 09:24 PM

I got these errors:

Quote:

Database error in vBulletin 3.0.3:

Invalid SQL:
SELECT * FROM vb3_thread
WHERE forumid IN(1, 2, 4, 3, 33, 5, 6, 7, 8, 31, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 29, 27, 28, 9, 10, 32, 30, 0)
AND thread.open <> 10
AND thread.visible = '1'
ORDER BY replycount DESC

mysql error: Unknown table 'thread' in where clause

mysql error number: 1109
Anyone could help?
Thank's...

Smitty 07-12-2004 02:47 AM

When did you get the error? It looks like you may have a table prefix issue but I'm guessing.

Deska 07-12-2004 03:27 AM

Quote:

Originally Posted by Smitty
When did you get the error? It looks like you may have a table prefix issue but I'm guessing.

When visit url mydomain/statistik.php
I check all table prefix seems ok but I still got that, :(

PcFreak 07-12-2004 06:31 AM

In statistik.php

search for

PHP Code:

SELECT FROM " . TABLE_PREFIX . "thread 

replace it with
PHP Code:

SELECT FROM " . TABLE_PREFIX . "thread as thread 

I think you found this 2 or 3 times.

PcFreak

Deska 07-12-2004 08:55 AM

Thank's...
Work fine now ;)

Berethorn 07-12-2004 10:01 PM

I'm getting this error during the install phase:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL:
                INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
       
mysql error: Table 'bere_vb.statistik_einstellungen' doesn't exist

mysql error number: 1146


ChuanSE 07-13-2004 05:11 AM

Hmmm, the statistik main page works, except from the visitors count since the stat started.
All stays 0, also on the other statistik pages, all values stay zero, as if they don't get counted?


Any idea's? :)

joshskeety 07-13-2004 03:30 PM

Quote:

Originally Posted by Berethorn
I'm getting this error during the install phase:

Code:

Database error in vBulletin 3.0.1:

Invalid SQL:
                INSERT INTO statistik_einstellungen VALUES (0, 900, '', 10, 10, 10, 5, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
       
mysql error: Table 'bere_vb.statistik_einstellungen' doesn't exist

mysql error number: 1146


I am getting the same errors.. Its either the one you are getting or I get a

Database error in vBulletin 3.0.1:

Invalid SQL:
INSERT INTO vb3_ statistik_laender VALUES (1, 'ac', 'United Kingdom Academic Institutions', 'images/statistik/flaggen/ascension.gif', 'images/statistik/bar1.gif', 0, 0)

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'statistik_laender VALUES (1, 'ac', 'United Kingdom Academic Ins

mysql error number: 1064

I saw one other guy post about this, but he never got his question answered.. PCFreak, what could be causing this?

Josh

joshskeety 07-13-2004 05:29 PM

Okay I figured out all these problems.. PC Freak.. First of all, great program.. I know its hard translating. It took me a while, but you are missing ALOT of " TABLE_PREFIX" where there should be. Another thing is the "Thread of Thread" change you mentioned earlier.

Finally, the last error I received is because in your install_Statistik_English.php file. You put a space where there shouldn't be this totally freaked MySql out...

You had " statistik_laender VALUES Should be "statistik_laender VALUES

If you make these changes, your install will be perfect!! I have one other question though.. The browser stuff didn't refresh information. Everything is 0% is this normal for a while?

Thanks,

Josh

GlitterKill 07-13-2004 05:48 PM

Excellent hack... *clicks install*

I had trouble with the mysql code for the "LIKE 'pm'" section so i just commented out the PM stuff. Anyone else have that problem?

http://forums.pimprig.com/statistik.php

joshskeety 07-13-2004 05:51 PM

Quote:

Originally Posted by GlitterKill
Excellent hack... *clicks install*

I had trouble with the mysql code for the "LIKE 'pm'" section so i just commented out the PM stuff. Anyone else have that problem?

http://forums.pimprig.com/statistik.php

Now your getting all the browser info and referalls and such.. Im not getting those.. What could be the issue?

http://www.cowboys-forum.com/statistik.php

Josh

Berethorn 07-14-2004 02:04 AM

Quote:

Originally Posted by joshskeety
Okay I figured out all these problems.. PC Freak.. First of all, great program.. I know its hard translating. It took me a while, but you are missing ALOT of " TABLE_PREFIX" where there should be. Another thing is the "Thread of Thread" change you mentioned earlier.

Finally, the last error I received is because in your install_Statistik_English.php file. You put a space where there shouldn't be this totally freaked MySql out...

You had " statistik_laender VALUES Should be "statistik_laender VALUES

If you make these changes, your install will be perfect!! I have one other question though.. The browser stuff didn't refresh information. Everything is 0% is this normal for a while?

Thanks,

Josh

Glad to see you got this fixed! Is it too much to explain how to fix it? Is there simple way? :)

Smitty 07-14-2004 02:38 AM

Something else must be happening for some of you because several days ago I did the install on my Mac test board and then on my BSD production board without one single problem in install on either.

*Most* of the statistics appear to be appropriate/correct. I'm sure the Spiders page isn't correct and there are a couple others I question, but it's an excellent 'hack'.

ChuanSE 07-14-2004 05:21 AM

Guyz, can someone plz give us a fixed install file, a explanation how to make it work or delete this thread from releases forum PLZ :)

thx in advance

Smitty 07-14-2004 09:30 AM

Quote:

Originally Posted by ChuanSE
Guyz, can someone plz give us a fixed install file, a explanation how to make it work or delete this thread from releases forum PLZ :)

thx in advance

All I did was run the install (on 2 platforms) and it works fine (on both). All I did was follow the directions in the zip file.

Have you tried dropping the database fields it creates, deleting the templates it creates and then doing an install from scratch?

joshskeety 07-14-2004 12:49 PM

I would, but instead of putting the table prefixes I put the prefix in manually, so im afraid it would not work with your database.

In the install file, make sure that EVERY REFERENCE TO A TABLE has the table prefix tag on it. I found that many did not so half the time it was looking for Prefix_statistik_table and the other half of the time it was looking for statistik_table. Of course you have to have one or the other. Plus the reference I made above where MySql 4.X does not like that space on the install page.

Josh

PcFreak 07-14-2004 12:59 PM

Sorry, my wife and me are moving.
I have no mutch time work on a new installation routine or update the old files.

But i promise, i did this when we finished with our move.

Then i will release the arcade update too.

beg your pardon.

PcFreak

PcFreak 07-14-2004 01:06 PM

Quote:

Originally Posted by joshskeety
Now your getting all the browser info and referalls and such.. Im not getting those.. What could be the issue?

http://www.cowboys-forum.com/statistik.php

Josh

You have forgot to activate the statistic.


To activate the statistic and count your user

add this code at last line in the" phpinclude_start template"

PHP Code:

//##################################

include("./statistik_counter.php");

//################################## 

PcFreak

GeoffE 07-14-2004 03:36 PM

Got mine working fine now as well :classic:

(had only modified one of my php start templates (have multiple styles) :rolleyes: )

skorzguy 07-14-2004 03:51 PM

Finally installed statistics and it looks great. A few changes and I easily see this being hack of the month. One really stupid question, how do I center it? It's to the right of the screen. Here is an example

http://www.allstarchat.com/forums/statistik.php

68 Z-28 07-14-2004 06:30 PM

Installed perfect with no problems on 3.0.3 GREAT HACK!

Smitty 07-15-2004 03:52 AM

An FYI: vBullletin isn't stable on MySQL 4.1 - See http://www.vbulletin.com/forum/showthread.php?t=110339
and
http://bugs.mysql.com/bug.php?id=4302

Vivi Ornitier 07-15-2004 04:12 AM

I get these errors when viewing any stat page besides the main one.

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

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

End tag 'map' does not match the start tag 'area'. Error processing resource 'http://forums.squareultima.com/statistik.php?do=referer'. Line 71, Position 4

</map>
---^

Maybe it's a IE error because it works in mozilla fine but then again everyone uses IE.

ChuanSE 07-15-2004 05:31 AM

Quote:

Originally Posted by PcFreak
You have forgot to activate the statistic.


To activate the statistic and count your user

add this code at last line in the" phpinclude_start template"

PHP Code:

//##################################

include("./statistik_counter.php");

//################################## 

PcFreak

How could i forget that :p

redlabour 07-15-2004 04:18 PM

Thanx for this great Quality Hack !

chrisvonc 07-16-2004 10:40 AM

Installed nice on my test forum but if I try to update the settings in the AdminCP, I click Update, it gives me an error message:

Code:

Can not find phrase "statistik_cp_gespeichert"
I assumed that KirbyDE's post was to make this for admin access only but as there are multiple reoccurances of the "require_once('./global.php');", which one should the change be made after or should it be all of them? (BTW KirbyDE, you have a typo, there should be a "." in front of the "/global.php" :) )
Quote:

Originally Posted by KirbyDE
If there is none:

In statistik.php FIND

PHP Code:

require_once('/global.php'); 

Right after that ADD
PHP Code:

if (!($permissions['adminpermissions'] & CANCONTROLPANEL)) {
print_no_permission();



Thanks again! Very nice.

MissKalunji 07-16-2004 05:38 PM

* clicks Install *

Great hack!! installed it with No problem on vb 3.0.3 only dat i dunno in wich phrase im suppose to add the "hack update".

Does anyone knows where i can get the add ons? or they aint out yet?

Wachtmeister 07-16-2004 06:16 PM

Can't we finnaly get a working installer for boards using table prefixes?




German: PCFreak, das Script ist cool, aber es funktioniert nicht, wenn man Table Prefixe f?r sein Forum benutzt. Kannst Du das irgendwann mal fixen? Man muss sonst den ganzen Code von Hand ?ndern. Danke


joshskeety, i would love to use your installer ;) It's easier to search and replace your board_prefix with mine ;)

TTG 07-16-2004 09:24 PM

Clicked install .. great hack .. amazing amount of useful information provided.

Only error I get is Can not find phrase "statistik_cp_gespeichert when trying to update in AdminCP

http://www.thetechguys.co.uk/forum/statistik.php

S@NL - BlackBik 07-17-2004 08:06 AM

Great hack :)
Installed flawless on our board.
Had some minor problems, but most of them were adressed in this thread.

The phrases go to the "Control Panel Stop Message" as mentioned earlier in this thread.

I see one little problem though. The avatar and profile picture stats are not updating. Anyone else have that problem?

And a suggestion for a future release: please put all text in phrases. That way translation is easy for all languases. I translated manualy to Dutch, but that's to bad for our foreign visitors ;)

Berethorn 07-17-2004 06:09 PM

Got it fixed after much editing of the code, very hard to explain exactly what. :(

It's a great hack BTW, when it works! :D


All times are GMT. The time now is 02: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.02909 seconds
  • Memory Usage 1,850KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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