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
Thanks mate that helped alot Big Grin Lock this?
(2010-04-05, 10:05 PM)Prentice Wrote: [ -> ]Thanks mate that helped alot Big Grin Lock this?

Its a tutorial not a support thread! You can't ask for it to be closed.
(2006-01-20, 02:56 PM)Marc O Connor Wrote: [ -> ]How To
First, Before ANYTHING, even the "<HTML>" or "<?" Tag, place this.
<?php
chdir('forums'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
?>

In which file should I add this code? (index.php, global.php, etc)
That would be the index.php file. However, please note that this tutorial is out of date and no longer functions correctly. Please take a look at this thread: http://community.mybb.com/thread-60422.html

Regards,
eRott
All I did was to add style.css links and the top code from the header of my main website into the header.php file of my chosen template. I also added similar code to the footer.php file. I then checked that certain style commands were not being duplicated - header, container and so on - and removed any offending style.css from whichever so the one I needed to be prominent worked. Took me about half an hour if that. You can see the coding by 'viewing source'. About the only concern I have is that the 2 new style.css files are not above the </head> tags but it still works fine.
Doesn't seem to be working on my site.

http://wii.rockbandhelp.com/

Login and all that works fine (along with the latest posts), but it always displays me as that I'm logged out, even though the login was in fact successful. Could this if statement be out of date?

if($mybb->user['uid'])
Man, It also doesn't save the cookies for some odd reason ? I mean I have it setup and all etc.. however it never keeps it logged in.
Very nice, thanks man.
@freddie have you tried this?
I have tried the coding in this topic, and I am getting this error message

Fatal error: Call to a member function simple_select() on a non-object in /home/username/public/forum/inc/class_datacache.php on line 80

here is the code I used

<?php
chdir('forums'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
?>

I am currently running myBB version 1.6
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