Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 01:51:38 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2   Go Down
  Send this topic  |  Print  
Author Topic: Album Summary  (Read 12851 times)
0 Members and 1 Guest are viewing this topic.
François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« on: February 04, 2007, 10: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

* album_summary.zip (15.03 KB - downloaded 356 times.)
« Last Edit: February 14, 2007, 07: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
****
Gender: Male
Netherlands Netherlands

Posts: 2153


A, B, Cpg


WWW
« Reply #1 on: February 05, 2007, 03:45:26 pm »

Nice work Frantz.

Dutch.php added as attachment to this reply.

Regards,
Hein

* dutch.zip (0.99 KB - downloaded 207 times.)
Logged

François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #2 on: February 05, 2007, 04:26:42 pm »

Thank's Hein  Cheesy

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
**
Gender: Male
Posts: 107



« Reply #3 on: February 09, 2007, 04:49:50 pm »

Hi Frantz!

italian language is added  Smiley

Best regards

* italian.zip (1 KB - downloaded 218 times.)
Logged

a
François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #4 on: February 09, 2007, 05: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
**
Gender: Male
Germany Germany

Posts: 177



WWW
« Reply #5 on: February 14, 2007, 03:56:32 pm »

German Lang File attached Grin

Edit: german special sign edited to correct the visualizing in other languages.
Sorry for more effort to you Frantz

* german.zip (1.06 KB - downloaded 208 times.)
« Last Edit: February 16, 2007, 03:01:08 pm by AlexL » Logged
François Keller Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #6 on: February 14, 2007, 07: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
**
Posts: 51


« Reply #7 on: April 13, 2007, 10: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:
<?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 Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #8 on: April 14, 2007, 07:31:55 am »

For your first question:
in your codebase.php file search
Code:
// 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:
// 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:
echo "<td align=\"left\">";
replace with
Code:
echo "<td class=\"tableb\"align=\"left\">";
search around line 63
Code:
echo "<td align=\"left\">";
replace with
Code:
echo "<td class=\"tableb\"align=\"left\">";
search around line 92 and 102
Code:
echo "<td  align=\"left\"><a href=\"displayimage.php?pos=-$picrow[pid]\" title=\"$picrow[title]\"class=\"alb_preview\">$picrow[title]";//display file title
replace with
Code:
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
**
Posts: 51


« Reply #9 on: April 14, 2007, 09: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
**
Posts: 51


« Reply #10 on: April 14, 2007, 09:16:24 am »

In album_list:

Code:
<!-- 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:
// 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
**
Posts: 51


« Reply #11 on: April 15, 2007, 01:38:25 pm »

Meanwhile I am it think out this way:

In codebase.php i am delete:
Code:
// 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:
<!-- 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:
<a href="{ALB_LIST_TGT}" title="{album_summary_TITLE}">{ALB_LIST_LNK}</a></p>
,
but when it commuted to:
Code:
<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 Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #12 on: April 15, 2007, 01:53:58 pm »

I don't understand what you realy do with your changes:
if you delete this code
Code:
// 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
**
Posts: 51


« Reply #13 on: April 15, 2007, 03:04:40 pm »

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

Code:
// 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:
<!-- 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
**
Posts: 51


« Reply #14 on: April 18, 2007, 07:24:01 am »

I will try with then ask otherwise :-)

How do by the help of hereof:

Code:
// 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
**
Posts: 51


« Reply #15 on: April 27, 2007, 07: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
****
Gender: Male
Netherlands Netherlands

Posts: 2153


A, B, Cpg


WWW
« Reply #16 on: April 27, 2007, 08: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  Wink
Logged

goman
Coppermine regular visitor
**
Posts: 51


« Reply #17 on: April 27, 2007, 08: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 Topic starter
Dev Team member
****
Gender: Male
France France

Posts: 7369


aka Frantz


WWW
« Reply #18 on: April 30, 2007, 10: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
**
Posts: 51


« Reply #19 on: May 01, 2007, 06: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
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.076 seconds with 17 queries.