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
Odd I never failed with image opacity nor do I use tables I use div tags to make my themes non seem to brake and look similar on cross browser platforms.

P.S. If you want I can try to help you a bit. With the coding, I wont help with PHP ^^ as you have to learn on your own but I am willing to help out with HTML/XHTML and CSS
Hi to all.

This mod is beautiful ! And is working fine.

Unfortunately if the user is logged in, my HOmePage not show the user's name but:
Hey, Array[username].
Thanks for logging in.


Why?
(2009-11-07, 10:55 PM)Kyonko Wrote: [ -> ]Odd I never failed with image opacity nor do I use tables I use div tags to make my themes non seem to brake and look similar on cross browser platforms.

P.S. If you want I can try to help you a bit. With the coding, I wont help with PHP ^^ as you have to learn on your own but I am willing to help out with HTML/XHTML and CSS

i think i may have found the answer to my question as to why i can't seem to get it all right.

i am writing CSS3 values, but the browsers are displaying it as CSS2
Users just joined, pending approval by the administrator, can access to the page. How can I prevent it?
When i try to go to the page with the login form i get this error

Parse error: syntax error, unexpected T_STRING in /home/ldrago30/public_html/Welcome.php on line 3

and i checked line three which is

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

line 3 in that so can anyone help fix this cause i can't see the Error.....
didn't you forget to close a previous phptag?
its ok i fixed it turns out thats exactly what i did lmao
OK So I got most of it intergrated but I seem to have the problem whereby when you log in using the form on the homepage it goes to the forum and is signed in but if I go back to the homepage it still displays the form without what it is meant to display... I'm using this code here:
<?php
chdir('forums'); // path to MyBB
define("IN_MYBB", 1);
require './global.php';
?>
<?php
if($mybb->user['1'])
{
// The user is logged in, say Hi
echo"<div id='usertop'>
	<img src='$mybbuser[avatar]' class='userpic' />
	<ul>
		<li><img src='images/icons/pencil.png' />User CP</li>
		<li><img src='images/icons/camera.png' />Avatar Creator</li>
		<li>
	</ul>
</div>
<div id='Navbar'>
	<p>
		<img src='images/icons/error.png' title='House img' /> Hey $mybbuser[username], Thanks for registering!
	</p>
</div>";
}
else
{
echo "<div id='Navbar'>
	<p>
		<img src='images/icons/error.png' title='House img' /> Hey Guest, Thanks for register or login!<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='index.php)' />
<input type='submit' class='submit' name='submit' value='Login' /></form>
	</p>
</div>";
}
?>
Basically it just always displays the form never the other bit... Please help!
I tried to integrate mybb forum in my website. My website works MVC style.
The folders in the site are: 1)application 2)config 3) library 4) public.
In the application folder, contains 1) model 2) view 3)controllers folders. This is the main work place of my website.
I put images folder,video files folders in the public folder, also mybb forum and ajax chat.
And next tried to connect mybb login with my whole site log-in form.
When i login at my webpage, it is okay to login mybb forum.(and also good redirect to forum)
But, when i go back to my main webpage, there is no username is carried.
and then, i go to forum page, still login.
So, I put the test.php to public folder which contain forum folder.
And, I try to test, it is work and show username.
I think username only carry in my public folder not in the whole site.
i wanna know what the problem is?
help me!

PS:
i changed the cookie path in mybb admin to test =>'/mywebsite/'
instead of '/mywebsite/public/'
but it don't work! HuhHuhHuh
This tutorial contains outdated code that does not work. Please have a look at this thread: http://community.mybboard.net/thread-60422.html as it will likely solve your problem.
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