Categories
Package/plugin/module WordPress

Random File v1.6

I’d like to announce the official release of the updated Random File plugin (v1.6) for WordPress.

Retrieve the name, path, or link to a randomly chosen file in a specified directory.

Feature update. Highlights: added c2c_random_files() to retrieve array of random unique files; added hooks to allow customizations; verified WP 3.0 compatibility.

For more details, instructions, screenshots, and the download link, visit the plugin’s official homepage at :
coffee2code.com/wp-plugins/random-file/.

Comments welcome on this post for this version of the plugin. Comments will be closed once this release has been superseded by another.

Read more for a detailed ChangeLog of the release.

Detailed ChangeLog

These are the detailed changes, which may or may not make sense to you depending on your familiarity with the previous features and internals of the plugin.

  • Add c2c_random_files() to retrieve array of random unique files
  • Add hooks ‘c2c_random_file’ (filter) and ‘c2c_random_files’ (filter) to respond to the function of the same name so that users can use the apply_filters() notation for invoking template tags
  • Use get_option() instead of deprecated get_settings()
  • Wrap functions in if(!function_exists()) check
  • Remove docs from top of plugin file (all that and more are in readme.txt)
  • Tweak description
  • Note compatibility with WP 3.0+
  • Minor tweaks to code formatting (spacing)
  • Add Filters and Upgrade Notice sections to readme.txt
  • Remove trailing whitespace

4 replies on “Random File v1.6”

hi
I have tried to use your plugin but think I am doing something wrong, as when I go to the page it shows an error message.

I place the code as follows in the sidebar-custom.php

but get an error message as follows online:

Parse error: syntax error, unexpected ‘;’, expecting ‘{‘ in /public_html/test/wp-content/themes/twentyten 2/sidebar-custom.php on line 15

If you can spot where I have gone wrong that would be great

Hi Chris: You’ll have to repost the code you were using. Put it within code tags, i.e <code>Your code goes here</code>. Or paste the code (even the whole file would be best) into something like pastie.org and leave the link to it here.

Hi Scott! Thanks for an awesome, simple plugin!

I am really new to php, being an .net coder trying out WordPress for some projects. I installed your plugin and got it working as I wanted on the first try, super nice!

Will definately look into your other plugins.
– Niklas

Hi Scott – I’ve been a happy and appreciative Random File user for some time.

Before I test and struggle – can you advise if Random File is going to have any issues with a WP Multisite install and any special instructions?

I’m using a multisite subdomain setup with custom domain URLs so that www.domain.com is really domain.mainsite.com

I will have the directory to call files in the root of the mainsite

THANKS

Comments are closed.