TinyPortal

Development => Block Codes => Topic started by: elliel on February 21, 2006, 06:22:57 PM

Title: Daily changing code thingy?
Post by: elliel on February 21, 2006, 06:22:57 PM
I wondered if anyone had a code that I could use that changes daily instead of the random type codes - eg the random quote code

I would like a bit of code that would do a 'daily quote' instead.  Is there something that could be used for a variety of purposes that anyone might know about ?

~thanks
Title: Re: Daily changing code thingy?
Post by: borgBOB on February 22, 2006, 08:44:57 AM
There is a Today in History, code snippet. Perhaps you could modify that.
Title: Re: Daily changing code thingy?
Post by: elliel on February 22, 2006, 12:05:56 PM
thanks but that looked kinda complicated

However... I found this instead:

Quote
http://www.r9tools.com/rotate/

The Rotating Content Tool provides a simple way to add dynamic content to your web pages. You organize your content in advance and the content will then automatically rotate based on your criteria, either by specified dates or randomly. Learn more in the Overview or get started now creating your own content.

The Shared Content Library is a place where you can find ready-to-use content that others have created using this tool. You might even want to browse around the library to get an idea of how others are using the tool. (Once you create your own rotating content, consider making it available for others to use as well!)


I have set one up as a test, just for feb-mar with my own quotes that I entered in the file for every day of the specified date range, or you can change it to eg every wednesday or mon-friday only, or random or anything you like, then it even generates the javascript or php code for you for your file

It's really very cool and just what I wanted to achieve but wasnt able to write the code myself... although this is pretty simple now I have an example to work from :)