Advertise Here

Author Topic: Logging into forum from a website  (Read 4227 times)

0 Members and 2 Guests are viewing this topic.

guest4485

  • Guest
Logging into forum from a website
« 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?

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Logging into forum from a website
« 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: [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.
« Last Edit: June 21, 2008, 08:30:57 pm by Crasy »
Did my answer help you? Want to help out hosting costs?


Every donation counts.

guest4485

  • Guest
Re: Logging into forum from a website
« Reply #2 on: June 21, 2008, 08:59:42 pm »
Sweet
thanks this will help a lot.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1090 Views
Last post April 10, 2006, 09:34:51 am
by SMF For Free
14 Replies
3533 Views
Last post June 30, 2006, 10:12:50 am
by Crasy
9 Replies
3356 Views
Last post May 18, 2008, 05:26:28 am
by LaundryLady
10 Replies
2686 Views
Last post September 13, 2008, 01:30:49 am
by simply sibyl
3 Replies
1270 Views
Last post September 23, 2008, 11:17:09 am
by simply sibyl