vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vbStats (https://vborg.vbsupport.ru/showthread.php?t=30751)

Bane 01-31-2002 02:18 PM

DM, Im going to try to repair the country detection as soon as I am able (time willing) perhaps the queen could hand down a edict of some sort should the miracle pass and I get time to do anything. :( I will *try* to look at it in the next day or so, as well as at least upgrading the instructions for 2.2.2 ...

Gutspiller 02-01-2002 08:14 PM

There is something wrong with the top posters in this hack. Here is the top posters ever for my site using this hack:

http://www.theforumz.com/forumz/vbst...ion=topposters

Now here is the top posters that is just part of 2.0.3:

http://www.theforumz.com/forumz/memb...ers&perpage=15

Why isn't your hack doing it right? :confused:

Also, how do I change the default font for this hack to something different?

I would really like to show the top posters for the Last 24 Hours on the front page. Is there a varaible that gets that info?

On the Members Referred page, I would like the reffered names small and aligned to the left, not centered. (Please help me with this one as it is really annoying)

Also I have another hack installed that in the regular whos online it puts the letters PM behind their name and allows you to PM that person that way. On your hack when it shows the people online, on the first person farthest to the left it shows a PM behind their name, but nobody else. What gives? :(

If you could help me with these problems, I would really really REALLY appreciate it. I love the hack so far, but I am having troubles customizing it and if somebody could help me I would greatly appreciate it.

Thanks. :(

Bane 02-01-2002 10:31 PM

Gutspiller, most of your customization can be done through the vbstats templates, just like every other part of vb. As far as the top posters, Im aware of the problem, just havent hit on a solution.

Gutspiller 02-02-2002 05:58 PM

Quote:

Originally posted by Bane
Gutspiller, most of your customization can be done through the vbstats templates, just like every other part of vb. As far as the top posters, Im aware of the problem, just havent hit on a solution.
Maybe it's the way it executes the vbstats then, because I did a search for "Members Referred" Which should of taken me to about where I wanted to be, and yet I searched every new template, and all the php files I modified and couldn't find it. Did I miss it or do I need to search for something else in other files? :confused:

Lionel 02-10-2002 11:14 PM

I have been enjoying vbstats from day one. Yesterday I placed the following important code in my php include

ob_start();
require("/var/www/aboutus/textads/textad.php");
$textads = ob_get_contents();
ob_end_clean();

and vbstats stopped working with the following error:

Warning: Supplied argument is not a valid MySQL result resource in /var/www/haitianforums/vbstats.php on line 555
No Database Selected

The code that I placed is very useful and I need them both.

Any idea why this will conflict with vbstats? Once I remove it, vbstats works.

My entire php include looks like this:

include("vbs_counter.php");

// start - get online users (hack by firefly)
$datecut=time()-$cookietimeout;
$headerguests=$DB_site->query_first("SELECT COUNT(*) AS count FROM session WHERE userid=0 AND lastactivity>$datecut");
$headerusers=$DB_site->query_first("SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid>0 AND session.lastactivity>$datecut");
$headerguests=$headerguests[count];
$headerusers=$headerusers[count];
$headeronline=$headerguests+$headerusers;
// end - get online users (hack by firefly)

ob_start();
require("/var/www/aboutus/textads/textad.php");
$textads = ob_get_contents();
ob_end_clean();

FWC 02-11-2002 12:58 AM

Have you tried changing the order around? Put the vBStats include last and see what happens.

Lionel 02-11-2002 01:01 AM

I tried reversing the order.

lifesourcerec 02-11-2002 06:25 AM

Quote:

Originally posted by Bane

I have opted not to modify any VB php files, so how do I add these domains to the exclude list?

Simply point your browser to your vb admin directory address and run the file vbstats_set.php?action=add


What are excluded domains anyhow?

Excluded domains are domains that are not counted as referrers. They wont show up in your referrer list or on the link queue.

I added my URL to the exclude list and it said updated, yet the stats still include my URL.

FWC 02-11-2002 06:30 AM

Quote:

Originally posted by lifesourcerec


I added my URL to the exclude list and it said updated, yet the stats still include my URL.

Your URL is already entered in the referrers table. You need to delete the entry with phpMyAdmin (or use a mySQL query if you don't have it).

lifesourcerec 02-11-2002 06:39 AM

Quote:

Originally posted by FWC
Your URL is already entered in the referrers table. You need to delete the entry with phpMyAdmin (or use a mySQL query if you don't have it).
Ok, I removed it from the referrer table and left it in the excluded list. Thanks :) Now, I'm feeling better everyday on the $160 I spent for vBulletin.

FWC 02-11-2002 06:42 AM

Quote:

Originally posted by lifesourcerec


Ok, I removed it from the referrer table and left it in the excluded list. Thanks :) Now, I'm feeling better everyday on the $160 I spent for vBulletin.

Cool! Yes, it's a very well spent $160. :)

Bane 02-11-2002 08:58 AM

Lionel - Have you tried commenting one line at a time and seeing when vbStats kicks back on? which line is killing it I mean?

Lionel 02-11-2002 09:22 AM

Quote:

Originally posted by Bane
Lionel - Have you tried commenting one line at a time and seeing when vbStats kicks back on? which line is killing it I mean?
no I have not.

Actually when I reverse the order, I get vbstats to display the following not when you invoke it, but it actually prints it in all headers.


Warning: Supplied argument is not a valid MySQL result resource in /var/www/haitianforums/vbs_counter.php on line 74

more info could be found in post# 3 here

Lionel 02-11-2002 10:13 AM

I fixed it by hardcoding the path ./admin/config in global.php

Graphic-Forums 02-11-2002 06:00 PM

What could be the problem here:
http://www.dietsupporters.com/forums/vbstats.php

A ton of errors.
vb 2.2.2

Gutspiller 02-11-2002 06:39 PM

Quote:

Originally posted by Graphic-Forums
What could be the problem here:
http://www.dietsupporters.com/forums/vbstats.php

A ton of errors.
vb 2.2.2

7. Be sure to add this line to your phpinclude template:

include("vbs_counter.php");

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

A lot of people miss that step because it's after it says to upload your files. :up:

vTed 02-11-2002 10:02 PM

Under 'browser' and 'operating system' , the 'other' and 'unknown' numbers seem to be increasing by as much as 600 a night (and i'm pretty sure these are not 'real' hits) with no other numbers increasing. Any ideas?
take a look http://flashping.com/forums/vbstats.php

is vb stats counting some other activity on my server?

Gutspiller 02-12-2002 02:53 PM

It could be something you missed in the hack. Most likely you will probably have to retrace your hacking steps and make sure you did everything. If everything checks out, I would think that either somebody has a browser that the system doesn't recognize or it's a bug with the detection software. :up:

Jawelin 02-15-2002 03:47 PM

Quote:

Originally posted by Bane
When you installed windows and picked a country I suppose :D

I am going to rewrite the way it detects countries. I thought encoding would be much better but it seems a mess.

Great hack, Bane!!
I saw it's the first one on vb.org, more!!

Just an off-topic, I suppose.
How could I read from PHP the user's TIMEZONE, along with the country ??
I though could be an enhancement a new page with a list of all timezones (with all the 3-char identifiers) and statistics of per-zone users.
I wouldn't prefer not to trust the timezone value of the user-table (I saw it isn't often upgraded by the user itself)

Thanks a lot.
Bye

Massiel 02-16-2002 09:30 PM

How can I include the "member stats" in the main forum page on the welcome panel? Please help!

Thanks :)

Sidd 02-16-2002 11:51 PM

one stupid question since I am new to this.

I have installed it and it runs fine on 2.2.2 but I have to bookmark the exact URL for the vbstats. Can be accessed through admin control panel and if yes how?

thanks in advance

Gutspiller 02-17-2002 04:31 AM

Sidd: Scroll down to the very bottom in your admin CP

On the left, 5th catagory up it should be there like this:

vbStats
vbStats Config
View Public Statistics
Exclude vbStats URL

If not, you probably missed a step in the admin directory.

Massiel, what are you asking? Trying to include the actual stats on the main page? Sorta like what ubb does? Let me know, I might be able to figure it out, unless a more experianced hacker knows right off the bat. :up:

Massiel 02-17-2002 05:54 AM

Look at this site :D http://x-mencomics.com/xfan/forums/index.php?s=

He had the member stats on the main forum page. :)

Just wondering how they got there...

Gutspiller 02-17-2002 06:58 AM

Quote:

Originally posted by Massiel
Look at this site :D http://x-mencomics.com/xfan/forums/index.php?s=

He had the member stats on the main forum page. :)

Just wondering how they got there...

Do a search here at vb for Total Threads, and the names of others you want and it should find them.

floleb7 02-17-2002 09:30 AM

i turn referrer on in my board, in vbstats index there is someone with 1 referrer ( http://forum.latriade.net/vbstats.php?s= )

but when you browse http://forum.latriade.net/vbstats.ph...on=memberrefer nothing is showing .

Hamsh 02-17-2002 11:43 AM

I have uploaded all the files and changed the phpinclude file, but when I run install_vbstats.php, all I get is a blank page.

Help!

DannyITR 02-17-2002 03:25 PM

Same here. All blank.

DannyITR 02-17-2002 03:45 PM

Got it!

All I did was put the files in the appropriate directories. It says where to put them in the .txt files that are inclluded in the DOCS directory. The blank page is probably a result of image files not being in the images folder.

Now...to try an install this sucker.

Hamsh 02-17-2002 03:56 PM

Should be: /forum/images/flags
and: /forum/images/stats
?

or did you put the gifs straight into the /forum/images directory?

DannyITR 02-17-2002 04:29 PM

That's right

forums/images/stats
forums/images/flags

Now my problem is that I can't find the code in index.php to change. I opened it in notepad and man, that file is a mess! I thought programmers are supposed to make things readable by double spacing lines and indenting.

DannyITR 02-17-2002 04:32 PM

Why is everyone talking about a php include file? I didn't get any file like that in the download.

DannyITR 02-17-2002 04:42 PM

I'm now certain that the line it told me to find is not in my index.php file. The only line that resembles it is this one:

makenavselect("Statistics & Logs","<hr>",$df);

What do I do now?

DannyITR 02-17-2002 05:13 PM

Help!!

I modified the template file but now I get this error when I try to get into templates from the cp.

Parse error: parse error in /home/www/montrealracing/forums/admin/template.php on line 297

I took out the code I put in but it still gives me the error.

DannyITR 02-17-2002 06:30 PM

I reverted to my backup for the database that I made before starting the mess and I'm still getting an error! How can this be?? Please help me.

Can someone give me their origonal template.php file?

Steve Machol 02-17-2002 06:39 PM

Just reupload the original template.php from the zip file. It would be illegal for anyone to send you a copy of this file.

DannyITR 02-17-2002 07:41 PM

Thank you, that worked.

I still have the problem of not finding the required code in index.php.

Are you able to tell me why this may be or where I should look for it. Is the file suppoed to be one huge continuous mess?

DannyITR 02-17-2002 08:38 PM

You know what, I'll just live without the option hacks.

I have one question though: It doesn't give me the number of hit or page views. These are the most important stats. How come they are not there?

Also, I added the code to phpinclude but I still get the division by 0 error.

Bane 02-17-2002 09:39 PM

Danny, if you are running vb 2.2.2 there is a link to a set of instructions for that version in the 2nd post in this thread. phpinclude is not a file its a template. And if the division by zero error is there it is likely you havent added the line correctly. I would advise you to take a patient look at what you have done so far and make sure you have followed the instructions correctly.

DannyITR 02-18-2002 03:40 AM

I have fixed the divide by zero error. The template hack gives me errors but I don't want to push my luck.

What I need to know is where to find the total hits the forum is getting like it says in the first post. I see views but no unique visitors which is what really counts.

Hamsh 02-18-2002 11:07 AM

I have re-uploaded everything, done the hacks for 2.2.2 and added the include line to phpinclude, but I still get a blank page when I run install_vbstats.php. Any suggestions? What have I missed out?

Hamish


All times are GMT. The time now is 11:54 AM.

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.03657 seconds
  • Memory Usage 1,832KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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