vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   A little help with homepage... (https://vborg.vbsupport.ru/showthread.php?t=52616)

jamslam 05-05-2003 07:02 PM

A little help with homepage...
 
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...

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.

base 05-07-2003 07:29 PM

<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:

Quote:

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

Quote:


setcookie($name, $value, $expire, $cookiepath, $cookiedomain, $secure);

The variable still just displays as
Code:

$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...


All times are GMT. The time now is 06:08 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.00983 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete