SMF For Free Support Forum

General Stuff => Programming => Topic started by: guest4485 on June 21, 2008, 07:37:29 pm

Title: Logging into forum from a website
Post by: guest4485 on June 21, 2008, 07:37:29 pm
Hi, I just finished setting up a website that researches a New MMORPG that is supposed to be released by JaGeX in 09. I also set up a smfforfree forum for it but I'm trying to set it up so that there will be a login box on my webpage that when you enter the username and password and hit login you will be redirected to the forum and be logged in. How would I do this?
Title: Re: Logging into forum from a website
Post by: Crasy on June 21, 2008, 08:15:10 pm
You know...
I've never actually checked if SMF For Free supports SMF SSI.

Edit: Nah. Can't get it to work.
Maybe just copying the plain ol' HTML works anyways. It's be as fancily dynamic..but it should work right?


Edit:

I figure I should teach you how to do this.
Logout on your forum
Right click on the page, click View Source code

You need to find a section of code that looks like this
Code: [Select]
<script language="JavaScript" type="text/javascript" src="http://testcrasyandconfused.smfforfree4.com/Themes/default/sha1.js"></script>

<form action="http://testcrasyandconfused.smfforfree4.com/index.php?action=login2" method="post" accept-charset="ISO-8859-1" class="middletext" style="margin: 3px 1ex 1px 0;" onsubmit="hashLoginPassword(this, '81128b1ce4699a7ed03094acca9b21ee');">

<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">1 Hour</option>
<option value="1440">1 Day</option>
<option value="-1" selected="selected">Forever</option>
</select>
<input type="submit" value="Login" /><br />

<span class="middletext">Login with username, password and session length</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>

Except your forum URL will be in there instead of mine.
Copy paste that onto the page you want it to go on.
Title: Re: Logging into forum from a website
Post by: guest4485 on June 21, 2008, 08:59:42 pm
Sweet
thanks this will help a lot.