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)
-   -   welcome/login panel on non-vB page (https://vborg.vbsupport.ru/showthread.php?t=37134)

JustAskJulie 11-25-2002 05:11 PM

Quote:

Originally posted by Buck Satan
I keep getting the "Call to a member function on a non-object in webwelcome.php on line 24" error even though Guests are able to view my forums. Any ideas?
I was getting this same error, then I realized I was pulling the wrong file.

I set up my index.html to call webwelcome.php from a SSI. I had created another file with just the call for the PHP file and the php info in my SSI directory. That file called the info from the webwelcome.php file that was in my forums directory. I had accidently uploaded the webwelcome.php that should have gone in my forums directory over the one in my SSI directory and it was causing the above error.

If that made any sense at all maybe it will help you figure out where yours went wrong.

JustAskJulie 11-25-2002 05:12 PM

Just wanted to post that I did get this working on .html page sort of. I put it in a .php file then called the .php file via SSI.

I'm just having one glitch now, the "welcome text" isn't showing up for non-registered users. Any ideas?

JustAskJulie 11-25-2002 05:20 PM

Nevermind, I figured it out. I had one of my templates named wrong.

amsch 11-30-2002 01:43 PM

Can you explain how you did that? I would love to be able to do that.
Thanks a head of time!

GTGT 11-30-2002 04:42 PM

This was tricky... Can anyone help me. I got totally stuck :(

Doesn't work :( :(

JustAskJulie 12-03-2002 06:25 PM

Quote:

Originally posted by amsch
Can you explain how you did that? I would love to be able to do that.
Thanks a head of time!

It's actually pretty simple. Take the bit of code that the instructions for webwelcome tell you to include on your webpage (where you want the webwelcome to show up)
and create a new page with just that code. Name it welcome.php and upload it to your server. (I keep all my SSI files in one folder named "SSI" off my root).

Now on your index.html page where you want the web welcome panel to show up, just include the SSI call instead. On my page it looks like this:
Code:

<!--#include virtual="SSI/webwelcome.php" -->
That's pretty much it.

Bubba 12-17-2002 06:27 PM

If anyone has any more info on the problem of a session not propogating out of the forum pages please let me know.

I'm running a site that uses core vBulletin code for handling sessions and I need them to propogate to pages outside the forums. For about 95% of my users this works fine, but there's a small group where it fails. I am unable to reproduce this error myself so it's been quite frustrating to say the least.

For the coders, specifically I am using this code in a general "global" file that is included everywhere:

Code:

include_once("$php_include_path/forum/admin/config.php");
include_once("$php_include_path/forum/admin/db_mysql.php");

// DB info removed

include_once("$php_include_path/forum/admin/functions.php");
include_once("$php_include_path/forum/admin/sessions.php");

This defines the $bbuserinfo array that lets me determine if a user has a current session in place. So the particular problem is that when a user leaves a forum page, this array isn't being repopulated on the non-forum page for some reason. It's semi-related to some of the dicussion in this thread but no one had a definitive answer. Any help would be really appreciated, or at least some knowledge of what conditions might actually cause this. Thanks!

LOD-squa 12-22-2002 04:34 AM

Hello, when run webwelcome.php I get:

Fatal error: Call to a member function on a non-object in /home/lod-squa/public_html/webwelcome.php on line 24

how can I fix this?

LOD-squa 12-22-2002 11:35 PM

could someone help me? =P sorry to bother alot.

Wells 01-12-2003 03:58 PM

Hi! MANY Thanks for your hack!
I need extra help.
I install this hack but getting an error:

Warning: open_basedir restriction in effect. File is in wrong directory in /users/home/tour/login.php on line 6

What to do?!!!!!!


All times are GMT. The time now is 04:46 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.01468 seconds
  • Memory Usage 1,740KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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