Results 1 to 4 of 4

Thread: Only do something is the visitor is a logged in member

  1. #1
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default Only do something is the visitor is a logged in member

    Code:
    	if ( $_COOKIE['memberID'] > 0 )
    	{
    		Do something for a logged in member
    	}
    	else
                    Do something else if they are not a logged in member
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  2. #2
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default hi

    where does this code need to be added.
    also smoge the earliest posts now come last which is a bit confusing I like it the way it was earlier.
    Thanks

  3. #3
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    Quote Originally Posted by ijk
    where does this code need to be added.
    This is just a code example - you can put it wherever you need to control a not logged in users access.

    Quote Originally Posted by ijk
    also smoge the earliest posts now come last which is a bit confusing I like it the way it was earlier.
    Thanks
    I assume you mean the posts here on ModMySite. You can change this in your user control panel:

    http://www.modmysite.com/profile.php?do=editoptions

    In the "Thread Display Mode" option.

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  4. #4
    ijk
    ijk is offline

    Join Date
    Apr 2005
    Posts
    340

    Default hi

    thanks, much better now with the old posts frist.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Visitor Has sent a greeting
    By Spillthebeans in forum Dolphin General Discussion v6.00 and above
    Replies: 13
    Last Post: 11-19-2009, 02:25 PM
  2. member to be logged in all the time?
    By birkenstam in forum Dolphin General Discussion v5.3 to v5.6.5
    Replies: 13
    Last Post: 07-10-2009, 11:26 PM
  3. Replies: 0
    Last Post: 09-01-2006, 04:06 PM
  4. Non-Logged In Member Can't View Profiles
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 14
    Last Post: 10-30-2005, 11:43 PM
  5. Logged In Users Get Logged Out
    By Smoge in forum Bugs aeDating v4.0.2
    Replies: 3
    Last Post: 10-21-2005, 02:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •