Advanced search  

News:

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

Pages: [1] 2   Go Down

Author Topic: Album Summary  (Read 44098 times)

0 Members and 1 Guest are viewing this topic.

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Album Summary
« on: February 04, 2007, 11:16:11 pm »

Hi all,

This plugin is anothe way to show the picture title for an album.
It's a better way as Photo Summary for gallery who have many albums and many pictures in the albums.
after install, a new menu button will appear after the faq menu button

* at first you will have the category list.
* by clicking on a category, you'll have the album list for this category
* by clicking on an album, you'll see the picture title for this album with preview pop up window by "hover"

To work properly, your pictures must have a title.

Install:
unzip package and upload album_directory folder as is to plugins folder and use plugin manager to install it.
if you're not sure, read - How to install plugins - http://forum.coppermine-gallery.net/index.php?topic=24327.0

Language:
english and french only available in the package. You can translate into your language, please share if you do.
Dutch language file added (Thank's Hein)
Italian language file added (Thank's Angeldevis)
German language file added (Thank's AlexL)

Demo
« Last Edit: February 14, 2007, 08:18:48 pm by Frantz »
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Album Summary
« Reply #1 on: February 05, 2007, 04:45:26 pm »

Nice work Frantz.

Dutch.php added as attachment to this reply.

Regards,
Hein
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #2 on: February 05, 2007, 05:26:42 pm »

Thank's Hein  :D

Dutch File added in the pack
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107
Re: Album Summary
« Reply #3 on: February 09, 2007, 05:49:50 pm »

Hi Frantz!

italian language is added  :)

Best regards
Logged
a

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #4 on: February 09, 2007, 06:32:42 pm »

Hi Angeldevil

Thank's, your lang file will be added in the pack
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

AlexL

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 189
    • Velvet Photos
Re: Album Summary
« Reply #5 on: February 14, 2007, 04:56:32 pm »

German Lang File attached ;D

Edit: german special sign edited to correct the visualizing in other languages.
Sorry for more effort to you Frantz
« Last Edit: February 16, 2007, 04:01:08 pm by AlexL »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #6 on: February 14, 2007, 08:12:21 pm »

Hey, Thank's, your file is added in the pack in the first post
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #7 on: April 13, 2007, 11:29:53 am »

Hellou, i have some problems with this plugin.

Automatically, with according to setting in  codebase.php, title Album Summary add under title FAQ, this is OK, but I'd needed to with title album summary added under album_list

How this adjust in codebase.php?

(http://sweb.cz/t310/coopermine/menu.jpg)

And I have second inquiry:

How shift list caregory along from margins?

(http://sweb.cz/t310/coopermine/seznam.jpg)

so to begin text 5 mm from margins?

My codebase:
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.9
  $Source$
  $Revision: 3125 $
  $Author: gaugau $
  $Date: 2006-06-16 08:48:03 +0200 (Fr, 16 Jun 2006) $
**********************************************/
/*************************
album_summary plugin 1.0 for Coppermine 1.4.* by Frantz
**************************/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');
require (
'plugins/album_summary/include/init.inc.php');
// CONFIGURATION OPTIONS - HERE YOU CAN SET YOUR PARAMETRES 


// define limit here.
// limit is the number of thumbnail columns and the column spans. 3 or 4 works well.

define('LIMIT'2);

// CONFIGURATION OPTIONS - END - DO NOT EDIT ANY LINES BELOW!!! REALLY!!!

// User menus , (fixed by Sami)
$thisplugin->add_action('page_start','album_summary_page_start');

// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global 
$template_sys_menu$template_sys_menu_spacer;
require (
'plugins/album_summary/include/init.inc.php');
  
$new_template=$template_sys_menu;
  
$button=template_extract_block($new_template,'faq');
  
   
$params = array(
      
'{FAQ_LNK}' => $target,
      
'{FAQ_TITLE}' => $title,
      
'{FAQ_TGT}' => $href,
      
'faq' => $link,
   );
   
$new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   
template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" $button "<!-- END faq -->\n" .$new_button);
}

// Add album_summary button after home under sys menu (added by Sami)
function album_summary_page_start()
{
  
  
global $template_sys_menu$template_sys_menu_spacer$template_sys_menu_button$sys_menu_buttons;
    global 
$CONFIG$lang_plugin_album_summary;

    require (
'plugins/album_summary/include/init.inc.php');
  
  
  
album_summary_add_admin_button('index.php?file=album_summary/cat_list',$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link']);
}

?>

Thanks

Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #8 on: April 14, 2007, 08:31:55 am »

For your first question:
in your codebase.php file search
Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sys_menu;
  $button=template_extract_block($new_template,'faq');
 
   $params = array(
      '{FAQ_LNK}' => $target,
      '{FAQ_TITLE}' => $title,
      '{FAQ_TGT}' => $href,
      'faq' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}
and replace with
Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sub_menu, $template_sub_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sub_menu;
  $button=template_extract_block($new_template,'album_list');
 
   $params = array(
      '{ALB_LIST_LNK}' => $target,
      '{ALB_LIST_TITLE}' => $title,
      '{ALB_LIST_TGT}' => $href,
      'album_list' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sub_menu,'album_list',"<!-- BEGIN album_list -->" . $button . "<!-- END album_list -->\n" .$new_button);
}
For your second question: in the plugin cat_list.php file search around line 34
Code: [Select]
echo "<td align=\"left\">";replace with
Code: [Select]
echo "<td class=\"tableb\"align=\"left\">";search around line 63
Code: [Select]
echo "<td align=\"left\">";replace with
Code: [Select]
echo "<td class=\"tableb\"align=\"left\">";search around line 92 and 102
Code: [Select]
echo "<td  align=\"left\"><a href=\"displayimage.php?pos=-$picrow[pid]\" title=\"$picrow[title]\"class=\"alb_preview\">$picrow[title]";//display file titlereplace with
Code: [Select]
echo "<td class=\"tableb\" align=\"left\"><a href=\"displayimage.php?pos=-$picrow[pid]\" title=\"$picrow[title]\"class=\"alb_preview\">$picrow[title]";//display file title
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #9 on: April 14, 2007, 10:13:49 am »

Very I am much obliged,

 and I'd another inquiry.

everything, according to your instruction, with fulfilment well, but I would like some changes

(http://sweb.cz/t310/coopermine/menu_2.jpg)

Along with album list with make copy and icon album_list

I'd like so that album_summary could allot personal icon

Where to the code put in icon for album_summary?

Thanks
Logged

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #10 on: April 14, 2007, 10:16:24 am »

In album_list:

Code: [Select]
<!-- BEGIN album_list -->
                       <p style="margin-left: 0px">
                       <img border="0" src="themes/power_blue01/images/ikona_seznam.gif" width="15" height="15">
                       <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a></p>
<!-- END album_list -->

and codebase.php for album summary:

Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sub_menu, $template_sub_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sub_menu;
  $button=template_extract_block($new_template,'album_list');
 
   $params = array(
      '{ALB_LIST_LNK}' => $target,
      '{ALB_LIST_TITLE}' => $title,
'{ALB_LIST_TGT}' => $href,
      'album_list' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sub_menu,'album_list',"<!-- BEGIN album_list -->" . $button . "<!-- END album_list -->\n" .$new_button);
}
Logged

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #11 on: April 15, 2007, 02:38:25 pm »

Meanwhile I am it think out this way:

In codebase.php i am delete:
Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sys_menu;
  $button=template_extract_block($new_template,'faq');
 
   $params = array(
      '{FAQ_LNK}' => $target,
      '{FAQ_TITLE}' => $title,
      '{FAQ_TGT}' => $href,
      'faq' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}

// Add album_summary button after home under sys menu (added by Sami)
function album_summary_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_album_summary;

    require ('plugins/album_summary/include/init.inc.php');
   
  album_summary_add_admin_button('index.php?file=album_summary/cat_list',$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link']);
}

and in theme.php add:

Code: [Select]
<!-- BEGIN album_summary -->
                       <p style="margin-left: 0px">
                       <img border="0" src="themes/power_blue01/images/ikona_sum.gif" width="15" height="15">
                       <a href="index.php?file=album_summary/cat_list" title="Přehled kategorií">Přehled kategorií</a></p>
<!-- END album_summary -->

this way is it in good order and function, but unchanging with language.

Perhaps would was possibly add anything appropriate:
Code: [Select]
<a href="{ALB_LIST_TGT}" title="{album_summary_TITLE}">{ALB_LIST_LNK}</a></p>,
but when it commuted to:
Code: [Select]
<a href="{album_summary_TGT}" title="{album_summary_TITLE}">{ALB_LIST_LNK}</a></p>,
so it malfunction.

you do not know somebody, as that adjust? Or better solving?

Thanks
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #12 on: April 15, 2007, 02:53:58 pm »

I don't understand what you realy do with your changes:
if you delete this code
Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sys_menu;
  $button=template_extract_block($new_template,'faq');
 
   $params = array(
      '{FAQ_LNK}' => $target,
      '{FAQ_TITLE}' => $title,
      '{FAQ_TGT}' => $href,
      'faq' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}

// Add album_summary button after home under sys menu (added by Sami)
function album_summary_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_album_summary;

    require ('plugins/album_summary/include/init.inc.php');
   
  album_summary_add_admin_button('index.php?file=album_summary/cat_list',$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link']);
}
from codebase.php you d'ont display the plugin menu button.
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #13 on: April 15, 2007, 04:04:40 pm »

Is concerned it, that that creates new button, but the is copy album_list inclusive icon.

Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sys_menu;
  $button=template_extract_block($new_template,'faq');
 
   $params = array(
      '{FAQ_LNK}' => $target,
      '{FAQ_TITLE}' => $title,
      '{FAQ_TGT}' => $href,
      'faq' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}

// Add album_summary button after home under sys menu (added by Sami)
function album_summary_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_album_summary;

    require ('plugins/album_summary/include/init.inc.php');
   
  album_summary_add_admin_button('index.php?file=album_summary/cat_list',$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link']);
}

When it I'll do over theme.php, that add button, so here may I change icon.

Code: [Select]
<!-- BEGIN album_summary -->
                       <p style="margin-left: 0px">
                       <img border="0" src="themes/power_blue01/images/ikona_sum.gif" width="15" height="15">
                       <a href="index.php?file=album_summary/cat_list" title="Přehled kategorií">Přehled kategorií</a></p>
<!-- END album_summary -->

made I am it in the same way, how they are making other button,
but  title is setting fast, no variable according to election language.
Is concerned it, how thereinto finish, to was possibility changes language.
Logged

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #14 on: April 18, 2007, 08:24:01 am »

I will try with then ask otherwise :-)

How do by the help of hereof:

Code: [Select]
// create button template from current sys menu template (added by Sami)
function album_summary_add_admin_button($href,$title,$target,$link)
{
  global $template_sys_menu, $template_sys_menu_spacer;
require ('plugins/album_summary/include/init.inc.php');
  $new_template=$template_sys_menu;
  $button=template_extract_block($new_template,'faq');
 
   $params = array(
      '{FAQ_LNK}' => $target,
      '{FAQ_TITLE}' => $title,
      '{FAQ_TGT}' => $href,
      'faq' => $link,
   );
   $new_button="<!-- BEGIN $link -->".template_eval($button,$params)."<!-- END $link -->\n";
   template_extract_block($template_sys_menu,'faq',"<!-- BEGIN faq -->" . $button . "<!-- END faq -->\n" .$new_button);
}

// Add album_summary button after home under sys menu (added by Sami)
function album_summary_page_start()
{
 
  global $template_sys_menu, $template_sys_menu_spacer, $template_sys_menu_button, $sys_menu_buttons;
    global $CONFIG, $lang_plugin_album_summary;

    require ('plugins/album_summary/include/init.inc.php');
   
  album_summary_add_admin_button('index.php?file=album_summary/cat_list',$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link'],$lang_plugin_album_summary['menu_link']);
}

to with fecit new legacy with new icon
Reach for hereof:
(http://sweb.cz/t310/coopermine/menu3.jpg)

At addition without adjustment in code with it do this way:
(http://sweb.cz/t310/coopermine/menu_2.jpg)

Already me do you understand, what I need?  :-)
Logged

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #15 on: April 27, 2007, 08:01:48 am »

 Hallo, I'd proposal and I would like with ask, whether would it make?

To the album_summary added possibility display options according to different parameter

in the same way as in survey gallery.

This:

(http://sweb.cz/t310/coopermine/abum.jpg)

Thanks
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Album Summary
« Reply #16 on: April 27, 2007, 09:34:38 am »

Not to burn you down but do you use a online free translator website to translate your language to english ? I'm having a hard time reading your request  ;)
Logged

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #17 on: April 27, 2007, 09:55:18 am »

eh, Yes I using :-)

Perhaps with it comprehend from apposition pictures :-)

You do not know then, as that sorting do?
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9097
  • aka Frantz
    • Ma galerie
Re: Album Summary
« Reply #18 on: April 30, 2007, 11:10:45 am »

soory, but i don't understand what you want. I think the last question has nothing to do with this plugin
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

goman

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 51
Re: Album Summary
« Reply #19 on: May 01, 2007, 07:24:33 pm »

To be in plugin album_summary possibility election way display category and gallery in the same way as is here on pictures..



(http://sweb.cz/t310/coopermine/abum.jpg)
Logged
Pages: [1] 2   Go Up
 

Page created in 0.035 seconds with 21 queries.