FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Does anyone know how to make a forum connected to the site?

 


musthavesims
I have seen many websites like [url="http://sims2source.com]this one[/url] where you can log in to the site from the main page. Can anyone tell me how to do that? Thanks to anyone who can help.
wumingsden
musthavesims wrote:
I have seen many websites like [url="http://sims2source.com]this one[/url] where you can log in to the site from the main page. Can anyone tell me how to do that? Thanks to anyone who can help.


Hmmm ... you want a login box on the front page to login to the forum. Here's a code, save it as login2bb.php in your main forum directory....

Code:
<FORM action=login.php method=post target=main>
      <TABLE class=forumline cellSpacing=1 cellPadding=3 width="106"
        border=0><TBODY>
        <TR>
          <TD class=row1 vAlign=center align=middle height=28 width="90"><SPAN
            class=gensmall><INPUT class=post size=12 name=username value="Username"><br>
            <INPUT class=post type=password size=12
            name=password value="Password"><br>
            Auto logon <INPUT class=text type=checkbox name=autologin checked=checked ><br>
            <INPUT class=mainoption type=submit value="Log in!" name=login><a href="http://www.yoursite.com/forum/login.php?logout=true" target=main> Logout</a></SPAN>
          </TD></TR></TBODY></TABLE></FORM>
<p>&nbsp;</p>


Change "http://www.yoursite.com/forum" to your forums location. You'll probably also want to add some CSS in there too.
Now enter the following code on your front page:

Code:
<iframe src="http://www.yoursite.com/forum/login2bb.php" width="150" height="100" scrolling="no"></iframe>


That's it. See it in action at www.mezmorizing.net (at the bottom of the menu). Note that this code will open a new window, http://sims2source.com login box fails to do this.
polly-gone
I don't know if this is what you are loking for but:
You could always use phpBB!
wumingsden
polly-gone wrote:
I don't know if this is what you are loking for but:
You could always use phpBB!


They are asking for a login script for phpBB that they could use on their main site (front page). The code in my previous post does this nicely.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.