Determine whether a user is logged in Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Determine whether a user is logged in

    darylldelfin
    darylldelfin
    Forumember


    Posts : 47
    Reputation : 0
    Language : english

    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

    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

    Solved Re: Determine whether a user is logged in

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

    one month .
    Adiex
    Adiex
    Active Poster


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

    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
    darylldelfin
    darylldelfin
    Forumember


    Posts : 47
    Reputation : 0
    Language : english

    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
    Nessa
    Nessa
    Energetic


    Female Posts : 6203
    Reputation : 128
    Language : English

    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