SMF For Free Support Forum
Signup For Free Forum
December 04, 2008, 01:05:24 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to SMF For Free. The best free SMF Host
 
   Home   Help Search Arcade Gallery Login Register  

Pages: [1]
  Print  
Author Topic: Logging into forum from a website  (Read 1027 times)
0 Members and 1 Guest are viewing this topic.
Jason Jones
SMF For Free Member
*
Offline Offline

Posts: 31


Live for yourself because life is too short


View Profile WWW
« 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?
Logged

Crasy
Global Moderator
*
Offline Offline

Posts: 3572


I Approve of this Message


View Profile
« Reply #1 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:
<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.
« Last Edit: June 21, 2008, 08:30:57 pm by Crasy » Logged

Jason Jones
SMF For Free Member
*
Offline Offline

Posts: 31


Live for yourself because life is too short


View Profile WWW
« Reply #2 on: June 21, 2008, 08:59:42 pm »

Sweet
thanks this will help a lot.
Logged



Pages: [1]
  Print  
 
Jump to:  

cheap low cost web hosting reviews

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
ServerBeach Coupon
Page created in 0.363 seconds with 16 queries.