Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2003, 07:02 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 05-05-2003, 09:24 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 05-06-2003, 02:32 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone...? Any help?
Reply With Quote
  #4  
Old 05-07-2003, 04:48 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 05-07-2003, 07:29 PM
base's Avatar
base base is offline
 
Join Date: Apr 2002
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?postid=381116#post381116" target="_blank">https://vborg.vbsupport.ru/showt...116#post381116</a>
Reply With Quote
  #6  
Old 05-07-2003, 09:31 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 05-07-2003, 10:48 PM
jamslam's Avatar
jamslam jamslam is offline
 
Join Date: Feb 2003
Location: Massachusetts
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:21 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06473 seconds
  • Memory Usage 2,218KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete