WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Users List
Where to put code? (3 posts)

  1. Guldkant
    Member
    Posted 1 year ago #

    Hi!

    I have no clue at all about coding.
    I would like to set up a menu page where you can click to see the list of all registered members at my site.

    I tried to put this code "<?php wpul_get_users(); ?>" in the area where I write the text when I create a new page.

    Cause I donĀ“t want to let all that visits the site be able to see the list.
    Otherwise where to put the code???

    http://wordpress.org/extend/plugins/wordpress-users-list/

  2. quartz
    Member
    Plugin Author

    Posted 1 year ago #

    Hi you can't put php code and execute it in your text page unless you add a plugin that wiil do that.

    I was able to load the list from the text page when using plug-ins Exec-PHP and WP-No-Format with this text in html in editor.

    <!-- noformat on -->
    <style>

    #wpul img
    {
    padding:2px;
    float: left;
    }
    #wpul ul { margin-left: 20px; margin-bottom: 0; }
    #wpul li { padding: 0;}
    #wpul
    {
    font-size:12px;
    color:#f00;
    padding:3px;
    }
    #wpul .wpuluserbox {
    background-color: #fff;
    color:#000;
    border: 1px solid black;
    margin:2px;

    }
    #wpul .wpulusername {
    width:99%;
    vertical-align: middle;
    float:left;
    color: #000;
    margin:2px;
    }
    #wpul .username {
    font-weight:bold;
    }
    #wpul .registered {
    color:#ccc;
    font-size:10px;
    }
    #wpul a:link {
    color: #000;
    }
    #wpul a:visited {
    color: goldenrod;
    }
    #wpul a:hover {
    color: goldenrod;
    }
    #wpul a:active {
    color: #f00;
    }
    </style>
    <?php wpul_get_users(); ?>
    <!-- noformat off -->

    Steve

  3. quartz
    Member
    Plugin Author

    Posted 1 year ago #

    The default usage is paste this code in the theme file where you want the list to be displayed. <?php wpul_get_users(); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.