Print Page | Close Window

Basics on integrating forum log-in with website

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=26524
Printed Date: 28 March 2026 at 3:12pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Basics on integrating forum log-in with website
Posted By: TonyLoco
Subject: Basics on integrating forum log-in with website
Date Posted: 12 November 2008 at 8:17pm
Is there a particular forum post that covers the basics of integrating the web wiz log-in system with the log-in system of an existing website?
 
I.e. I want my website forum link to be streamlined so that if people are logged in to the website, they will also be logged into the forum.
 
This means I would need to either edit my log-in webpage to work with the forum "author" table, or I would need to modify the forum code to work with my table of users.
 
Upon initial examination of the "author" table and log-in pages ("login_user.asp'") for the forum, I noticed that the forums log-in system is far more complex than mine and uses password encryption, etc. So my initial thought is to go with the forum log-in system.
 
Therefore I would simply delete my log-in web pages and table of users and simply redirect my website users to the forum log-in pages. Of course this also means that I would need to know the name of the relevant cookies that store whether or not a user is already logged in etc.
 
So basicaly I wanted to know if someone has already written a forum topic that covers this basic info. I.e:
 
-An introduction to how the log-in system works (cookie names, field names, etc.)
 
-Some tips and tricks on simple ways to edit the log-in system that wont cause problems later on.
 
Thanks in advance.



Replies:
Posted By: WebWiz-Bruce
Date Posted: 13 November 2008 at 8:29am
There is a built in existing member API just for this. It takes about 5 minutes to setup and is very simple to do.

Just open in notepad the file 'functions/functions_member_API.asp' and follow the instructions in that file on how to set it up.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: TonyLoco
Date Posted: 13 November 2008 at 7:08pm
Thanks for that Bruce, that is very useful.
 
Although I might actually prefer to use your log-in system as it seems to be more secure (i.e. password encryption, email verification, etc.)
 
Is there an equally simple way to do it the other way around? I.e. redirect to your forum log-in pages and pick up your cookies / system variables to determine if someone is already logged into the site?
 
As far as I can tell this would just be a matter of synchronizing cookies and system variables right? Also I would need to know which fields in the forum's "author" table are required. My create account page only asks users to enter username, password, email, and Country.
 
The forum registration page asks many more forum specific things (i.e. avatar, time zone, etc.) that may just confuse people and discourage them from registering with the website if they dont intend to use the forum. If I was to use the forum log-in page I might want to remove those and just eneter default values into the author table.
 
Maybe it is altogther a little too complicated to do it the other way around?


Posted By: WebWiz-Bruce
Date Posted: 14 November 2008 at 7:51am
The other way around would be much more complicated. It would require calling the login and session tracking functions found in files in the functions folder.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Wayne G.
Date Posted: 01 December 2008 at 7:46pm
Hi Bruce:
   How do you do this for NewsPad?
 
Thanks,

Wayne G.
 
 


Posted By: WebWiz-Bruce
Date Posted: 01 December 2008 at 7:55pm
This is not something built into NewsPad due to anti-spam laws you can not just auto subscribe a user to receiving emails as it is illegal.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: abeez
Date Posted: 30 January 2009 at 4:44am
Just trying out a few things and new here, about, Member API....

I don't understand first part below----------
'To use the Web Wiz Forums member API in your existing member login system you need to
'set the following session variables for the members username, password, email address
'so that they can be passed across to Web Wiz Forums to login in your member

'    Session("USER") = Member_Username
'    Session("PASSWORD") = Member_Password
'    Session("EMAIL") = Member_Email

'Replace 'Member_Username' with the username of your member
'Replace 'Member_Password' with the password of your member
'Replace 'Member_Email' with the password of your member (this one is optional)

'****************************************************************************************

Can I ask where specifically I put this, or what do I amend?

Many thanks
Alan


-------------
http://www.exuk.co.uk


Posted By: WebWiz-Bruce
Date Posted: 30 January 2009 at 9:37am
You need to put this into your own websites login page and set these variables with your members login information. They can then be passed to Web Wiz Forums.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kwfricke
Date Posted: 20 February 2009 at 2:37pm
I would like to verify that a member has an account.  Is this possible?  For example, we have another client application which we would like to streamline with the forum.  Therefore, when they register we ask them if they are also registered with the forums.  If so they enter their username and password so that we can attach their forum account to our other system. 

Is this possible?  Is there a way to have the member_api return a true/false if the login credentials are correct?

Thank you.




Posted By: Scotty32
Date Posted: 21 February 2009 at 11:54am
If you want to integrate your website with the forum, you should either use your Website memberlist (using the API) or run your website off the forums memberlist.

It would expect it to be very difficult if you are running them both independent.


If you want to block your website pages off to forum members only you can do so by following my http://www.s2h.co.uk/wwf/tips/intergration/member-only-pages.asp" rel="no follow - Member-Only Pages tutorial.

-------------
S2H.co.uk - http://www.s2h.co.uk/wwf/" rel="nofollow - WebWiz Mods and Skins

For support on my mods + skins, please use http://www.s2h.co.uk/forum/" rel="nofollow - my forum .


Posted By: NautiRogue
Date Posted: 31 May 2009 at 12:57pm

I have a similar, but much less complex thought.  Currenlty, I have Newspad integrated with my forum, but when you register, the newspad subscription is not selected by default.  Can this be changed to "Yes" by default?

I wouldn't think that this would violate any anti-spam laws, would it?  They're going through and selecting these things and then hitting "OK."  I'm sure that most users just accept the defaults without realizing that they are not subscribing to the newsletter.


-------------



http://www.lmbp.us" rel="nofollow - www.LakeMichiganBoatParty.com


Posted By: 123Simples
Date Posted: 31 May 2009 at 6:38pm
It can be changed to yes by default but http://forums.webwiz.net/bulk-mail-all-members_topic27341_post139835.html?KW=newsletter#139835" rel="nofollow - read this topic as it explains the opt in, opt out part of subscriptions, and http://forums.webwiz.net/span-classhighlightnewsletter-span--default-yes_topic27130_post138918.html?KW=newsletter#138918" rel="nofollow - this topic too
Hope that helps a bit


-------------
http://www.123simples.com/" rel="nofollow - Visit 123 Simples Web Design


Posted By: syncroniq
Date Posted: 19 August 2009 at 1:21pm
Hi,

Include the hash1way file
<!--#include file="functions/functions_hash1way.asp" -->

select salt and password where username matches the username given.
compare password from db with HashEncode(typedPassword & rs("Salt"))

very simple.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net