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?!!!!!!

Wells 01-14-2003 09:36 AM

SOMEBODY !!!!!!!!!!!!!!!!
HELP MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE

Wells 01-17-2003 01:27 PM

DOVBANYI hack!

Frank 01-22-2003 03:44 PM

Well I have SQL errors with this hack, it's trying to access other databases for some reason ;)

Does that complicate things even more? :D

Frank 01-24-2003 10:05 AM

Okay everyone with header errors try using the full http path when including the file.

i.e. <? include ("http://yoursite.com/forum/webwelcome.php"); ?>

This solved my problem, but I still have the problem of it not recognising my cookie, which is very annoying.

glo 02-16-2003 08:26 AM

Can anyone else tell me if they are successfully using this hack on 2.2.9?

I dont think this hack is hard but I cant get it working!

Darren Lewis 02-16-2003 10:51 AM

Apologies for my abscence. I'm not installing/writing any more vb mods until vbulletin V3 is out, so I haven't been here for a couple of months.

gohanssj2:
The page hasn't accessed your vbulletin global.php file. Probably a problem with the paths of the include statement on your page.

Bubba:
Are you by any chance runing phpadsnew? There's a known problem with phpadsnew overloading a site's cookie file and causing very random, obscure logout / session expire problems.

Wells:
I've not come across this problem before. It looks like a problem with the paths. Check your include statement on your main page, as well as any other paths in the script. Some servers require the full include path.

Frank:
Are you accessing other databases on your page?
Try adding
PHP Code:

mysql_select_db("vbulletin"); 

where "vbulletin"is the name of your vb database, before the include for the webwelcome.php file.

Glo:
I'm running it on vb2.2.9 - I never could understand why it doesn't work on your server. The files you sent to me worked fine on mine :(

glo 02-16-2003 12:29 PM

Hi Darren,

HOw are you!

I have managed to get it to work to some degree.

It will display the login screen if a guest comes on, but it truncates the "There are currrently X users online" cutting it back to "There are currently X" You can try it at www.glo-racing.com/v3/test.php

When I have already logged into vBulletin, it wil display the correct "Welcome message, but again, truncates the "There Are currently X.......

Its really quite strange.

Plus, if I add it to a html page, and change it to a php extension, the php will not work???

TYorke 02-19-2003 08:44 PM

I don't know if I was right in doing this, but I simply added:

chdir("../community");
require('global.php');

inside the webwelcome.php file and it works like a charm. Anyone sees any problems with this?

glo 02-19-2003 09:23 PM

Hi Tyorke,

Is your directory structure set up so that the forums are situated on the same level as your main site?

In my case, my directory structure is a little different with the forums located at www.glo-racing.com/forums and my main page situated at www.glo-racing.com/v3/main.html

However this shouldnt have any bearing on the outcomeas long as the paths are correct!

TYorke 02-19-2003 10:26 PM

yes, basically. My site is www.nhl-league.com and my forums are community.nhl-league.com same as www.nhl-league.com/community

The only thing that I see wrong with this is that my count is off. It says there are "6 members online" meanwhile only 4 are displayed. Not sure if it includes people in invisible mode, I guess not.

magic168 02-20-2003 08:50 AM

I still haven't seen a definitive reply as to if/how this works with other php scripts. I have a php include at the top of my page already for my content management system...how can I add the php require/chdir line for this hack and not screw up that? I'm not well versed in this stuff so please help!

magic168 02-20-2003 10:22 AM

I definitely can't get this to work properly with my other include statement because of the way it changes directories to the forum...I have the last 10 posts hack by tubedogg...it seems to be able toa access forum info (and plays nice with my other php scripts) without having to chdir?

Is this possible? I really need a log-in on my front page.

Darren Lewis 02-20-2003 12:03 PM

magic168:
You may have to chdir back to your original directory after including the vbulletin global.php file, or before your other includes.

TYorke 02-23-2003 01:57 AM

If I access my vB forums directly (shortcut, per se) and then visit the other, non-vB with the hack, I get that awful error that says "Warning: Cannot add header information - headers already sent by ..."

Why does it do that?

BrAinZ 02-23-2003 04:02 PM

Hi, I wonder if anyone can help with this problem. I have done all needed to install the hack and it sort of works... BUT..

If you are NOT logged in then it simply jumps to the "normal" login page.

What I want is to display my non-vbb HTML page (well PHP actually) but with a nice neat little login box.

Any ideas on what is going wrong ?

Jethro 02-27-2003 04:12 PM

All right! Just about to install this one to our test setup :)

Cheers and thanks for the hack D.Lewis

Kamui Shirou 02-27-2003 07:39 PM

