Print Page | Close Window

How are we supposed to hook into WWF?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=19224
Printed Date: 12 April 2026 at 7:57am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How are we supposed to hook into WWF?
Posted By: djlurchg
Subject: How are we supposed to hook into WWF?
Date Posted: 10 April 2006 at 6:26am
Yes, it's me again. Still not happy with the migration.

Big issue. The new application level logon credentials just broke my application.  I developed hooks that used session variables. Here is what I did:

User logs on to main site.
My user table has WWF ID stored in a field.
That forum id was set to the proper Session Variable.
User visits main site, then when ready for the forum, the click on the forum lin...and they are already logged on because of the session variable being set.

And now come to find out V8 uses Cookies that store some sort of GUID?

How am I supposed to integrate? The GUID are generated only by running the WWF Logon code.  How can I just hook into the database fields and log the user on?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 10 April 2006 at 11:26am
The login and session code are handled by functions to make integration simpler.

However, the auto-login cookie still runs and that maybe the way you need to look into your system logging the user into the forum.

I'm sorry that you are not happy with the new login system, but most people are, and a new more secure login and tracking system was required that also didn't rely on cookies as the cookie issue was one of the biggest support issues that we had and one of the biggest complaints with previous versions.


Posted By: djlurchg
Date Posted: 10 April 2006 at 4:57pm
borg:

Thanks for the response. It sound like I'm out of luck if I want to be able to log my users in to both the forum and my site in one page call.


Posted By: WebWiz-Bruce
Date Posted: 10 April 2006 at 5:06pm
You shouldn't be, your old system would have had been a modification to the software.

The new system is just much more secure.

The simplest solution would be create a cookie the same as the auto-login cookie for web wiz forums.


Posted By: djlurchg
Date Posted: 10 April 2006 at 10:21pm
Ok, I'm trying to hook in.

in tblAuthor just what is User_code?

PS: I manually updated the Username (in Access)...did I mess up the db because it is tied to User_code?




Posted By: wistex
Date Posted: 11 April 2006 at 1:17am
I had to do something similar when I integrated WWF with DUDirectoryPro.  I made DUDirectoryPro use WWF as the userbase and stripped out DUDirectory's login code.  DUDirectoryPro uses session variables to determine if someone is logged in or not.  So what I did was set the DUDirectoryPro session variable when WWF logs in a user, and sets the user as logged out in DUDirectoryPro when WWF logs out a user.

So all you need to do is set the cookie or session variable your site keys off of when WWF logs in and out users.  Very simple actually.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: djlurchg
Date Posted: 11 April 2006 at 4:39pm
Scott:

Are you suggesting using tblAuthor to run my application? Not happening. Major recoding would be required.

Are you suggesting that they log in based on the WWF forum and then the rest of the site? Not happening.

Here is the flow:
user logs on to site, then clicks through to forum after doing other things.

Simple? I don't see it. ???


Posted By: WebWiz-Bruce
Date Posted: 11 April 2006 at 4:51pm
Although I have not yet had time to implement it I do plan on creating an API so that you can interface with an existing members login system.

Version 8 already has modularised the code for the login, database connection, session handing, tracking system, etc. in preparation for this.

The full version 8 to be released in the next few weeks will have support for Windows Authentication / Active Directory (as it was very simple to write), but a login API to integrate into an existing member group will take longer to write so will have to wait for version 8.1.


Posted By: wistex
Date Posted: 11 April 2006 at 5:08pm
Originally posted by djlurchg djlurchg wrote:

Scott:

Are you suggesting using tblAuthor to run my application? Not happening. Major recoding would be required.

Are you suggesting that they log in based on the WWF forum and then the rest of the site? Not happening.

Here is the flow:
user logs on to site, then clicks through to forum after doing other things.

Simple? I don't see it. ???
Well, its not so simple if you are trying to maintain two (2) member tables, yours and WWF's.  But hopefully Borg's upcoming API will help you.
 
I use WWF to handle members because most other scripts handle security poorly and WWF is superior in that area.  I did modify the WWF login scripts so that when you login it takes you back to the page you were on rather than take you to the forum (unless you are logging in from the forum, of course).  So WWF's login becomes the site's login, rather than the forum login.
 
http://www.caribbeanchoice.com/ - http://www.caribbeanchoice.com/ is a good example where if you login from the front page (or any other page for that matter), it takes you back to that page. 
 
I am still running 7.x and am waiting for the final release of 8.0.  Since its a production website with lots of traffic, I am not going to use a Release Candidate (RC) on my site.
 
How are you hooking into WWF now (i.e. before 8.0)?  It shouldn't be that different in 8.0 than in 7.x.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: djlurchg
Date Posted: 11 April 2006 at 5:20pm
I was on V6 :) The reason being that my last attempt to move to 7 was too difficult based on my limited time to implement. I had to migrate to move past some security and stability issues. I had the time this weekend. Turns out it was a MUCH bigger project than I thought. 


Posted By: wistex
Date Posted: 11 April 2006 at 6:21pm
Yes, site integration can be tricky, although sometimes I have found it very simple, assuming you opt for one member table or another rather than try to maintain two of them.
 
I don't have a simple answer for you.  For me it was simple to use WWF as the base, but then again, I had decided that going in.  I didn't have an existing member table I had to integrate when I added WWF to the site.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums


Posted By: Mikey
Date Posted: 11 April 2006 at 8:49pm
Originally posted by wistex wistex wrote:

For me it was simple to use WWF as the base


Same here, Wistex's site gave me a lot of insperation for my site and i have webwiz forums as the base for my site, this way i can garuntee that the security is always going to be far supirior to anything i had before. I sat down mulled over the pros and cons of my DB backend and WWF's DB backend and came up with many pros in favour of WWF's backend.

Shortly after V8 was released so i am currently re-writing my site to fit to the Ver8 DB.

In conclusion, the best way to do intergration would be to start of with WWF and intergrate into it's code. Understandabley this isn't everyones cup of tea but my ASP programming knowledge is very limited so i would have no way of figuring out how to hook an existing userbase into WWF and vise versa.

I wish you luck and would appreciate it if you keep us informed with how you go abput achieving your aim.


-------------
Handyman man?


Posted By: wistex
Date Posted: 13 April 2006 at 3:18am
Thanks, I'm glad my site inspired you. Smile
 
I'm hoping that the transition from 7.x to 8.x won't be so bad.  Hopefully the variables I rely on haven't changed.  I have't installed 8.x yet because I'm waiting for the stable version, like I said before.  I also want to see what the problems are and how to avoid them.  We lose money if out site is down, so I can't afford to make big mistakes.
 
I'm thinking of going to MySQL to get away from MS SQL, but that would mean I would have to rewrite most of the site.  So I may just live with MS SQL for awhile.
 
One interesting thing that I did, that may be useful for some of you to know, is that, for the most part, I never modified any of WWF's tables.  Instead, if I needed to store additional data related to a user, I created a new table and had one field hold the WWF UserID (or sometimes username if I was lazy and the script I purchased used usernames instead of IDs).  In some cases, I added a field so I could create a relationship, but I typically avoided changing any of WWF's tables.
 
And then once I started learning about INNER and OUTER JOINS, it made it so much easier to integrate.  A lot less database queries too.


-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



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