![]() |
Quote:
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. |
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? |
Nevermind, I figured it out. I had one of my templates named wrong.
|
Can you explain how you did that? I would love to be able to do that.
Thanks a head of time! |
This was tricky... Can anyone help me. I got totally stuck :(
Doesn't work :( :( |
Quote:
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" --> |
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"); |
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? |
could someone help me? =P sorry to bother alot.
|
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?!!!!!! |
SOMEBODY !!!!!!!!!!!!!!!!
HELP MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE |
DOVBANYI hack!
|
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 |
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. |
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! |
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:
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 :( |
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??? |
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? |
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! |
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. |
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!
|
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. |
magic168:
You may have to chdir back to your original directory after including the vbulletin global.php file, or before your other includes. |
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? |
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 ? |
All right! Just about to install this one to our test setup :)
Cheers and thanks for the hack D.Lewis |
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 |
Does anyone know how to get rid of this?
PHP Code:
|
Cool hack , added this without a hitch , easily customizable look thru the templates too :)
Thanks for the hack ! :D |
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. |
Quote:
|
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.
|
well everytime I include that information at the top, it renders the entire page blank.
|
I get this error
Quote:
Quote:
|
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? |
ok - I had a little play, and am not getting the error:
Quote:
|
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 |
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. |
.
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|