Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1] 2   Go Down

Author Topic: Vertical filmstrip in CPG 1.4.x  (Read 21368 times)

0 Members and 1 Guest are viewing this topic.

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Vertical filmstrip in CPG 1.4.x
« on: January 25, 2006, 02:53:04 pm »

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
« Last Edit: January 28, 2006, 03:24:59 am by GauGau »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #1 on: January 25, 2006, 06:19:21 pm »

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.
Logged

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #2 on: January 27, 2006, 10:32:12 pm »

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
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #3 on: January 27, 2006, 11:37:46 pm »

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

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #4 on: January 27, 2006, 11:59:04 pm »

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
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #5 on: January 28, 2006, 01:37:56 am »

@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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Vertical filmstrip in CPG 1.4.x
« Reply #6 on: January 28, 2006, 03:24:38 am »

Logged

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #7 on: January 28, 2006, 09:42:32 am »

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
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #8 on: January 28, 2006, 06:45:55 pm »

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

Kugelblitz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Vertical filmstrip in CPG 1.4.x
« Reply #9 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.
Logged

Kugelblitz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Vertical filmstrip in CPG 1.4.x
« Reply #10 on: January 30, 2006, 06:39:54 pm »

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

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #11 on: January 30, 2006, 09:25:25 pm »

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
« Last Edit: January 31, 2006, 04:50:05 pm by HarryS »
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Vertical filmstrip in CPG 1.4.x
« Reply #12 on: January 31, 2006, 06:33:33 pm »

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 :)
Logged

Kugelblitz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Vertical filmstrip in CPG 1.4.x
« Reply #13 on: February 26, 2006, 11:58:14 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
Logged

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #14 on: February 27, 2006, 09:54:46 pm »

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
Logged

Kugelblitz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Vertical filmstrip in CPG 1.4.x
« Reply #15 on: March 03, 2006, 02:43:58 pm »

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?
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #16 on: March 03, 2006, 07:19:42 pm »

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

HarryS

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 15
Re: Vertical filmstrip in CPG 1.4.x
« Reply #17 on: March 05, 2006, 01:41:28 pm »

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
Logged

Kugelblitz

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 45
Re: Vertical filmstrip in CPG 1.4.x
« Reply #18 on: March 08, 2006, 03:12:44 pm »

 ;D Thanks alot Guys  ;)
That did it!
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Vertical filmstrip in CPG 1.4.x
« Reply #19 on: March 13, 2006, 11:27:17 pm »

Unrelated question moved to a new thread: http://forum.coppermine-gallery.net/index.php?topic=29122.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.026 seconds with 23 queries.