Install new version keeping your old quoteoftheday/data/quote_xx.txt file. Go to plugin main of quoteoftheday
and enter after every quote the new quote separator (default: ===
). Enter the trigger for quoteline 2 (default: -
) before every second quote line.
Enter a headline, assign random or sequential selection and save.
Install new version keeping your old quoteoftheday/data/quote_xx.txt file. Go to plugin main of quoteoftheday. Enter a headline, assign random or sequential selection and save.
Quoteoftheday_XH is optimized for speed. Even with thousands of quotes your system will not become slower. Quoteoftheday uses a cache for the quote of the day. Therefore if you edit your quotes, the quote cache also needs to be cleared. This is done automatically on save. Even if you haven't changed anything, if you press save, the quote cache will be cleared and – in case your quotes are selected at random – a new quote of the day will be selected.
===
), which can be surrounded by empty lines for better clarity. These empty lines have no effect on the final display-
), a new paragraph with the css-class quoteline2
or 3
or 4
will be started. The trigger can be set in plugin config. You can add an empty lines before this trigger for better clarity.
This empty line has no effect on the final output.<div class="quoteoftheday">
box.
Via css you can place the quote in a box with borders, centered or floating right or left.<p>
.
If you start a line with a trigger, a new paragraph with <p class="quoteline2">
(or 3
, or 4
) will be started.{{{PLUGIN:quoteoftheday();}}}
will select from the standard quote file,
{{{PLUGIN:quoteoftheday('FILENAME');}}}
will select from the quote file "filenname".
Be sure to put the correct file name between "
or '
. The filename always ends in .txt
.
<?php echo quoteoftheday(); ?>
or <?php echo quoteoftheday('FILENAME'); ?>
Betatesting mainly by Tata. Some suggestions from oldnema and cmb.