Timing of quote changes: daily (default), weekly (every Monday a new quote), monthly.
Example: sequential selection and monthly changes with 12 quotes will select every month always the same quote.
wöchentlich bedeutet, dass das Plugin jeden Montag ein neues Zitat aussucht. Wenn wöchentlich eingestellt ist, wird die Woche, in der das Zitat ausgesucht wurde mit dem Zitat gespeichert und bei jedem Abruf wird kontrolliert, ob das noch die aktuelle Woche ist. Ist sie es nicht, sucht das Plugin ein neues Zitat raus.
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.
Keep in the pluginfolder "quoteoftheday":
— data folder
— css folder
The file:
— config/config.php
and install the rest on top of existing files.
Install new version keeping your old quoteoftheday/data/quote_xx.txt file. Go to plugin main of quoteoftheday, enter a headline and save.
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.
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. If you edit your quotes, the quote cache is cleared automatically on save 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.