HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media


Welcome to TinyPortal. Please login or sign up.

October 04, 2023, 07:50:42 AM

Login with username, password and session length
  • Total Posts: 194,550
  • Total Topics: 21,182
  • Online today: 84
  • Online ever: 3,540
  • (September 03, 2022, 01:38:54 AM)
Users Online
Users: 0
Guests: 44
Total: 44

Daily changing code thingy?

Started by elliel, February 22, 2006, 01:22:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


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 ?



There is a Today in History, code snippet. Perhaps you could modify that.


thanks but that looked kinda complicated

However... I found this instead:


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 :)