Needs review
Project:
Marinelli
Version:
7.x-3.0-beta9
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Mar 2011 at 20:46 UTC
Updated:
12 Jan 2012 at 15:16 UTC
Hi,
would it be possible to add :
1) a way to reorder the appearance of the banners.
2) a random feature for the banners.
Thx.
Comments
Comment #2
donniewiko commentedI have looked into this myself. I cant say how to do 1: reorder. But i have managed to display banners on a random notice.
I dont know how to do a patch so ill write it here:
in file: logics/banners.inc
row 91:
This is how it worked for me.
Ill look into the reordering.
Comment #3
cfan commentedYour randomization does not work. Try calling shuffle():
The order changes every time the pages is refreshed.
Comment #4
donniewiko commentedWell strangly, it does work in my setup.
However, shuffle() is so much cleaner and easier.
Thanks for your input.
Comment #5
cehfisher commentedI had the same issue and neither of the solutions worked for me on their own. However, if you add the solutions together, they worked! Now I get a random first image and random subsequent images follow. If I refresh the page, I get a new batch of images.
Comment #6
cehfisher commentedQuick note, if you only have the banner on the front page, you will need to remove:
array_unshift($display_banners, $display_banners[$_random]);