uticket
2006-12-14T17:35:41Z
Hi, YAFAddict, thanks a lot for your source code. It is very helpful.

May I ask how you identify the current user in your source code.

I guess you are connecting to Activer_User table, and then use the session key to query the table? Am I right, or there is other way to handle?

I am looking forward to your new release!

have a great holiday!



YAFaddict wrote:

uticket wrote:

Hi, YAFaddict:

Can you give me a little more hints on how to use your dll? I can comply after adding your dll, but still can not get the user informaiton from YAF. I put both my own web site project and YAF under same directory same solution.

Thanks!



Hey uticket,

Sure..here is a sample page. Make sure you change the "YAFConnectionString" parameter to whatever app settings key that you have defined in your web.config file.


<%@ Page Language="VB" %>
<%@ Import Namespace="YAFblend" %>

<script runat="server">
    Private Const PRINT_FOR_HTML = True
    
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
        Dim CurrentYAFuser As New YAFuser("YAFConnectionString")
        
        lblYAFname.Text = CurrentYAFuser.Name
        lblYAFdetails.Text = CurrentYAFuser.PrintMe(PRINT_FOR_HTML) 'True parameter uses <br /> instead of normal carriage returns
        
        If CurrentYAFuser.NewMail Then
            lblYAFmail.Text = "You've got mail!"
        Else
            lblYAFmail.Text = "You do not have mail!"
        End If
    End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
        Username: <asp:Label ID="lblYAFname" runat="server"></asp:Label><br />
        <br />
        User Details:<br />
        <asp:Label ID="lblYAFdetails" runat="server"></asp:Label><br />
        <br />
        Mail Status:<br />
        <asp:Label ID="lblYAFmail" runat="server"></asp:Label>        
    </form>
</body>
</html>




guest
2006-12-17T23:35:55Z
Hey YAFAddict,
Just wondering how you're going with YAFBlend? I've been checking back here daily! :wink:
No pressure though.. I know it's a busy time of year.

Cheers,
Blackwater
uticket
2006-12-19T09:55:44Z
I also check back daily.....


Blackwater wrote:

Hey YAFAddict,
Just wondering how you're going with YAFBlend? I've been checking back here daily! :wink:
No pressure though.. I know it's a busy time of year.

Cheers,
Blackwater

:cry: :cry: :cry:
guest
2006-12-19T20:12:35Z
Addict, this module is almost stupid useful. Thank you for all the time you've put into it. If you are able, as has been suggested, to make YAFBlend auto-log your forum account based on another ASP.net login status, this would be pretty much the greatest thing of all time. Next to panda bears, of course. Awesome job; I'll be using this once I get my head out of PHP mode.
guest
2006-12-20T09:58:52Z
Thx for all the patience/compliments gents. It really is my pleasure. I have the next 5 days off so I will be really digging into it hardcore. I haven't had much time to work on anything in the last week b/c we are so busy at work here this time of year. I shall be in touch
guest
2006-12-20T12:05:21Z
richmix wrote:

Addict, this module is almost stupid useful. Thank you for all the time you've put into it. If you are able, as has been suggested, to make YAFBlend auto-log your forum account based on another ASP.net login status, this would be pretty much the greatest thing of all time. Next to panda bears, of course. Awesome job; I'll be using this once I get my head out of PHP mode.



And yes I second that. Panda's do f'n rule.
guest
2006-12-20T15:24:32Z
Hey YAFaddict, happy holidays!

Any updates for YAFblend?
I don't mean to seem too impatient, but I'd love to fool around with YAFblend a bit while I'm off work.

Cheers,
Blackwater
guest
2006-12-30T05:19:29Z
Hey YAFaddict,

thank you for your work at this very helpful program.
Unfortunately it is not working correctly for me:

I am using your sample and when I am not logged in the sample page it is working correctly for the user Guest. But when I am logged in in YAF the page generates following error:

