View Full Version : A little help with homepage...
jamslam
05-05-2003, 07:02 PM
I am new to hacking by myself, and I was wondering how I could get a few forum stats such as the number of threads, posts, etc on my main home page...
I required the global.php file using this code...
<?php require("http://www.webtrickscentral.com/forums/global.php");?>
I then put $numbermembers and such on the main homepage. All it shows is $numbermembers. Now i viewed the source code when it was up on the internet, and it was like the global.php file was never required... I know the uploaded file has it, because I checked, but when it goes onto the internet, it disappears. I believe this is why it isn't working.
BTW, i have $numbermembers in the global.php file, and it works fine anywhere on vBulletin. Any help? I am new too!
jamslam
05-05-2003, 09:24 PM
Ok, instead of requiring the global.php file, i just put the whole thing in there...
i did a chdir thing to the place where it's supposed to be..
my site and everything shows up fine, but still instead of giving me the numbers, it just shows $numbermembers...
are there queries i need to run? if so, can someone point me to a walkthrough, or perhaps be ever so kind to do it themselves?
any help is very much appreciated!
-jamslam
jamslam
05-06-2003, 02:32 PM
Anyone...? Any help?
jamslam
05-07-2003, 04:48 PM
Is there anyone out there who can help me? Sorry for the extra posts, but am I being ignored or something?
If you think I just came here being lazy without looking at other hacks to understand them, I'm not. I took a look at a few of the hacks that allow you to post these sorts of thing on the main page, but I couldn't figure out which codes to add, and if there are queries to run, i don't know which ones. I need some help.
<a href="https://vborg.vbsupport.ru/showthread.php?postid=381116#post381116" target="_blank">https://vborg.vbsupport.ru/showt...116#post381116</a>
jamslam
05-07-2003, 09:31 PM
thank you for the link...
but i get this at the top of the non-vB page i put it on:
Warning: Cannot modify header information - headers already sent by (output started at /home/webtrick/public_html/index.php:4) in /home/webtrick/public_html/forums/admin/functions.php on line 1754
This is like 1754 of admin/functions.php
setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure);
The variable still just displays as
$totalthreads
Can anyone lead me into the right direction here? thank you
jamslam
05-07-2003, 10:48 PM
Well i seem to have gotten those messages away by chdir to the correct directory...
but it still doesn't display the number of members and such, I did it exactly how mist said in the link...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.