YAFLogo

karcom2007
  • karcom2007
  • 57.8% (Neutral)
  • YAF Camper Topic Starter
15 years ago
Even though YAF 1.9.3 with integration is currently being developed, I thought I would post this integration solution in a mixed environment (Classic ASP to YAF 1.9.6 ASP.NET). I am not going to provide code specifics unless requested. But I will give you the problem and the solution to hopefully provide direction to others facing the same integration problem. This solution will require code changes, custom dev and SQL dev. Again... as always... kudos for the dev team working on YAF! - Aloha

Problem:

- I have a customer portal that has it's own login.
- The website is in classic ASP.
- The existing membership data is stored in a SQL database.
- Customer accounts get disabled.
- I wanted to provide an easy way to launch the forum from the customer portal, yet still have the YAF login for direct access.

Solution:

- Create a Linked Server connection between YAF DB and Customer Portal DB
- Adjust the yaf_user_login stored procedure to check to see if user exists in customer portal DB (compare it to the user in YAF, disabled, etc., then call yaf_user_save, passing in the user data retrieved from the customer portal DB).
- Remove all instances of allowing a user to register or update their profile in YAF.
- In the login page, use javascript to get the GMT Offset (then multiply by a -1) because YAF needs the users TimeZone to display correct times of posts.
- I created another posting login redirect accessible from the customer portal... that would allow users to access the portal without logging in.
Sponsor

Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Did you come to any conclusions on this? Do you need further direction?
sagari
  • sagari
  • 51.2% (Neutral)
  • YAF Forumling
14 years ago
Hi,

I have the same problem you mentioned

with solution,(ie. having single login for portal
website and yaf forum) can you provide me the

nessasary code required for that.


Thankyou.
karcom2007
  • karcom2007
  • 57.8% (Neutral)
  • YAF Camper Topic Starter
14 years ago
I have to look around for the code, to see if I have it locally. Unfortunately, I don't have access to that specific installation.

The solution goes beyond just code changes. In fact, most of the changes in YAF are at the sproc level in yaf_user_login and creating linked servers between your portal DB and the YAF DB.

I will try and dig something up for you, but this was very custom. It has changes all throughout YAF. I hope that the "Solution" in the beginning of this thread will give you some direction on how you could approach your problem.

I had an ASP (portal) to ASP.NET (YAF) problem.

Let me know if you have any other questions.

Aloha, KR
srelliott
12 years ago
Is there any detailed instructions on how to accomplish this? I have a classic asp website that I want to add the asp.net YAF forum to, so when a user is logged into the classic asp website...they won't have to login to the forum, but I don't know much about classic asp (started learning programming with asp.net). I've learned a decent amount about asp.net lately, but there seems to be quite a bit difference between the two languages as I look back at classic asp code and it doesn't seem as easy when it comes to membership stuff.

karcom2007
  • karcom2007
  • 57.8% (Neutral)
  • YAF Camper Topic Starter
12 years ago
Hi srelliott,

There are numerous solutions that would allow you to login to the .NET YAF portal while still having a classic ASP site. It was over 3 years ago since I implemented that solution... but it might give you some ideas on how to accomplish it. The main issue with what I was dealing with was that we needed to keep the customer portal login. That is why we had to modify the yaf user login sproc to check credentials in the existing DB.

There could be other ways to accomplish it... maybe a web service?

karcom2007
srelliott
12 years ago
Originally Posted by: karcom2007 

Hi srelliott,

There are numerous solutions that would allow you to login to the .NET YAF portal while still having a classic ASP site. It was over 3 years ago since I implemented that solution... but it might give you some ideas on how to accomplish it. The main issue with what I was dealing with was that we needed to keep the customer portal login. That is why we had to modify the yaf user login sproc to check credentials in the existing DB.

There could be other ways to accomplish it... maybe a web service?

karcom2007



Thanks for the reply. I'm just clueless on what I need to do, really. Any examples or tutorials setup on this, that you're aware of? I have a classifieds site that has been up for about 10 yrs, and it is in asp, but I want to add this forum to it. I just want the users to not have to login separately. Just login to the classifieds site and be able to go to the forum and already be logged in. And I guess it would be nice if the forum would show the stats from the classifieds db (10,000 registered users...how many are logged into the site..etc.). Like I said, I don't know much about asp, so I'm looking for some pretty detailed examples or something.
guest
12 years ago
Hello,

I am looking to do the same thing after having installed a fresh 1.9.5 FINAL Yaf.

http://www.deathblow.cc/ 

As you see, i got a login on the top and would like remove all links from Yaf and manage it in the portal.

Some examples or documentations for my poor asp.net skills can be studied carrefuly.


Thanks.
guest
12 years ago
Asking to a bump.

Is it possible to have a code example for usage on a portal of it's own login, making custom registration, change password, search, profile, inBox, ... pages, what stored procedure to use, what var have to be created In code behind, how to know if a user is logged in or not.

I think Yaf is a wonderfull project, but the big problem for two weeks passed in your forums is : I found No documentation!

And for Someone who is not a code killer, i feel a little lost.

Everywhere it is wrote that Wiki is obsolete and to look On forums for any answers, Yaf code have been changed a lot often since the created date of the post, and only answers i find on forums was created 1 or 2 years ago, sometimes more, and don't give really any real answer.. background message is ... find by yourself.

http://wiki.yetanotherforum.net/AspNetMembershipIntegration.ashx 

Fantastic ...

Well, i am not the one who did the code of forum and at school, my teacher teach me to use documentation to do something with an existing code. That's normal...

Here, nothing.

I am ready to contribute to project and help maintain documentation files for the community if needed. but it is for sure documentation is laggy here. And i'm sure too many peoples must be disapointed on your forums with Yaf project and will leave finally to use something else.

please help me to get a start point working with Yaf namespace please.
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
12 years ago
This is one of the least productive threads I've had the misfortune of having to read through on this forum.

It's officially locked. If anyone wants to start these types of threads again, please provide solutions.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button