Mini Block: Random image from gallery
Posted
#5175
(In Topic #1042)
Wanted to share this and invite people to make it better…
I own a bookshop and want to display books on my website, a random book cover throughout the site that points back to the gallery that has more information for the potential customer.
see example usage:
https://nandalow.com/index.php?page=wiki&type=browse&id=41
Notice the upper left nandalow bookshop box is displaying a book cover. Now scroll down a bit and on the lower left & right it will display a random book or comic cover. In the center of the page after the links it will display 5 random comicbook covers.
If you hover over the image the tooltip gives the title and invites customer to click for more info. Under the image is the title.
In sources_custom/miniblocks create a file called random-image.php
UPDATE: having trouble posting the php code. I used a CODE box but its scrambled.
to display code we should use the CODE box?
for now please see it at :
https://ironfeather.com/bbs/viewtopic.php?f=12&t=2991&p=4213
Last edit: by ironfeather
Posted
Posted
Re:Chris, was enjoying the whispers, lols.
0 guests and 0 members have recently viewed this.
