Vertical filmstrip in CPG 1.4.x Vertical filmstrip in CPG 1.4.x
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Vertical filmstrip in CPG 1.4.x

Started by Hein Traag, January 25, 2006, 02:53:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hein Traag

Good morning/afternoon/evening,

i am busy building a new site, this time with the 1.4.3 version of CPG and so far i am amazed at how CPG
has grown (got to love the plugins). There is however one thing i wanted to ask. The old 1.3.x version
had a modicifation ( http://forum.coppermine-gallery.net/index.php?topic=7637.0) to allow the filmpstrip
to be placed verticaly left or right of the picture.

I searched but could not find a topic on the 1.4.3. standalone board regarding this subject. So the question is
how can one edit the code to make the filmpstrip verticaly placed ? Did i search wrong and is there already a
modification for the 1.4.x version or is this a nice challenge for the code minded people on this board :) ?

Thanks and regards,
Hein

Paver

I would guess you can use the theme upgrade documentation (in the docs) to convert the 1.3 theme to 1.4.  And this thread seems to indicate that at least one person has done this:
http://forum.coppermine-gallery.net/index.php?topic=25695.0

I don't think this has plugin relevance unless something cannot be done in theme.php.

HarryS

Hi,
I have upgraded this theme to a 1.4-theme. I did some more changes but essential things are in theme.php. Can I put this file somewhere so that other people can use it?
Our site is: http://tref.cals.nl/fotoweb/
It is still an unofficial and "secret" site, and most of the pictures are a bit out of date.
We are testing the system (content and organisation) and we are discussing the use of pictures for students, parents, teachers, visitors, ......
Bye, Harry

Paver

@HarryS: Yes, please zip it up and attach it to this thread.  Use "additional options" to attach the ZIP file to your posting.

HarryS

OK. The attached zip contains theme.php for a vertical filmstrip. Removed some other things I did. I hope this is all what is needed. Please tell what you do with it.
Bye, Harry

Paver

@HarryS: Thanks for your contribution.  I edited your file slightly to make it into a classic-based theme, like the original 1.3 version was.  I also centered the filmstrip vertically; my intermediate images were a little bigger than yours and it looked weird to have the filmstrip at the top of the table.

If you have time, please give it a whirl to make sure it seems OK to you.  You can unzip this file into your themes folder and it will put the files into a folder called "classic_filmstrip_vert", so you don't have to touch your current theme.  Then select this theme and see if it makes sense to you, or if you have any further modifications you want make.  The idea is to have a simple vertical filmstrip theme like the classic theme; others can use it to modify their custom one if desired.

Joachim Müller


HarryS

Hello Paver and GauGau,

I have looked at the theme. You are right about your changes. Now it is like the original one.
For our situation I like the changes you have seen on my site. But you are right, that is my customization.

The one you published is good. Others can use it or modify it.

Thanks, I feel good about this,
Harry

Paver

@HarryS: Thanks again for contributing.  It's so much easier to tweak something where someone else has done nearly all of the work!

Kugelblitz

in the Config I switched

Display file name below the thumbnail = Yes

and

Display file name under film strip thumbnail = Yes

but the Filename does not appear in that theme.
how can this be fixed?

Would be Great to have the Titel instead of the Filename.

Thanks.

Kugelblitz

and how can I get the film stripe on the right side of the image?

HarryS

#11
I do get the titles below the thumbnails on the thumbnail-pages.

I don't know how to get titles or filenames in, right or left of the filmstrip-thumbnails.

Filmstrip at the right? I just worked on it, but could not do it right. Maybe later this week I try again. For me this is not an important issue. Personally I am just happy to have a vertical filmstrip.

Sorry,
Harry

Hein Traag

Harry,

thanks for the work! I'll get to it and see of i can implement it into in my site.

You are all thanked :)

Kugelblitz

Quote from: Kugelblitz on January 30, 2006, 06:36:48 PM
in the Config I switched

Display file name below the thumbnail = Yes

and

Display file name under film strip thumbnail = Yes

but the Filename does not appear in that theme.
how can this be fixed?

Would be Great to have the Titel instead of the Filename.

Thanks.

Problem Still exist.
http://groups.kisd.de/sydney_06/swaptv/displayimage.php?album=lastup&cat=0&pos=0

HarryS

Maybe this will help.
In theme.php of the classic_filmstrip_vert-theme look for:

function theme_display_film_strip(&$thumb_list, $nbThumb, $album_name, $aid, $cat, $pos, $sort_options, $mode = 'thumb')
{
   ..........
    $i = 0;
    $thumb_strip = '';
    foreach($thumb_list as $thumb) {
        $i++;
        if ($mode == 'thumb') {
            $params = array('{CELL_WIDTH}' => $cell_width,
                '{LINK_TGT}' => "displayimage.php?album=$aid$cat_link&pos={$thumb['pos']}",
                '{THUMB}' => $thumb['image'],
                '{CAPTION}' => ' ',
                '{ADMIN_MENU}' => ''
                );
        } else {
      ........
    return $film_strip;
}

You need to change '{CAPTION}' =>' ',
This should be '{CAPTION}' => $thumb['caption'],

The rest is up to you.

Bye, Harry

Kugelblitz

Thanks HarryS that helped alot!  ;D
But now I see the Filename under the Thumbnails.
So how can I change it to the Title instead of the Filename?

Paver

Have you checked your "Thumbnail View" settings on your config. panel?

HarryS

The config-option about filename and/or title of thumbnail is about the tuimbnailview. It is not about the filmstrip.
A plugin is published for thumbnail-title instead of filename in the filmstrip. I did not use it, but maybe it helps:
http://forum.coppermine-gallery.net/index.php?topic=25076.0

For installing plugins read the How to install plugins - FAQ in the plugin-section of the board.

Bye,
Harry

Kugelblitz

 ;D Thanks alot Guys  ;)
That did it!

Paver