Simple Random Plugin 1.2
This plugin allows the display of randomised content within your template. Add's a 'Random Content' tab to the admin section for you to enter your random content whatever it may be. This plugin should allow for almost anything including <img> tags, flash files essentially anything although it was made for text.
Update 1.2:
- Menu item now activates when on the random page (yay)
Update 1.1:
- Removed 'sample display code from creation section
- Fixed bug in error checking duing meta file creation
Usage:
1. Extract folder and place all files into /plugin/ folder.
2. Refresh page to install new admin page, and copy sample xml files into data/other
3. Go to 'settings' page to enter the number of random quotes you would like to have as a maximum (will be made redundant in version 2)
4. Go to "Random Content' and enter the title and description of your content. Just ignore one of the fields if you only want a single piece of content displaying as it will print whatever you enter.
5. Place the following code into your template:
Option: The '2' allows you select the order of the comments display.
1: title, then description
2: description, then title
-- I may expand on option displays in the future. (including only showing one)
-----------------------------------------------------------------------------------------------
Please note i do not guarentee 100% perfection, but please do let me know if theres any obvious bugs and i'll see what i can do.
This plugin allows the display of randomised content within your template. Add's a 'Random Content' tab to the admin section for you to enter your random content whatever it may be. This plugin should allow for almost anything including <img> tags, flash files essentially anything although it was made for text.
Update 1.2:
- Menu item now activates when on the random page (yay)
Update 1.1:
- Removed 'sample display code from creation section
- Fixed bug in error checking duing meta file creation
Usage:
1. Extract folder and place all files into /plugin/ folder.
2. Refresh page to install new admin page, and copy sample xml files into data/other
3. Go to 'settings' page to enter the number of random quotes you would like to have as a maximum (will be made redundant in version 2)
4. Go to "Random Content' and enter the title and description of your content. Just ignore one of the fields if you only want a single piece of content displaying as it will print whatever you enter.
5. Place the following code into your template:
Code:
<?php
if(function_exists("simple_random_display")) {
simple_random_display("2");
}
?>
Option: The '2' allows you select the order of the comments display.
1: title, then description
2: description, then title
-- I may expand on option displays in the future. (including only showing one)
-----------------------------------------------------------------------------------------------
Please note i do not guarentee 100% perfection, but please do let me know if theres any obvious bugs and i'll see what i can do.
Nothing is too difficult... anything is possible.
'But you tried, and you failed.. the important thing? never try'
'But you tried, and you failed.. the important thing? never try'