وضاحت
It can be used to avoid browsers cache by inserting a random number.
For instance, http://my_url?[random-number]” could generate http://my_url?134548.
[random-number from=”2″ to=”72″ format=”%b”]%d minutes[/random-number]
output: an integer value between 2 & 72 followed by the word ‘minutes’
This plugin is a sample on how to create a plugin which:
* supports internationalization,
* provides an option screen,
* saves some options,
* use images,
* replaces a tag.
By the way, it generates randomized numbers ;o)
If you need more functionalities, feel free to ask (email/blog)…
A post with a French tutorial is available here.
Supported languages
- English
- French
- Russian (Thanks to Vladimir / ShinePHP.com)
تصوير
انسٽاليشن
This section describes how to install the plugin and get it working.
- Upload folders and files to the
/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
[random-number]
in a post (if you haven’t changed the tag caption in the options)
FAQ
Does it work with WordPress MU?
- Yes
Which languages are included when I install the plugin?
- English
- French
- Russian (Thanks to Vladimir / ShinePHP.com)
جائزا
ھن پلگ ان لاءِ ڪي به رايا ناھن.
تعاون ڪندڙ & ڊولپرز
“Random Number Generator” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.
تعاون ڪندڙترجمو ڪريو “Random Number Generator” توهان جي ٻولي ۾.
ڊولپمينٽ ۾ دلچسپي؟
ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.
لاگ تبدیل ڪريو
1.3.2
- Submenu was displayed in Dashboard menu when not on RNG options page: fixed
1.3.1
- The previous page isn’t anymore obsolete but it’s still recommended to navigate to the new one (from the new submenu).
1.3.0
- Parent menu can be changed in options page. Warning, after saving, the previous page will be obsolete and you will have to navigate to the new one (from the new submenu).
- JavaScript method renamed to avoid potential issue
1.2.3
- Links added under the plugin description in the plugins management page
- Description translated
1.2.2
- More comments examples in the source code for translators / used with param –add-comments=Tr.:
- Russian screenshot added
1.2.1
- Russian added in languages (Thanks to Vladimir / ShinePHP.com)
- Submenu capability updated to ‘manage_options’ ; script called even if not admin ; visible in ‘WordPress Admin Bar’
1.2.0
- A direct link to the editor is available in the options plugin page
- Images added in the options page (settings icon, a dice)
- format used in content can include others shortcode tags
- Shortcode tag can be customized
1.1.0
- Can generate till 5 numbers within the same format, ie: ‘%d-%d-%d%-d-%d’
- Output an error if format is invalid
- New screenshot available and French sample
1.0.1
- Dynamic path extension really fixed
1.0.0
- Tag supports attributes ([from][to][format]) and a content for its format
- Dynamic path extension fixed
- UTF-8 Source files (instead of ISO)
0.0.1
- First release