Jump to content
DevFuse Forums
  • Sign in to follow this  

    Days joined showing to guests


    Michael
    • Pending IP.Board Version: IP.Board 4.2.x

    The "days joined" setting is ignored when it comes to guests.

    Manual Patch:

    Open applications/gms/sources/Message/Message.php

    Find:

            /* Above days joined number? */
            if( $this->days_joined && \IPS\Member::loggedIn()->joined->diff( \IPS\DateTime::create() )->days >= $this->days_joined )
            {
                return FALSE;
            }

    Replace With:

            /* Above days joined number? */
            if( !\IPS\Member::loggedIn()->member_id OR ( $this->days_joined && \IPS\Member::loggedIn()->joined->diff( \IPS\DateTime::create() )->days >= $this->days_joined ) )
            {
                return FALSE;
            }

    Save.

    Sign in to follow this  


    User Feedback

    Recommended Comments

    This now conflicts with guests viewing the message.

    Open applications/gms/sources/Message/Message.php

    Find:

            /* Above days joined number? */
            if( !\IPS\Member::loggedIn()->member_id OR ( $this->days_joined && \IPS\Member::loggedIn()->joined->diff( \IPS\DateTime::create() )->days >= $this->days_joined ) )
            {
                return FALSE;
            }

    Replace With:

            /* Above days joined number? */
            if( ( $this->days_joined AND \IPS\Member::loggedIn()->member_id ) && \IPS\Member::loggedIn()->joined->diff( \IPS\DateTime::create() )->days >= $this->days_joined )
            {
                return FALSE;
            }

    Save.

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

    Pending = We are still working on this report.

    Fixed = The issue has been fixed and the resolution will be available in the next version.

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

×
×
  • Create New...