Šī spraudnis nav atjaunināts vairāk kā divus gadus. Varbūt, tas vairs netiek uzturēts, nesaņemt atbalstu un tam var būt saderības problēmas ar jaunākām WordPress versijām.

Author: Simon Goodchild

Apraksts

Requires BuddyPress.

Allows a page or post to display the most recently logged in members with how long since they last did any activity on the site. Options include showing a link to Private Message the member if logged in, the field to display as the members name and so on.

A live demonstration is available at BlueFlipper Diving

All options:

  1. To change the number of members shown (defaults to 5):

    [hts-displaymembers count=10]

  2. To change the displayed field (defaults to Display Name):

    [hts-displaymembers count=10 display=user_nicename]

  3. You can use any field in the wp_users table or wp_usermeta table, for example:

  • display_name
  • user_nicename
  • user_email
  • user_url
  • first_name
  • last_name
  • nickname
  1. To change the size of the avatar (defaults to 50px):

    [hts-displaymembers avatar_size=128]

  2. To not display the email icon (default to true):

    [hts-displaymembers emailicon=false]

  3. To not display the email link (default to true):

    [hts-displaymembers emaillink=false]

  4. To display debug information (default to false):

    [hts-displaymembers debug=true]

Ekrānuzņēmumi

  • Screenshot of a recent active member list
  • Bigger screenshot showing within a larger page

Uzstādīšana

  1. Upload the plug-in folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Including in a page or post

To call it with a shortcode, put the following in a page or post:

  [hts-displaymembers]

To add options as in the description, pass as parameters.
See plug-in description for all options. eg:

  [hts-displaymembers count=10 display=user_nicename]

Including in a theme

To call it from within a theme, you have to wrap it in this PHP function:

<?php echo do_shortcode('[hts-displaymembers count="10" field="display_name"]'); ?>

BUJ

Q. How do I change the style of the list?
A. In the plugin folder is a .css file that you can edit, remember to keep your changes and re-apply them after updating the plugin in future.

You can confirm the path for the file by switching on the debug information (see Plug-in
description) and looking for the value for STYLESHEETPATH. This is the file you need to create.

Atsauksmes

Par šo spraudni nav atsauksmju.

Autori un izstrādātāji

“Author: Simon Goodchild” ir atvērtā pirmkoda programmatūra. Šo spraudni ir veidojuši šādi cilvēki.

Līdzdalībnieki

Tulkot “Author: Simon Goodchild&#8221 savā valodā.

Vai jūs interesē attīstība?

Pārlūkojiet kodu, apmeklējiet SVN krātuvi vai abonējiet attīstības žurnālu, ko izveidojis RSS.

Izmaiņu žurnāls

0.1

First version, no changes yet

0.2

  1. Added check for BuddyPress installation
  2. Fixed debug check for stylesheet availability
  3. Updated readme to state BuddyPress is required