[SOLVED] Imageframe doesn't work on latest snapshot
lvthunder
Joined: 2003-09-12
Posts: 808 |
![]() |
|||
I have downloaded the latest snapshot and the imageframe doesn't show up. I deleted my gallery2 installation and loaded it with no mods. The only thing I did was upload pictures and turn on the imageframe module. I have attached the html of the album that should show the frames. Thanks, ----
|
||||
WesleyTx
Joined: 2004-03-02
Posts: 25 |
![]() |
|||
I'm experiencing the same thing. Actually, I noticed that the basic, css-border-based frames (solid and dots) weren't working with an update a few days ago. (Sorry, can't say exactly when.) All others were working at the time. As of an update this evening, none of the frames are working -- for either thumbnails or albums. |
||||
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
|||
it's working fine for me.. i did refactor how imageframes are rendered recently; nothing in the past few days. |
||||
lvthunder
Joined: 2003-09-12
Posts: 808 |
![]() |
|||
I put some text into ImageFrame.tpl and it didn't show up. I put this line in the function renderImageFrame and it didn't show up either. print "Does this thing work"; If you need anything else let me know. |
||||
WesleyTx
Joined: 2004-03-02
Posts: 25 |
![]() |
|||
I did the same and got the same results. Since we're both using Firefox, I tested it in IE6, also. Got the same. (Incidentally, when looking at Gallery in IE, in which I have a default background color of gray set, I noticed there's apparently no background color defined for Gallery.) |
||||
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
|||
very odd... if you look in ImageFrameImpl::init() you'll see the "register_block" call.. this should route control to the renderImageFrame function when {imageframe} is used in a smarty template, as in layouts/matrix/templates/albumBody.tpl. i assume smarty would generate some sort of error if the register_block was completely ignored, but somehow it isn't processing the tag correctly. |
||||
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
|||
ok, i found the problem. the bug occurs if you view an album page before you activate the imageframe module (so anytime you don't install the module while in the installer, but do it later from site admin). |
||||
lvthunder
Joined: 2003-09-12
Posts: 808 |
![]() |
|||
Thanks Mindless this worked for me. |
||||
WesleyTx
Joined: 2004-03-02
Posts: 25 |
![]() |
|||
FlushTemplates appears to have gotten most of the frames back, although the css-border-based frames (solid and dots) still aren't showing in either FF1 or IE6. I've taken a look at the source and can't fathom why they wouldn't. Strangely, my random image in the left margin, which uses the same class, shows it just fine, while thumbnails in the main body don't. Weird. I'll try looking again after dinner. Quote:
the bug occurs if you view an album page before you activate the imageframe module (so anytime you don't install the module while in the installer, but do it later from site admin) I'm not sure this could be the entire cause, as I activated the image frame module from the installer. (I'm certain of this as I had to perform a completely fresh installation just last night due to an unrelated problem.) |
||||
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
|||
some change must have been made in the matrix CSS to override imageframe CSS.. I put !important in the CSS for solid/dots to fix this. update from cvs or nightly snapshot tomorrow to get this fix. |
||||
WesleyTx
Joined: 2004-03-02
Posts: 25 |
![]() |
|||
That seems to do the trick -- thanks! |
||||