REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Intergrate MyBB with HTML?
#1
I need some help on the login code to Intergrate MyBB with my HTML home page as the forum will be underground.

Basic of what Is needed, for the users to visit the index page & If they already have an account be able to login, It should be a simple script so people should know It.
Also a remember me option would be helpfull but not required.
Reply
#2
here's a simple index page for that:
<?php
define("IN_MYBB",1);
require_once("./path/to/mybb/global.php");
if($mybb->user['uid'] == 0){
//loginform
exit;
}
//if they are logged in show this.
?>
Reply
#3
Here you are the full code to get it working (I use it in my own website):
PHP Code:
<?php
chdir
('/home/public_html/forums'); //Change this for your path to your forum directory
define("IN_MYBB"1);
require 
'./global.php';
if(
$mybb->user['uid']) {
     
//If it's logged in
}
else {
     
//If it's not logged.
}
?>
Reply
#4
Hello guys....!
Thank you for you generosity!I really appreciate your work. At this forum, you share us so important message.I like this kind of post which tell us much important massage.thank you again.
Reply
#5
Thanks i needed this Big Grin
Reply
#6
(Jan 03, 2011, 04:56 AM)Arqui Wrote: Here you are the full code to get it working (I use it in my own website):
PHP Code:
<?php
chdir
('/home/public_html/forums'); //Change this for your path to your forum directory
define("IN_MYBB"1);
require 
'./global.php';
if(
$mybb->user['uid']) {
     
//If it's logged in
}
else {
     
//If it's not logged.
}
?>

Thanks. I was kinda of looking for that tip as well.
Reply
#7
The moment in learning mybb production
Just good in this learn something
Thank you



____________________
r4 3ds
ds3
ak3
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Big Grin Free MyBB Directory Listing Website | List You MyBB Forum Today for FOC craigprunty 2 3,226 Feb 15, 2014, 12:09 PM
Last Post: milksheikh
  Html 5 Over HTML? ggicollegepunjab 1 793 Sep 30, 2012, 07:49 AM
Last Post: Dolan
  [MyBB Fundraiser] Order an "I Love MyBB" Userbar! Zash 3 3,265 Mar 15, 2010, 07:27 AM
Last Post: Zash
  HTML 5 - Overview LS 134 8 3,697 Aug 02, 2009, 03:31 AM
Last Post: LordMatu

Forum Jump:


Users browsing this thread: 1 Guest(s)