Welcome to the Quote-of-the-day plugin
Entering and editing your quotes
- Select from the Plugins-menue Quoteoftheday.
- Configuration in Plugin Config:
- lines: Enter the number of lines you want your quotes to have. They must all have the same number of lines, e.g. 1st line for the quote and the 2nd line for the author.
- inside_template_or_with_PD-Scripting: If you integrated your quote-of-the-day into your template or if you use pd_scripting, you have to enter
yes
.
- headline_css_style: Name the css-style, you want to apply to the headline of your quotes. Enter the style without "<" and ">", i.e.
h4
or h5
or h6
.
- Styling the quotes in Plugin-Stylesheet:
- The whole generated quote is always in the
<div class="quoteoftheday">
. By giving css-commands you can place the quote in a box with nice borders, center the box or make it float to the right or left and so on, i.e.: .quoteoftheday {margin:1em auto; border:1px solid silver; background:#fff8f1; padding:1em; width:300px;}
.
- The generated lines of the quotes are in
<p class="quoteline1">
for the first line, and quoteline2
for the second line, quoteline3
for the third, if you specified your quote length as 3, and so on. If you put for instance authors of your quotes in the second line, you can have this line aligned to the right with: .quoteline2 {text-align:right;}
.
- Configuration in Plugin Language:
- random: If you want your quotes to be selected at random, enter here
yes
. Random selection is only advisable, if you have many quotes. If you don't enter anything, selection of quotes will be sequential. On the first day of the year (Jan 1), quote nr. 1 will show, on the second day, quote nr. 2, and so on, until your last quote, after which again quote nr. 1 will appear.
- headline: If you want a headline for your quotes, you can enter it here, i.e.:
My Quote of the day
.
- Enter your quotes in Plugin Main Settings.
Inserting Quote-of-the-day into CMSimple:
The plugin-loader must be installed. Upload the quoteoftheday-folder into the plugins directory, keeping the folder structure. You may have to give file permissions chmod 0646 to: config/config.php, css/stylesheet.css, data/quote_en.txt, data/random_en.txt, languages/en.php, languages/en.php
- If you want to show your quote of the day on a specific page, insert, exactly where you want your quotes to appear, the command:
#CMSimple $output = quoteoftheday();#
Quote of the day doesn't work in a news-box, as the quote will only be generated, when the page containing the quote is called.
- If you want to show your Quote-of-the-day on all pages, insert in the respective place in the template:
<?php echo quoteoftheday(); ?>
Don't forget to mark in the Config-Plugin that you use Quote-of-the-day in the template.
- If you want to show your quote of the day on some pages and on others a news-box instead, insert in the template:
<?php if ($news==''){echo quoteoftheday();}else{echo newsbox($news);} ?>
and add on the page, which should suppress the quote:
#CMSimple $news = "Name_of_page_containing_your_news";#
Code ver. 0.51 by svati, Jan 2011. Slovak files + feedback by Tata