Linux 软件免费装

Random Image widget

开发者 mproulx
更新时间 2009年1月3日 12:38
PHP版本: 2.5 及以上
WordPress版本: 2.7

标签

widget sidebar photos images WordPress WordPress Plugin

下载

1.0 1.1 1.2 1.3 1.4 1.4b 1.5

详情介绍:

The Random Image widget displays a user-selectable number of random photos from a directory on the web server in the sidebar, post, or any other location in a WordPress blog.

安装:

  1. Download and unzip random-image.zip.
  2. Place random-image.php in your blog's plugin subdirectory (e.g., /wp-content/plugins/).
  3. Create a new subdirectory to hold your images (random-image is the recommended name for this directory).
  4. Activate the plugin from the Plugins tab of your blog's administrative panel.
  5. Go to the Widgets page from the Presentation tab.
  6. Click the 'Add' link on the widget to add the widget to the appropriate sidebar.
  7. Click the 'Edit' link on the widget's placeholder to open the settings form.
  8. Use the form to adjust any of the visual settings to fit your theme and preferences and save the sidebar settings. Be sure the directory points to the folder you are using to store your images. If you don't want the plugin to display in the sidebar, uncheck the "Show widget in sidebar" option (you can still use the widget to display images in posts or elsewhere in your page.)
  9. Click the 'Save' button on the settings form.
  10. Click the 'Save Changes' at the bottom of the Current Widgets section. You should be able to see the sidebar on your front page.
  11. If you would like to have multiple copies of the widget on your blog, simply click the 'Add' button again. At this time, you can only use one copy of the widget active if you use it outside of the sidebar.
  12. To display in a post or page, add a line in your post that says (randomimage).
  13. To display elsewhere in a page, you can call the display function in the appropriate php file of your theme using the function echo_random_image().