MyBB Community Forums

Full Version: Integrating MyBB into your website. (Login Form)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
To change the redirect url open the member.php and find at line 969:
	redirect("index.php", $lang->redirect_loggedout);
and just replace index.php to your url, for example:
	redirect("http://mywebsite.com", $lang->redirect_loggedout);
Can you do this in microsft word?
No, just open with notepad, find "lang->redirect_loggedout" and you will find this line Wink
Alright thanks
Hey,

Edit: Seems to be working now but as above I when I want to log out it takes me to the forum index and not the forum index. If i change it in the member.php wont it change all re-directs to go to my main site an not the forum. (if you get me?)

Site: http://www.oneboro.co.uk

Thanks!
Thank you all of you that helped!! Smile This works great!
Will this still work with MyBB 1.4??

Just curious Toungue
Hmm, well it works for me, but I do get two notices saying
Notice: Trying to get property of non-object in /path/to/mybb/inc/class_datacache.php on line 60. I had a quick look at the class_datacache file, and it's trying to get a property of $mybb, here:
function read($name, $hard=false)
	{
		global $db, $mybb;
		if($mybb->config['cache_store'] == "files")
		{
			if(!isset($this->cache[$name]) || $hard)
			{
				@include(MYBB_ROOT."inc/cache/".$name.".php");
				$this->cache[$name] = $$name;
			}
		}
		else
                //etc...

So I'm not sure what's causing that, it doesn't give an error when I access $mybb->user from my own script. Perhaps it's an option I've set incorrectly?
Has anybody gotten this to work in MyBB 1.4? Sad
Works perfectly for me in 1.4 as is actually. What error are you getting?
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48