MyBB Community Forums

Full Version: Login pointing to wrong location for member.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to create a custom page for my forum and followed a tutorial on here which worked fine. My problem is that when I try to login from that page (which is outside of the forum directory) it brings me to a 404 error page because it's trying to access the member.php in the wrong directory even though I have double checked and the code in the header_welcomeblock_guest is pointing towards the correct location. Is there something I have to edit elsewhere?

Everything else is working correctly and all of the other links (Lost Password, Register, etc...) point to the correct directory. Do I need to adjust the login script elsewhere to make sure it's pointing to the forum directory?

Here's a link to assist:
http://www.host2x.com/rules.php
Assuming you're using the MyBB template for the header, you'll need to change this in jscripts/general.js:

			form.setAttribute("action", "member.php");

Replace with:

form.setAttribute("action", "http://absolute.path.to.your.forum.com/your/forum/member.php");
Worked perfect! Now I'm having an issue with the pm_notice alert. I fixed the Dismiss PM image and link which works correctly but if you click on the PM subject it directs me to private.php outside of my forum directory.
Did you figure out where to fix the pm_notice alert?
I don't remember. Sad