![]() |
Display random images from specific album
Hello guys,
I want to create a block to my sidebar where I can display random images from specific album. Something like that, but without CMS: https://vborg.vbsupport.ru/showthread.php?t=237884 Can someone help me? :) |
That exact code will work fine in the forum sidebar, make a php block with that code and simply add this line to the very end:
Code:
return $output; |
Thank you for the fast fix BirdOPrey5 :)
I created the block with same code and added your code to the end. The only problem that I have is that Im not getting a random picture though, no matter how many times I refresh the page the 'random' pic stays the same. Note: every time that I click edit and then save the block (even without make any modification), the image changes... but always stays the same. What could be? :P |
In the block settings you need to change the Cache Time (in minutes) to a smaller number, the default is 60 minutes (1 hour) so the image will change once an hour.
If you bring it down to 0 it will be random each time. Probably 1 to 5 minutes would be best. |
Perfect!!! Im always learning :)
Thank you again mate! |
Many thanks Birdoprey5. Great to have that mod working as it should at last.
|
Thanks a lot, BirdO
It worked like a charm on vb4.2 pl3 Cheers |
All times are GMT. The time now is 03:03 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|