YAFLogo

Gullanian
  • Gullanian
  • 62% (Friendly)
  • YAF Camper Topic Starter
14 years ago
Got YAF running on my site fine, it's super, thanks!

One quick question, I want to base my sites membership system on YAF, how can I tell on each of my own pages if a user is currently logged in or not?

Sponsor
squirrel
14 years ago

Got YAF running on my site fine, it's super, thanks!

One quick question, I want to base my sites membership system on YAF, how can I tell on each of my own pages if a user is currently logged in or not?

Originally Posted by: Gullanian 

There was another post here recently that has a solution to this -- hit up the search feature and if you can't find it let me know I'll see if I can hunt it down.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Gullanian
  • Gullanian
  • 62% (Friendly)
  • YAF Camper Topic Starter
14 years ago
I had a look but couldn't see anything answered sorry 😞
squirrel
14 years ago

I had a look but couldn't see anything answered sorry 😞

Originally Posted by: Gullanian 

No Problem -- I'll see if I can dig it up 🙂


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Gullanian
  • Gullanian
  • 62% (Friendly)
  • YAF Camper Topic Starter
14 years ago
Mainly just being able to know if a user is logged in or not is the first thing
squirrel
14 years ago

Mainly just being able to know if a user is logged in or not is the first thing

Originally Posted by: Gullanian 


if (!this.PageContext.IsGuest)
I believe would tell you if the visitor is a guest or not. If they're not a guest, then I would think they are a logged in member.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend 
Gullanian
  • Gullanian
  • 62% (Friendly)
  • YAF Camper Topic Starter
14 years ago
Just putting that in my code doesn't work, do I need to reference anything specifically from my pages?
squirrel
14 years ago

Just putting that in my code doesn't work, do I need to reference anything specifically from my pages?

Originally Posted by: Gullanian 

You have to reference YAF. This gets beyond what I normally work with. You will need to look at integration topics regarding what references you need to add to your page in order for YAF variables to be recognized. There are some other members who have done more with this that might jump in and help.


If you can't find it using the forum search, try my signature link -- searches this site using Google: Google is my Friend