MyBB Community Forums

Full Version: help with login form on main site
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, i used the mod at http://community.mybboard.net/showthread.php?tid=6190 to put a login form on my site, however when i now go to the page i get an error that says, Warning: chdir(): No such file or directory (errno 2) in /home2/backsta/public_html/pass_save/layout/page.php on line 3
Direct initialization of this file is not allowed. , also if i'm loged in i still get the login form and not the thanks for logging in. Here is the code of the page

CODE REMOVED
edit: i know that the layout is not yet finished, but i would still like help with this
Instead of
<?php
chdir('http://forum.backstageneopets.com/'); // path to MyBB
require 'http://forum.backstageneopets.com/global.php';
?>

Use the file paths (not URLs) in your chdir and require:
<?php
chdir('/home2.backsta/forums/'); // file path to MyBB
require './global.php';
?>
no i get the error
"Warning: chdir(): No such file or directory (errno 2) in /home2/backsta/public_html/pass_save/layout/page.php on line 3

Warning: main(./global.php): failed to open stream: No such file or directory in /home2/backsta/public_html/pass_save/layout/page.php on line 4

Warning: main(./global.php): failed to open stream: No such file or directory in /home2/backsta/public_html/pass_save/layout/page.php on line 4

Warning: main(./global.php): failed to open stream: No such file or directory in /home2/backsta/public_html/pass_save/layout/page.php on line 4

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/backsta/public_html/pass_save/layout/page.php on line 4"
i want to lunch my site soon, so fast help with this would be greatly apprecated
You have to put the real file path in the chdir. I don't know how your web server is set up for subdomains.
o, is there a way to find out what i'd need to put there?
like a php script that i could run from the subdomain?
if there is no php script that i could run is there a way to make it so the errors don't show?
i don't need help with this any more, i just deleted the top part of the code, even though it won't change messages for ppl that are logged in it will no longer show error messages so i'm ok now
Dang it, this is my problem, too.
I have a subdomain (board.new-slang.com) and my home is at new-slang.com.
I think my directory is /home/www/board.new-slang.com/ and /home/www/new-slang.com because in my Awardspace file manager it lists this. However, it just keeps the login form there after my user has already logged in.
lupus2k5, i still have the problem that you talked about before, however mabe you could try using a iframe hosted in your subdirectry
I was considering doing that...