The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Determine whether a user is logged in

3 posters

Go down

Solved Determine whether a user is logged in

Post by darylldelfin October 13th 2008, 12:23 pm

Is there a code for that ? i mean , what are the variables ?

example :

if (user.isloggedin){
//codes here
}
else{
alert('please register');
}

just tryin my luck here .. :]]

click my website to view my forumotion forum .. :]]


Last edited by darylldelfin on November 14th 2008, 11:28 am; edited 1 time in total
darylldelfin
darylldelfin
Forumember

Posts : 47
Reputation : 0
Language : english

http://www.hidecodesgalore.org

Back to top Go down

Solved Re: Determine whether a user is logged in

Post by darylldelfin October 22nd 2008, 5:01 pm

after two weeks ..
darylldelfin
darylldelfin
Forumember

Posts : 47
Reputation : 0
Language : english

http://www.hidecodesgalore.org

Back to top Go down

Solved Re: Determine whether a user is logged in

Post by darylldelfin October 29th 2008, 1:21 pm

one month .
darylldelfin
darylldelfin
Forumember

Posts : 47
Reputation : 0
Language : english

http://www.hidecodesgalore.org

Back to top Go down

Solved Re: Determine whether a user is logged in

Post by Adiex October 29th 2008, 2:53 pm

hello,

i don't think such script can be apply on forumotion because we dont have direct access on php database. but still there is a way to make similar thing without require coding.

i suggest you to make a new portal block and set permission to guest only. put welcoming message there with link to register or login.

for example :

Determine whether a user is logged in 1212110
translation :
welcome guest, please register before can join our community or just login if you already have an account

it not much but i think it only way to do it Smile
Adiex
Adiex
Active Poster

Male Posts : 1014
Reputation : 33
Language : er?
Location : back alive & kicking xD

Back to top Go down

Solved Re: Determine whether a user is logged in

Post by darylldelfin November 13th 2008, 6:58 am

hey there thanks for attending to my problem . Smile

i already had solution to my problem . i managed to do different scripts one for members and one for guests ..but not by a portal .. i put it at every page of my forum .. i did it by widgets .. banana

take a look :


http://hidecodesgalore.forumotion.net/forum.htm

there will be a different floating bar if you are a registered member already . Smile


ps. i dont have/bought any credits yet .. T_T
darylldelfin
darylldelfin
Forumember

Posts : 47
Reputation : 0
Language : english

http://www.hidecodesgalore.org

Back to top Go down

Solved Re: Determine whether a user is logged in

Post by Nessa November 15th 2008, 12:13 pm

Since this problem appears to be resolved, I will lock this topic now.



=> Locked
Nessa
Nessa
Energetic

Female Posts : 6203
Reputation : 128
Language : English

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum