Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Anonymous (not verified) on
Hi,
I wanna put some random quotes in a block.
Can anyone post a php code to do this?
I'm not a php programer :(
Thank U
Comments
Random quote module available
I have created (hacked from weblinks module) a module that does exactly what you require i.e. display a random quote in a block. You can download it from here:
http://www.vaisya.com/downloads/quote.tgz
Let me know how you get on as I haven't tested it on a live site.
So far so good
I just installed it and made a couple mods and it's working fine. The mods were to adapt it to my use, not because it wasn't working. It's going to be used for inspirational quotes and Bible verses so I didn't need title, author, and link. I've only added one quote ... maybe I'd best add a couple more before I say it's working?
;-)
Thanks for posting it ... I've wanted something like this.
The url isn't working - could
The url isn't working - could you make it available elsewhere or please send it to me?
Thanks a lot
--
andrei