Mini Block: Random image from gallery

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by Chris GrahamLiked by SoccerDad)
#5175 (In Topic #1042)
Hello,

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


Post

Posted
Rating:
#5191
Apologies to anyone who recently got an incorrect whisper notifications on this topic. It's a bug in the release made last Thursday, and has now been patched as it is a critical issue. A new patch release for that will come soon.

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by SoccerDad)
#5192
Firstly thankyou ironfeather for the share, great stuff.
Re:Chris, was enjoying the whispers, lols.
0 guests and 0 members have recently viewed this.