MyBB Community Forums

Full Version: Homepage login?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, on my homepage here, http://www.x-ind.com, everything loads fine in the header. Yet, if you click login and try to login with the quick login there it goes to http://www.x-ind.com/member.php, which of course isn't there. Its supposed to go to http://www.x-ind.com/board/member.php

Any idea where I should go to edit/fix this?
Hey Schmarvin!

Make sure that you have your "Board URL" set correctly in your Boards settings..

Log into your admin panel, Go to Configuration --> Settings --> General Configuration
The homepage is at a different place from the forum. The forum is at /board/ and everything is set to work properly on the forum. But, on the homepage, the login itself does not work. I was thinking maybe a link in a file isn't using the forum url call function to go to the forum's root directory. Instead, its just calling to the homepage's main directory.

So, an overview-
Forum/Mybb is in in /public_html/board/
Homepage is in /public_html/
Quick Login at the homepage tries to login via the script /public_html/members.php
The quick login should login via the script /public_html/board/members.php

Any ideas?
You should check your template to make sure that the URL is correct. Did you do that already?
Which template? I've got about a million of them.
Go to Index templates, and edit index_loginform. You'll see this line:

<form action="member.php" method="post">

Change it to

<form action="{$mybb->settings['bburl']}/member.php" method="post">

That should force it to go to the right URL...
Nope, didn't change anything. Also, don't know why I didn't think of this before. But why doesn't the header change with the forum? It's always logged out, yet if you go to the forum, you are still logged in. Any ideas?
It's probably because you haven't coded your homepage right to be honest. You're using the guest template, and not changing it to the member template when they're logged in.

Personally, I've never seen this sort of integration before... which is good Smile Try and take a look at Integrating MyBB into your Website and how this is coded, compared to the way you're doing it...
That's how it is coded. And it grabs the main header file, so it should distinguish automatically the right welcome-bar.