I was the happiest camper on earth. So I found this great forum YAF (woo hoo)........but didnt have a way to make it work with my existing ASP.NET member based photo / friends site that I had compeletely built from scratch. I searched and I searched and i figured I would just try to make my own. Now bear with me this is a work in progress. The details are below:
YAFblend 1.3.8 (Updated 12.27.2006)
Download Here: YAFblend 1.3.8
Example Here: YAFblend.YAFuser Sample
Fixes
-----------------------------------------------------------------------
If some users were getting this error when using yafblend.
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Here is the solution. The error was occuring due to the way I was checking for Private Messages. Any user who had more than one PM would get this error on any page that contained a YAFuser instance. Rookie mistake. This problem has been addressed in the above version.
What is it?
-----------------------------------------------------------------------
YAFblend is an ASP.NET DLL that retrieves the settings/authentication status of the user currently signed into YetAnotherForum allowing for seamless integration of YAF into an existing ASP.NET site. Now bear with me, YAFblend is still in the very early stages but is powerful enough to be used safely on a live site. I will be working on it alot so be sure to check back for updates.
How do i use it?
-----------------------------------------------------------------------
1. Drop YAFblend.dll into your ASP.NET Website's ~/Bin directory
2. Import the YAFblend Namespace on any page you wish to retrieve user information
3. To access the current YAF user use the YAFuser class:
Usage:
-----------------------------------------------------------------------
Dim _yu as New YAFuser(WebConfigAppSettingKey)
WebConfigAppSettingKey = Your db connection string OR AppSetting Key in the web.config file that contains the DB connection string to your YAF database.
web.config (Optional)
----------
page.aspx.vb OR page.aspx.cs
----------------------------
Dim _yu as New YAFuser( "YAFConnectionStringAppSettingsWebConfigKey" )
YAFblend.YAFuser Structure
---------------------------------
New(strYAFConnectionStringKey as string, Optional blnGetAvaterImage as boolean = False)
Booleans
YAFblend.YAFuser.Authenticated 'Is a user logged in
YAFblend.YAFuser.NewMail 'Does the user have any new Private messages
YAFblend.YAFuser.PMNotification 'Does the user want to be notified of PM's thru email
YAFblend.YAFuser.GotExtras 'Whether the Current YAF user extra information Datatable has been filled
Strings
YAFblend.YAFuser.AIM
YAFblend.YAFuser.Avatar
YAFblend.YAFuser.Email
YAFblend.YAFuser.HomePage
YAFblend.YAFuser.ICQ
YAFblend.YAFuser.Interests
YAFblend.YAFuser.IP
YAFblend.YAFuser.LanguageFile
YAFblend.YAFuser.Location
YAFblend.YAFuser.MSN
YAFblend.YAFuser.Name 'YAF Username (very helpful)
YAFblend.YAFuser.Occupation
YAFblend.YAFuser.RealName
YAFblend.YAFuser.Signature
YAFblend.YAFuser.ThemeFile
YAFblend.YAFuser.Weblog
YAFblend.YAFuser.YIM
Integers
YAFblend.YAFuser.BoardID
YAFblend.YAFuser.Gender
YAFblend.YAFuser.Flags
YAFblend.YAFuser.NumPosts
YAFblend.YAFuser.Points
YAFblend.YAFuser.RankID
YAFblend.YAFuser.TimeZone
YAFblend.YAFuser.UserID
Dates
YAFblend.YAFuser.Joined
YAFblend.YAFuser.LastVisit
YAFblend.YAFuser.Suspended
Byte()
YAFblend.YAFuser.AvatarImage
Datatables
YAFblend.YAFuser.Extras
Methods
Sub Touch() - Updates users active status outside the forum. Automatically executed when an instance is created. No custom update stored procedure needed anymore.
Sub GetExtras(strSQL) - Fills the YAFblend.YAFuser.Extras DataTable with the records returned from the strSQL line that gets executed.
*NOTE* Use @UserID in the strSQL string where you want the YAFuser Instance UserID substituted. ie: strSQL = "Select * from ExtraUserInfo where UserID=@UserID"
Coming Soon
-----------------------------------------------------------------------
Profile Updating right from the YAFuser instance
Ability to log in from a blank instance [Credits: Blackwater]
Edited by user
18 years ago |
Reason: Not specified