hello
on my server where the forum is it workz perfectly but.............
on the server where the page (forum and page are on seperated servers) is hostet it shows this error message

Warning: ChDir: No such file or directory (errno 2) in /homepages/45/d72897891/htdocs/vashXT/laststyle2/index2.php on line 2

Fatal error: Failed opening required 'global.php' (include_path='.:/usr/local/lib/php') in /homepages/45/d72897891/htdocs/vashXT/laststyle2/index2.php on line 3

TYorke 03-02-2003 07:20 AM

Does anyone know how to get rid of this?

PHP Code:

WarningCannot add header information headers already sent by
(output started at /home/tyorke/public_html/new/test2.php:14)
in /home/tyorke/public_html/community/admin/functions.php on line 1610

Warning
Cannot add header information headers already sent by
(output started at /home/tyorke/public_html/new/test2.php:14)
in /home/tyorke/public_html/community/admin/functions.php on line 1610 

Thanks!

cinq 03-02-2003 09:10 AM

Cool hack , added this without a hitch , easily customizable look thru the templates too :)
Thanks for the hack ! :D

Darren Lewis 03-02-2003 01:42 PM

BrAinZ
You may need to check your templates to make sure that the paths to the forums are correct in the login form. Or make sure the cookie setup is correct in the vbulletin admin panel (see earlier in this thread).

Kamui Shirou
Check the path to the vbulletin global.php file. PHP cannot find it, so displays that message.

TYorke
Make sure the call to the vbulletin global.php file is at the very top of your non-vb page not at the top of the webwelcome.php file, as you mention in your earlier post. Make sure there is nothing before that line apart from the <?php opening tag. Make sure no white space before this tag too.

Jethro & cinq
Thanks for the kind comments. Glad you like it.

TYorke 03-02-2003 05:59 PM

Quote:

Originally posted by Darren Lewis
TYorke
Make sure the call to the vbulletin global.php file is at the very top of your non-vb page not at the top of the webwelcome.php file, as you mention in your earlier post. Make sure there is nothing before that line apart from the <?php opening tag. Make sure no white space before this tag too.

I set this up doing it the way someone else did it earlier. Created a separate 'login.php' with the call to global.php and everything and included THAT file on my non-VB page. I guess this was not a safe practice?

Darren Lewis 03-02-2003 06:53 PM

That's probably why you're getting the header info already sent message. Should disappear if you move the call to the vbulletin global.php file so it's at the top of your non-vb page. You can still include you login.php file, but make sure not to call global.php twice.

TYorke 03-02-2003 08:58 PM

well everytime I include that information at the top, it renders the entire page blank.

Drowned 03-03-2003 04:49 AM

I get this error

Quote:

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain/httpdocs/index.php on line 178

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/mydomain/httpdocs/index.php on line 178
Yet I still get all the correct info dislplayed after the error?!

Quote:

Welcome back, Drowned.
You last visited: 03-03-2003 12:09 AM.
There have been 8 threads and 8 posts since your last visit!
View New Posts Since Your Last Visit
Oh yeah... avatars don't show up either :( I get a red x

Jawilliams 03-07-2003 09:04 PM

Heh - This looks just what I want, but cannot seem to get it to work.

I followed the instructions all the way through, however if you take a look at

http://www.time4parties.co.uk/pages/test.php where I was hoping there would be a login box in the big empty space, there is very little - any ideas?

Jawilliams 03-08-2003 06:16 AM

ok - I had a little play, and am not getting the error:

Quote:

Fatal error: Call to a member function on a non-object in /home/virtual/site47/fst/var/www/html/webwelcome.php on line 24
any ideas?

Jawilliams 03-08-2003 07:00 AM

I have tried changing the chdir, and this gives me no help - however I noticed that if I do get it wrong, I get the a different error stating that the global.php cannot be found

I presume that this means its not a problem in chdir then, and something to do with it not connecting to global.php

Megabyt3 03-08-2003 01:20 PM

Hi, i use a PHP Portal on my page ( phpkit ) and i have a index.php and a include.php from the Portal. I need to install this hack in a block on my Portal but i cant get it to work.

...server/page/index.php << is the Portal

...server/board/index.php << is the vB Board

So what i have exactly to do to get it to work on my Portal page in a block? The including in a block is not hard but first i have to know how to get the hack to work and where upload all files.

Zachery 03-08-2003 06:15 PM

.

Megabyt3 03-08-2003 09:58 PM

Faranth thx for ur awnsome reply! ;(


All times are GMT. The time now is 01:19 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.01482 seconds
  • Memory Usage 1,835KB
  • 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_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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