The NP_Random plugin displays a random line of text from a text file.
| General Plugin info | |
|---|---|
| Authors: | Mark Fulton (www.slashbomb.com), Edmond Hui (admun), Kai Greve (kgblog.de) |
| Current Version: | 1.3 |
| Download: | np_random_v13.zip [2kb with 2 file] |
| Code: | code from NP_Random |
| Demo: | - |
| Forum Thread: | Related forum thread |
Displays a random text from a file by using <%Random()> or <%Random(random.txt)>. Be sure to upload a text file called “random.txt” to your nucleus plugin directory in the subfolder random. Each line of the text file is considered as an entry.
Note: You MUST Capitalize the R in random, as show above, or you will get a denied message on your blog.~Joshg678
Download the zip file, extract it and upload it to your plugin directory. Then install the plugin with the Nucleus Plugin Manager.
Insert the SkinVar <%Random()> or <%Random(random.txt)> to your skin at the place where the random entry should appear.
Edit the file 'random.txt' for your purposes. The file must be a textfile.
Each line of the text file is considered an entry.
You can specify the filename with <%Random(filename)%>.
For example:
You can use multiple instances of this plugin simply by using different files (e.g. random.txt and random2.txt) and puting the skinvars on different places of your template.
NP_Random version 1.3 works with Nucleus CMS 3.31 - 2007-10-28 Armon
:: Plugins ::