Jump to content

Forum intergration


shyish

Recommended Posts

Hey again ;D

 

For part of this site, I'm trying to figure out how to intergrate my forums (which use MyBB) seamlessly into my homepage

I was just going to add my header navbar and footer includes files into the code but apparently that doesn't work ¬,¬ When I put in the <?PHP include 'path'; ?> it just does nothing at all... MyBB just ignores the code, probably because it's placed in the template sets, but I'm not sure where else to put it.

 

The other thing I wanted was user login and cookie intergration with the main website, so that you login with your forum account from the main page too, and then can use this to do a rating system.

Link to comment
https://forums.phpfreaks.com/topic/172461-forum-intergration/
Share on other sites

Well I've got an intergrated login system sorted but thats the only part.. I'm not sure how to do... anything else for it :P

and also when you login on the homepage it just says:

Hey,

; Thanks for logging in.

 

The code being used issss

	<?php

if($mybb->user['uid'])
{
// The user is logged in, say Hi
echo "Hey, ".$mybbuser[username]."<br>; 
Thanks for logging in.";
}
else
{
// The user is not logged in, Display the form
echo "<form action='forums/member.php' method='post'>
Username: <input type='text' name='username' size='25' maxlength='30' />  
Password: <input type='password' name='password' size='25' />
<input type='hidden' name='action' value='do_login'>
<input type='hidden' name='url' value='http://80.193.51.242/webheads/index.php' />
<input type='submit' class='submit' name='submit' value='Login' /></form><br>";
}
?>

 

Also how would I make it display all their other details?

Link to comment
https://forums.phpfreaks.com/topic/172461-forum-intergration/#findComment-909267
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.