Viewing 4 replies - 1 through 4 (of 4 total)
  • <?php
    if(!is_user_logged_in()):
    ?>
    Show your "not logged in" content here
    <?php endif; ?>
    Thread Starter miketopher

    (@miketopher)

    im trying to show content which is NOT SHOWN to users who are logged out, can i just change the word in, to out, then all users will see it?

    also how would i make it so users who are logged in, as well as not logged in, see it?

    Thanks !

    Thread Starter miketopher

    (@miketopher)

    the plugin im using is inlineupload in its code is

    DEFINE(“IU_UPLOADID”, “1”);
    DEFINE(“IU_UPLOADTITLE”, __(‘Upload a file’, ‘inline-upload’));
    DEFINE(“IU_SELECTBUTTON”, __(‘Select File’, ‘inline-upload’));
    DEFINE(“IU_UPLOADBUTTON”, __(‘Upload File’, ‘inline-upload’));
    DEFINE(“IU_UPLOADROLE”, “administrator”);
    DEFINE(“IU_UPLOADPATH”, ‘uploads’);
    DEFINE(“IU_CREATEPATH”, “false”);
    DEFINE(“IU_UPLOADPATTERNS”, “*.*”);

    what to i put where it says administrator to make all people be able to upload? when their not logged in

    <?php
    if ( is_user_logged_in() ) {
        /* Your "logged in" content here */
    }
    ?>

    Assuming I’m understanding correctly, it’s not possible to detect if a visitor is also a user if they’re not logged in. If you have content that is only shown to users, they have to be logged in. If you meant content that is shown to everyone…then you just include it without needing to check for anything.

    Your last post is best asked of the plugin’s author. However, reading the plugin’s page reveals that if you set it to “all” it should allow uploads from everyone, even guests. It’s never a good idea to allow random people to upload potentially unsafe files though.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘what "Role" is a person who is NOT logged in?’ is closed to new replies.