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)
-   -   Ultimate Board Stats Integration into Users Non-VB page!! (https://vborg.vbsupport.ru/showthread.php?t=43454)

Tigga 09-15-2002 02:14 AM

Quote:

Originally posted by Colon33
Also, i have not installed 2.2.7 because of template problems. This hack might not function properly cause of different code in 2.2.7
I just installed on 2.2.7 and it worked great. I did have to take out the member of the day part though since I don't have or particularly want that hack on my site. I was also getting the same error garoboldy was having before I removed the 'member of the day' section.
Nice hack, but unfortunatly I don't think I'm going to be able to use it. I've been using a slightly modified version of vBhome to include a bar down the left side of all my pages with user's info, online users, buddy lists, and etc. I use SSI to include the file and it works fine on all my HTML pages, but I can't get it to work on any of my other PHP scripts. I've tried this hack, webwelcome, coologin, and probably one or two more, yet none of them seem to work with another PHP script. I've tried using SSI somewhere in the script and the PHP include function, but had no luck with either. It will either display the info as if a user is not logged in and not let them log in from that page, or it will complain about header information already being sent out. If anyone has made this hack or a similar one work with another PHP script or knows how to I would be forever greatful and even give them my first born. :)

weeno 09-15-2002 05:32 AM

I had the same problem when trying to install it on a different site than my forums (but on the same server).

The problem, I think is that globals.php require's files that are in the admin directory.

Globals.php refers to the admin directory as "./admin" so... the partial fix is to create a symbolic link in the directory you are installing the hack to the admin directory

ln -s /full/path/to/admin admin

Now, i have a header error though... trying to set cookies or something

Warning: Cannot add header information - headers already sent by (output started at /home/chaosmin/public_html/portal/test2.php:15) in /home/forums/public_html/admin/functions.php on line 1573

Warning: Cannot add header information - headers already sent by (output started at /home/chaosmin/public_html/portal/test2.php:15) in /home/forums/public_html/admin/functions.php on line 1573

Tigga 09-15-2002 06:41 AM

That's pretty much the same problem I'm having whenever I try to use this script (or something similar) with another PHP script. I don't know that much about PHP, but I'm guessing you can't have 2 different scripts sending out headers.

Colon33 09-16-2002 07:16 AM

UPDATE OF ULIMATE STATS HACK! The Ultimate stats hack now features the total threads and posts since your last visit!
----------------
How's it going guys, i just decided to toss this in there cause i was bored. Hence its not a Large Update.

------
Coming in Version 3.0:

Whos Online
Total Members on a Day Alltime
Most users ever online a day Alltime
Users who have visited the site/board already today
Send PM via Website Home Page
PM notification on website Home Page
And so much more.
----------
**Possible RPG modification integration**

Display your board character/stats/money...etc.

have Fun!.. and remember, always wear a condom... especially when hacking VB!! lol

Shepski 09-16-2002 08:35 AM

got the hack working but noticed one problem with mine. the topthread starter user id is set to 1, the same as the top poster. it displays the right username but dont know why it assigns the userid of 1 to it!

any ideas?

http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php

also, when i intergrate it with my homepage i get the following errors:

Warning: Cannot add header information - headers already sent by (output started at .....etc etc

how do i stop this from happening.

Erwin 09-16-2002 09:20 AM

Quote:

Originally posted by Colon33
.. and remember, always wear a condom... especially when hacking VB!! lol
It's VB, not VD.

;)

Colon33 09-17-2002 01:18 AM

Quote:

Originally posted by Shepski
got the hack working but noticed one problem with mine. the topthread starter user id is set to 1, the same as the top poster. it displays the right username but dont know why it assigns the userid of 1 to it!

any ideas?

http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php

also, when i intergrate it with my homepage i get the following errors:

Warning: Cannot add header information - headers already sent by (output started at .....etc etc

how do i stop this from happening.


If you are installing this into VBHOME or VBINDEX like i see with your homepage it wont work. You cant call headers twice. You can use an iframe but thats about it for adding it already to another script.

About the User ID i dont know. Have you tried installing the top poster and threads starter? Your server and board might require you to do so. Otherwise you can just remove the LINK by the persons name. If you would please, so i know you didnt change anything on accident PASTE teh top poster and top replier sections as well as the ECHO string in here so i can take a look at it, you might have changed the URL. If anything you can always remove the LINK to the persons name.

Colon33 09-17-2002 01:21 AM

Quote:

Originally posted by Garoboldo
I cant seem to get your php file to work right.
here is the error I am getting.

Database error in vBulletin 2.2.7:

Invalid SQL: SELECT userid,username
FROM user
WHERE userid<>
AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2)
ORDER BY RAND()
LIMIT 1
mysql error: You have an error in your SQL syntax near 'AND (usergroupid=5 OR usergroupid=6 OR usergroupid=7 OR usergroupid=2)
' at line 4

mysql error number: 1064

Date: Thursday 12th of September 2002 07:43:03 AM
Script: http://www.evolutionaryconcepts.com...m/boardstat.php
Referer:


it says /forum/forum/boardstat.php but there is no forum/forum
just /forum on my site.
I placed the php file in the vb root directory...and got this...when I put it in my main directory I get a 404 error not found page....
.


Garoboldy, either install the member of the day hack or just delete this part and remove it from the echo. This should help. You board seems to require the hack to be installed on the index iteself. Its not a big hack by no means.

Shepski 09-17-2002 07:24 AM

Quote:

Originally posted by Colon33



If you are installing this into VBHOME or VBINDEX like i see with your homepage it wont work. You cant call headers twice. You can use an iframe but thats about it for adding it already to another script.

About the User ID i dont know. Have you tried installing the top poster and threads starter? Your server and board might require you to do so. Otherwise you can just remove the LINK by the persons name. If you would please, so i know you didnt change anything on accident PASTE teh top poster and top replier sections as well as the ECHO string in here so i can take a look at it, you might have changed the URL. If anything you can always remove the LINK to the persons name.

Whats VBHOME and VBINDEX? My homepage is made up by me and Mr Dreamweaver. I have called other scripts up that utilise the forums with no problems that get displayed on my homepage.

I woiuld like to have the top thread starter displayed with a link if possible as it is a neat feature.

Code:

// Top poster
$topposters=$DB_site->query_first("SELECT username,posts,userid FROM user ORDER BY posts desc LIMIT 1");

// Top Threads starter
$toptstarter=$DB_site->query_first("SELECT COUNT(*) AS count,postuserid,postusername FROM thread GROUP BY postuserid ORDER BY count DESC LIMIT 1");

<font size=1 face=verdana>The Current Top Poster is: <a href=http://www.dvd-swaps.co.uk/dvd2001/dvdforums/member.php?&action=getinfo&userid=$topposters[userid]><b>$topposters[username]</b></a></font>($topposters[posts])<br>
<font size=1 face=verdana>The Current Top Thread Starter is: <font color=red><a href=http://www.dvd-swaps.co.uk/dvd2001/dvdforums/member.php?&action=getinfo&userid=$toptstarter[postuserid]><b>$toptstarter[postusername]</b></a></font>($toptstarter[count])</td></tr></table>";

http://www.dvd-swaps.co.uk/dvd2001/d.../boardstat.php - it displays everything corect except the id number which is wierd.

Shepski 09-18-2002 02:02 PM

got it working on home page except for the topthreadstarter id thing. put all the code except for the echo stuff at the beginning of my index code before the <htML> tag and put the echo stuff where i wanted it to display on the page. works a treat :)

http://www.dvd-swaps.co.uk


All times are GMT. The time now is 05:38 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.01135 seconds
  • Memory Usage 1,756KB
  • 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
  • (1)bbcode_code_printable
  • (5)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
  • (10)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