close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Extending galleries to Albums

Thread began 12/01/2009 7:08 pm by andy.schofield283961 | Last modified 12/07/2009 1:34 pm by Justin Nemeth | 973 views | 3 replies |

andy.schofield283961

Extending galleries to Albums

Although a great tool, there doesnt appear to be any instructions on how this could be extended by the user so that galleries could be grouped together under different headings to create virtual albums for displaying on a website.

I have updated the gallery to support multiple users, but am looking for a simple way to extend this to allow groupings of galleries.

For example, from a database POV I can list all galleries by a certain user and expand on this to include other distinct labels to allow whatever grouping I need.

My question is 'is there an easy way to then pass these results to a standard page which could show all of the 1st images in each gallery found so that users can navigate into different depths of galleries?'

i.e.

User selects which users photos they wish to view
Site shows all photo albums for requested user (e.g. Holiday Photos, Family Photos, etc)
User selects 'Holiday Photos'
Site shows all destinations results, i.e. USA, Canada, UK, etc
User selects UK
Gallery for UK is shown as standard.

My issue isnt with the workflow or the navigation its how I create a new gallery of each 1st image to at each stage to help navigate the users.

Hope that makes some kind of sense.

Andy

Sign in to reply to this post

Justin Nemeth

It sounds like you would have to make a custom gallery that instead of getting a list of all images for 1 gallery, it gets 1 image for all galleries. Each gallery is powered by XML that is generated from the mediarss.php file, so you have to make a new php file (copy mediarss.php as a starting point), then adjust the database query to suit your needs. Then you will have to modify your gallery to use this new php file instead of the mediarss.php to power the gallery.

-justin

Sign in to reply to this post

andy.schofield283961

Nearly there

Justin,

Thanks for the pointer, I have amended the files as suggested and selected the Grid + Lightbox theme for the gallery overview.

Only thing now is that the gallery simply shows the images tiled, I want to put a title above / below them.. code from index.php below.

<?php
$random = rand(0, 10000);
for($i = 0; $i < sizeof($gallery['images']); $i++) {
echo '<a href="' . $gallery['images'][$i]['fullsize']['url'] . '" rel="lightbox-pg' . $random . '" name="<strong>' . str_replace('"', '\"', $gallery['images'][$i]['title']) . (strlen($gallery['images'][$i]['title']) > 0 ? ':' : '') . '</strong> ' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '"><img alt="" title="' . $i . '##' . str_replace('"', '\"', $gallery['images'][$i]['title']) . '##' . str_replace('"', '\"', $gallery['images'][$i]['description']) . '" src="' . $gallery['images'][$i]['thumb']['url'] . '" width="132" height="140" /></a>';
}
?>

Is there an easy way this can be done.

Thanks again for the help.

Andy

Sign in to reply to this post

Justin Nemeth

You could echo the $gallery['images'][$i]['title'] code wherever you want. So just before/after the img tag for instance.

-justin

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...