Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Just updated to 101 from 100. Logging in to backlight goes well. Starting the site gives me this error:
Something went wrong
Unexpected error: Class 'Album' not found in PageController.php on line 80
Please report error at http://community.theturninggate.net
There a way around this?
Thanx, Mark
Oh, by the way, this is now running in a subdomain for testing here:
http://backlightmhp.markhoffmanphotography.com
That helps. I'm going to take your other suggestion as well. The one about taking backlight semi-live in a subdomain on my webserver before going all-live with it.
Much appreciated.
Thanks Rod, think I've got that. So I really don't need an album set in a top level directory if I don't want one?
In a fresh installation of backlight + pages I have a top level directory of /galleries visible on my webserver, but it does not appear within backlight and is, in fact, an empty directory. In lightroom publisher I create a new instance tp publish to the top level gallery called "galleries". Do I also have to create an album set in that publisher instance called "galleries" or do I just create albums within that publisher instance?
New question: If I want a second top level directory called "gallery2" obviously I need to create a new instance of publisher to publish to that directory. Will that automatically create a top level directory on my webserver or does that require an album set as well, or do I just physically add a directory on the server called Gallery2.
Thought I had this figured out once but I've been gleefully trying all sorts of things on my testing server and now I've created a confusing mess so I'm starting over with a fresh installation and want to make sure I'm clear on this.
Not sure how I created them, I was playing around trying all sorts of new things on this testing server. The top level galleries no longer exist in the file structure on the hard drive but they show up in backlight as top level directories and in the database also. None of this is critical because this isn't yet a live site, just me making a mess, but I'm curious how I'd go about getting them out of there.
I have a couple top level galleries that I cannot delete either from within backlight or by accessing the database. Using the database method when I try to delete them I get an error that says the database table is locked. These galleries are the result of me trying different things with this while I get it going. The galleries I can't delete were actually album sets with no albums in them.
Mark
It is a very small, very interconnected world indeed.
I've seen that phrase "regular expression" before somewhere. I think a guy named Jeffrey Friedl wrote a book about them. Haven't read the book but I'm acquainted with Jeffrey, a photography-type fella from Japan. Writes some cool code for Lightroom plugins etc. Also wrote the code for Wigglegrams, examples of which can be found here: http://blog.photophart.com/?p=462 and here: http://blog.photophart.com/?p=481 and here: http://blog.photophart.com/?p=516
Perhaps just another example of how everything on earth seems to be tied, tenuously, to everything else.
Regards, Mark
Rod, I'm using a similar testing arrangement in XAMPP (WAMP's cousin, I guess) so you're probably right. Things are going so well with Backlight that I'm considering taking this site live very soon and replacing my CE4 site with it. We'll see if that error goes away then.
Can't. It's running on my local testing server. More info: I was using a new instance of publisher to edit an album in a top level gallery that was originally created in CE4. Thought that might be the issue so I created another new instance of publisher that created a new top level gallery of a different name on the site. Then added a new album to that top level gallery. All went well with that. When I try to edit that album I get the same error again, but I can still edit the album, add and remove photos, republish, or edit the album's other settings. So the error doesn't seem to be stopping anything.
Mark
In lightroom, in publisher, when I try to edit a published album I get this:
Error
Unable to perform action: getThumbnails
Message: preg_replace(): Compilation failed: a numbered reference must not be zero at offset 43 in ThumbnailFinder.php on line 32
I respond OK and can continue to edit the published album without further incident, so the error is not critical, but what is it? and can I fix it?
Mark
Backlight is SO much better than clubbing away at the Lightroom Web Module, there is simply no comparison. I've been fooling around with this most of the day and love it! Design changes provide instant gratification and who isn't into that?
Great job!
Mark
Oh. Thanks, that makes a world of difference.
I've placed a .png image and a .jpeg image in the backlight/templates/upload images directory. They do not appear as choices in the drop down box for identity plate. Is a different file type required?
Thanks Ben. I'll try that....with care.
Seemed to work just fine.
Mark
But...Clicking the Migrate link I get this:
"CE4 Publisher was not found"
I have been using CE4 publisher with this site for quite a long time so I'm confused as usual. I can't provide links as this is running in a testing environment. Root directory looks like this:
/backlight
/galleries
/ttg-be/publisher
etc.
This isn't absolutely critical as I'd planned to re-publish all the galleries from scratch but since this is a test site having the galleries migrate easily would have been nice.
Any idea where that error is coming from?
Um...Just got Backlight and pages and have it installed and running, but I don't see the link in Backlight to migrate albums from CE4. Perhaps it is hiding in plain sight?
Mark
Oooops! Never mind, there it is.
M
Thanks Rod. I'll go the plan "B"
Mark
A visitor to my site wants to buy an image that appears in a galleria slideshow on my home page. The home page is controlled by stage and is updated via publisher. I can, of course, add a navigation item to go to a gallery of slide show images for sale. But was wondering if anyone knows a way to actually enable cart functionality for the images in the slideshow directly: like, say, have the cart icon appear on the image while it is in the slide show? To complicate this issue I change the images in the galleria slide show from time to time from within lightroom publisher, just to keep things interesting. Tried clicking on the enable cart box in publisher but that seemed to have no effect.
Thanks, Mark
Updated to Pages 7.0.14a early this AM and all seems right with the world...or..the galleries rather.
Regards Mark
Have reverted to Pages 7.0.13 for the time being. Galleries errors are gone.
Regards Mark
Upadate to pages today broke the galleries, not the autoindex galleries which seem to be working fine. Here's what appears where the galleries should be:
<% if model.autoindex.type.desktop == 'descriptive' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
<a href="<% write("<?php print $albums[$i]['url']; ".."?"..">")%>"><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'ce4-freewall' then %>
<div class="brick" style="height: <% write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">")%>px;">
<div class="album clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
<ul>
<li class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></li>
<% if model.mosaic.Title == 'titleanddescription' then %>
<li class="album-desc"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></li>
<% end %>
</ul>
</div>
</div><!-- .brick -->
<% elseif model.autoindex.type.desktop == 'iconic' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<% if model.mosaic.Title == 'titleanddescription' then %>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'text-only' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% end --[[ autoindex.type ]] %>
ERROR
Switch View
<% if model.autoindex.type.desktop == 'descriptive' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
<a href="<% write("<?php print $albums[$i]['url']; ".."?"..">")%>"><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'ce4-freewall' then %>
<div class="brick" style="height: <% write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">")%>px;">
<div class="album clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
<ul>
<li class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></li>
<% if model.mosaic.Title == 'titleanddescription' then %>
<li class="album-desc"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></li>
<% end %>
</ul>
</div>
</div><!-- .brick -->
<% elseif model.autoindex.type.desktop == 'iconic' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<% if model.mosaic.Title == 'titleanddescription' then %>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'text-only' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% end --[[ autoindex.type ]] %>
if model.autoindex.type.desktop == 'descriptive' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
<a href="]] ) write("<?php print $albums[$i]['url']; ".."?"..">") write( [["><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'ce4-freewall' then write( [[
<div class="brick" style="height: ]] ) write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">") write( [[px;">
<div class="album clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
<ul>
<li class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</li>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<li class="album-desc">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</li>
]] ) end write( [[
</ul>
</div>
</div><!-- .brick -->
]] ) elseif model.autoindex.type.desktop == 'iconic' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
]] ) end write( [[
</div>
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'text-only' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
]] ) end --[[ autoindex.type ]]
ERROR
Switch View
<% if model.autoindex.type.desktop == 'descriptive' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
<a href="<% write("<?php print $albums[$i]['url']; ".."?"..">")%>"><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'ce4-freewall' then %>
<div class="brick" style="height: <% write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">")%>px;">
<div class="album clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
<ul>
<li class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></li>
<% if model.mosaic.Title == 'titleanddescription' then %>
<li class="album-desc"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></li>
<% end %>
</ul>
</div>
</div><!-- .brick -->
<% elseif model.autoindex.type.desktop == 'iconic' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<% if model.mosaic.Title == 'titleanddescription' then %>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'text-only' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% end --[[ autoindex.type ]] %>
if model.autoindex.type.desktop == 'descriptive' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
<a href="]] ) write("<?php print $albums[$i]['url']; ".."?"..">") write( [["><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'ce4-freewall' then write( [[
<div class="brick" style="height: ]] ) write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">") write( [[px;">
<div class="album clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
<ul>
<li class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</li>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<li class="album-desc">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</li>
]] ) end write( [[
</ul>
</div>
</div><!-- .brick -->
]] ) elseif model.autoindex.type.desktop == 'iconic' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
]] ) end write( [[
</div>
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'text-only' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
]] ) end --[[ autoindex.type ]]
ERROR
Switch View
<% if model.autoindex.type.desktop == 'descriptive' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
<a href="<% write("<?php print $albums[$i]['url']; ".."?"..">")%>"><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'ce4-freewall' then %>
<div class="brick" style="height: <% write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">")%>px;">
<div class="album clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>><img alt="Album Title" src="<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>" class="album-image" /></a>
<ul>
<li class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></li>
<% if model.mosaic.Title == 'titleanddescription' then %>
<li class="album-desc"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></li>
<% end %>
</ul>
</div>
</div><!-- .brick -->
<% elseif model.autoindex.type.desktop == 'iconic' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(<% write("<?php print $albums[$i]['thumbnail']; ".."?"..">")%>);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<% if model.mosaic.Title == 'titleanddescription' then %>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
<% end %>
</div>
</div>
</div>
</div>
</div><!-- .album -->
<% elseif model.autoindex.type.desktop == 'text-only' then %>
<div class="album grid_<%= math.floor( 12 / model.albumodel.settings.columns ) %> clearfix">
<div class="album-mantle clearfix">
<a class="album-link" <% write("<?php print $AI_TARGET; ".."?"..">")%>></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title"><% write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">")%><span class="locked"><i class="fa fa-fw fa-lock"></i> </span><% write("<?php } ".."?"..">")%><% write("<?php print $albums[$i]['title']; ".."?"..">")%></p>
<p class="album-description"><% write("<?php print $albums[$i]['description']; ".."?"..">")%></p>
<% if model.album_info.fade then %>
<p class="album-overlay"></p>
<% end %>
</div>
</div>
</div>
</div><!-- .album -->
<% end --[[ autoindex.type ]] %>
if model.autoindex.type.desktop == 'descriptive' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-thumbnail clearfix" style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
<a href="]] ) write("<?php print $albums[$i]['url']; ".."?"..">") write( [["><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
</div>
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'ce4-freewall' then write( [[
<div class="brick" style="height: ]] ) write("<?php print floor($height + ".. math.floor(model.freewall.margin * 2 + model.album.border.width * 2) .."); ".."?"..">") write( [[px;">
<div class="album clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[><img alt="Album Title" src="]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[" class="album-image" /></a>
<ul>
<li class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</li>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<li class="album-desc">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</li>
]] ) end write( [[
</ul>
</div>
</div><!-- .brick -->
]] ) elseif model.autoindex.type.desktop == 'iconic' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-image mosaic-backdrop"
style="background-image: url(]] ) write("<?php print $albums[$i]['thumbnail']; ".."?"..">") write( [[);">
</div>
<div class="mosaic-overlay">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
]] ) if model.mosaic.Title == 'titleanddescription' then write( [[
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
]] ) end write( [[
</div>
</div>
</div>
</div>
</div><!-- .album -->
]] ) elseif model.autoindex.type.desktop == 'text-only' then write( [[
<div class="album grid_]] )write( math.floor( 12 / model.albumodel.settings.columns ) )write( [[ clearfix">
<div class="album-mantle clearfix">
<a class="album-link" ]] ) write("<?php print $AI_TARGET; ".."?"..">") write( [[></a>
<div class="album-core clearfix">
<div class="album-info">
<p class="album-title">]] ) write("<?php if (isset($albums[$i]['access']) && $albums[$i]['access'] == 'locked'){ ".."?"..">") write( [[<span class="locked"><i class="fa fa-fw fa-lock"></i> </span>]] ) write("<?php } ".."?"..">") write("<?php print $albums[$i]['title']; ".."?"..">") write( [[</p>
<p class="album-description">]] ) write("<?php print $albums[$i]['description']; ".."?"..">") write( [[</p>
]] ) if model.album_info.fade then write( [[
<p class="album-overlay"></p>
]] ) end write( [[
</div>
</div>
</div>
</div><!-- .album -->
Something I did perhaps??
regards Mark
Sorry, forgot the link: http://www.photophart.com/galleries.php
To the casual observer it is not apparent that the space between my left ear and my right ear is actually occupied by solid bone. Move along people. Pay no attention to the moron uploading file directories to the wrong place. Thanks Rod for the knock on the head.
Mark
I like it, and am quite taken by the color scheme, although, as in all matters of personal taste, I have no idea why I'm drawn to it. Your logo is especially cool.
Regards, Mark
Well, mine's not very elegant but it seems to suffice. I just add the phrase: IMAGE MAY BE CROPPED, to the image description if I don't feel like creating individual products for a particular image. Which brings up my second method: if I have an image I don't want to crop I create a product for just that size and offer that image in only that size.