Procedure 'dbo.UF_BasicMaintenance' was not found
Source Error:

Line 6:
Line 7: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Line 8: Dim CurrentYAFuser As New YAFuser("YAFConnectionString" )
Line 9:
Line 10: lblYAFname.Text = CurrentYAFuser.Name

It is possible to reproduce this error.
For info: I am not using YAF in the web root but I am using it in a subfolder of my webpage.

I hope you can help me with this issue.

Thanks and cheers
Checker
guest
2007-01-02T12:34:47Z
Heey checker. I fixed this. Go ahead and redownload the dll.

Sorry for the mixup!
guest
2007-01-03T01:14:37Z
Hey YAFaddict,

thanks a lot. Now it is working.
Is it planned for the next release to implement a fuction where the group name of the logged-in-user could be displayed also?

Thanks again
checker

YAFaddict wrote:

Heey checker. I fixed this. Go ahead and redownload the dll.

Sorry for the mixup!

guest
2007-01-04T13:12:15Z
Great. Hey I'm open to any suggestions and thats a really good idea. I'll have the instance populate a string array with the different group names. Currenntly I'm working on a login feature that allows you to log in right from the instance. Its proving to be harder than I anticipated but I i know I'll get thru it. If you or anyone else has any other suggestions then dont hesitate to ask me to include them. Once this project is a little more matured I will open it up completely.
guest
2007-01-05T03:57:29Z
Yeah, perfect. It would be very nice to use the user administration from YAF and logingin from somewhere in the own page (where YAF is part of). For instance you have in the masterpage.master Username/Password boxes and if you login it refers to the YAF usertable and uses the authorisation functions. I hope you are talking about this feature on which you are working. That would be a very helpful option because then you don't need to go via the Forum to login or to have two parallel "user authentications" to handle.
I am really looking forward to this.
BTW: do you know how make the YAF menu bar (Login, Register, etc) unvisible for all users (also guests) beside the admin?


YAFaddict wrote:

Great. Hey I'm open to any suggestions and thats a really good idea. I'll have the instance populate a string array with the different group names. Currenntly I'm working on a login feature that allows you to log in right from the instance. Its proving to be harder than I anticipated but I i know I'll get thru it. If you or anyone else has any other suggestions then dont hesitate to ask me to include them. Once this project is a little more matured I will open it up completely.

guest
2007-01-08T00:51:22Z
hi
on the root of solution i got a default page and under my solution i got the YAF website project. now i am using YAFBLEND on my default page to get the logged in user information but it shows Guest and that user is not authenticated. i have logged into the YAF forum on other page and on other window i am checking the YAFBLEND. but its shows nothing but guest and notauthenticated.
plz help
cheers
guest
2007-01-09T10:42:29Z
zeee wrote:

hi
on the root of solution i got a default page and under my solution i got the YAF website project. now i am using YAFBLEND on my default page to get the logged in user information but it shows Guest and that user is not authenticated. i have logged into the YAF forum on other page and on other window i am checking the YAFBLEND. but its shows nothing but guest and notauthenticated.
plz help
cheers



Send you code. If you followed the Sample above it should work fine.
guest
2007-02-01T07:40:10Z
Hi YAFaddict,

it's me again and I am still trying to use the user authentication out of my website with the forum login infos plus YAFblend.
I am calling the functions from yaf in my login page (nearly like zeee describes it on his page) and it works sometimes and sometimes I get an error from yafBlend when I am logging in:
Violence of the PRIMARY KEY 'PK_yaf_Active'. A double key could not inserted in the 'dbo.yaf_Active'-object.
And the error occures here: Dim CurrentYAFuser As New YAFblend.YAFuser("YAFConnectionString" )

Please could you give me an advice what your function is doing? I think your funktion doesn't insert a recordset in the yaf_Active table, right? But the error look like this for me

I am working on this issue some weeks, but I cannot find the problem.

Thanks and cheers
checker

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

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved