Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2003, 11:33 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default online.php error.... PLEASE HELP ME lol $5 for peron who fixes it

Fatal error: Call to a member function on a non-object in /home/texeoco/public_html/web/online.php on line 129

I have no clue whats wrong... First one to get it fixed for me will get $5... Just reply saying you'll do it and I'll send you the online.php file.
Reply With Quote
  #2  
Old 04-11-2003, 11:51 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forget the 5 dollars. What is on line 129?
Reply With Quote
  #3  
Old 04-11-2003, 11:51 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are not allowed to send vB files to anybody. However the problem is, I guarantee you, that you wrote a function that uses $DB_site and haven't made it global.
Reply With Quote
  #4  
Old 04-11-2003, 11:51 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 08:45 PM Boofo said this in Post #2
Forget the 5 dollars. What is on line 129?

Well you can forget it, the rest of us will remain interested
Reply With Quote
  #5  
Old 04-11-2003, 11:53 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

PHP Code:

      $userinfo
[where] = "Retrieving Password";
      break;
    case 
'getinfo':
      
$userid explode('userid='$userinfo[location]);
      
$user   $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
      
        if (
$user[username]) {
          
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
        } else {
          
$userinfo[where] = "Viewing Profile of a Forum Member";
        } 
this is line 129:

PHP Code:
    $user   $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1])); 
Reply With Quote
  #6  
Old 04-11-2003, 11:53 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I must be one of the few who aren't in it for the money then, huh?
Reply With Quote
  #7  
Old 04-11-2003, 11:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 07:47 PM Xelation said this in Post #5
PHP Code:

      $userinfo
[where] = "Retrieving Password";
      break;
    case 
'getinfo':
      
$userid explode('userid='$userinfo[location]);
      
$user   $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
      
        if (
$user[username]) {
          
$userinfo[where] = "Viewing Profile of <a href=\"member.php?s=$session[sessionhash]&action=getinfo&userid=$user[userid]\">$user[username]</a>";
        } else {
          
$userinfo[where] = "Viewing Profile of a Forum Member";
        } 
this is line 129:

PHP Code:
    $user   $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1])); 
Like filburt said, just add the $DB_site to the global line somewhere above that code.
Reply With Quote
  #8  
Old 04-11-2003, 11:58 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you mean like right here? im not sure how to do it, im an html person myself, not very good at php at all... I can add hacks thats it lol

// initialize everything
$postids = '';
$threadids = '';
$forumids = '';
$eventids = '';
$onlinebits = '';
$mod = array();
$userinfo = array();
$guests = array();
$post = array();
$thread = array();
$forum = array();
$gotforum = array();
$event = array();
Reply With Quote
  #9  
Old 04-11-2003, 11:59 PM
Xelation's Avatar
Xelation Xelation is offline
 
Join Date: Jan 2002
Location: Buffalo, New York
Posts: 457
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or is it this?

<?php

error_reporting(7);
$templatesused = 'whosonline,whosonlinebit,postbit_useremail,postbi t_sendpm,postbit_profile,whoso nline_ip,whosonline_pm,whosonline_email';
$templatesused .= ',whosonlinebit_ip,whosonlinebit_pm,whosonlinebit_ email,whosonline_legend';

require('./global.php');
Reply With Quote
  #10  
Old 04-12-2003, 12:02 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add it in this line:

PHP Code:
  global $thread$post$forum$event$gotforum$hideprivateforums$bbuserinfo$timeformat$displayemails$enablepms$bbtitle$usergroupdef
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:06 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.05180 seconds
  • Memory Usage 2,268KB
  • 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
  • (5)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete