![]() |
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 ...
|
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. :( |
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.
|
Quote:
|
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(); |
Have you tried changing the order around? Put the vBStats include last and see what happens.
|
I tried reversing the order.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Lionel - Have you tried commenting one line at a time and seeing when vbStats kicks back on? which line is killing it I mean?
|
Quote:
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 |
I fixed it by hardcoding the path ./admin/config in global.php
|
What could be the problem here:
http://www.dietsupporters.com/forums/vbstats.php A ton of errors. vb 2.2.2 |
Quote:
include("vbs_counter.php"); ----------------------------- A lot of people miss that step because it's after it says to upload your files. :up: |
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? |
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:
|
Quote:
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 |
How can I include the "member stats" in the main forum page on the welcome panel? Please help!
Thanks :) |
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 |
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: |
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... |
Quote:
|
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 . |
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! |
Same here. All blank.
|
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. |
Should be: /forum/images/flags
and: /forum/images/stats ? or did you put the gifs straight into the /forum/images directory? |
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. |
Why is everyone talking about a php include file? I didn't get any file like that in the download.
|
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? |
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. |
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? |
Just reupload the original template.php from the zip file. It would be illegal for anyone to send you a copy of this file.
|
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? |
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. |
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.
|
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. |
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|