Other Album-Listing Template output? Other Album-Listing Template output?
 

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

Main Menu

Other Album-Listing Template output?

Started by CLG, January 24, 2005, 10:31:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

CLG

Hi,
First, sorry for my bad english, i´m from germany  ;D

Problem: Coppermine goes over 3 Level and 2 previews to the download image site.

I would like a Startscreen with new pictures and some statistics. In the Navigation output must been see all the categories where´s online. When you click on a category all the albums inside must be displayed (like a,b,c,d,e,f (see screenshot1) and they must listen the new pictures from the album. Okay so far..

Then when you click on a album (a,b,c,d or else) and you will see all details and a small thumbnail on a box where i have designed. The big Problem is that i can´t find the variables for the box like image size, thumbnailcreation for 120px width (look screenshot2) and how i can get in the template.html or in the theme.php.... Also a problem is the Download URL Link, it must be a zip download, but i have seen some addon in features/request.. i have tested 4 day´s along and can´t solve this problem ;(


Thank you in advance, i hope somebody can help me *please*

greetings, CLG



Edit1:
I have found some code from displayimage.php with the infos, but how can i get in my table?

// Display picture information
function html_picinfo()
{
   global $CONFIG, $CURRENT_PIC_DATA, $CURRENT_ALBUM_DATA, $THEME_DIR, $FAVPICS;
   global $album, $lang_picinfo, $lang_display_image_php, $lang_byte_units;

   if ($CURRENT_PIC_DATA['owner_id'] && $CURRENT_PIC_DATA['owner_name']) {
       $owner_link = '<a href ="profile.php?uid=' . $CURRENT_PIC_DATA['owner_id'] . '">' . $CURRENT_PIC_DATA['owner_name'] . '</a> ';
   } else {
       $owner_link = '';
   }

   if (GALLERY_ADMIN_MODE && $CURRENT_PIC_DATA['pic_raw_ip']) {
       if ($CURRENT_PIC_DATA['pic_hdr_ip']) {
           $ipinfo = ' (' . $CURRENT_PIC_DATA['pic_hdr_ip'] . '[' . $CURRENT_PIC_DATA['pic_raw_ip'] . ']) / ';
       } else {
           $ipinfo = ' (' . $CURRENT_PIC_DATA['pic_raw_ip'] . ') / ';
       }
   } else {
       if ($owner_link) {
           $ipinfo = '/ ';
       } else {
           $ipinfo = '';
       }
   }

   $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
$info[$lang_picinfo['Username']] = htmlspecialchars($CURRENT_PIC_DATA['user_name']);
   $info[$lang_picinfo['Album name']] = '<span class="alblink">' . $owner_link . $ipinfo . '<a href="thumbnails.php?album=' . $CURRENT_PIC_DATA['aid'] . '">' . $CURRENT_ALBUM_DATA['title'] . '</a></span>';

   if ($CURRENT_PIC_DATA['votes'] > 0) {
       if (defined('THEME_HAS_RATING_GRAPHICS')) {
           $prefix = $THEME_DIR;
       } else {
           $prefix = '';
       }
       $info[sprintf($lang_picinfo['Rating'], $CURRENT_PIC_DATA['votes'])] = '<img src="' . $prefix . 'images/rating' . round($CURRENT_PIC_DATA['pic_rating'] / 2000) . '.gif" align="absmiddle"/>';
   }

   if ($CURRENT_PIC_DATA['keywords'] != "") {
       $info[$lang_picinfo['Keywords']] = '<span class="alblink">' . preg_replace("/(\S+)/", "<a href=\"thumbnails.php?album=search&search=\\1\">\\1</a>" , $CURRENT_PIC_DATA['keywords']) . '</span>';
   }

   for ($i = 1; $i <= 4; $i++) {
       if ($CONFIG['user_field' . $i . '_name']) {
           if ($CURRENT_PIC_DATA['user' . $i] != "") {
               $info[$CONFIG['user_field' . $i . '_name']] = make_clickable($CURRENT_PIC_DATA['user' . $i]);
           }
       }
   }

   $info[$lang_picinfo['File Size']] = ($CURRENT_PIC_DATA['filesize'] > 10240 ? ($CURRENT_PIC_DATA['filesize'] >> 10) . '&nbsp;' . $lang_byte_units[1] : $CURRENT_PIC_DATA['filesize'] . '&nbsp;' . $lang_byte_units[0]);
   $info[$lang_picinfo['File Size']] = '<span dir="LTR">' . $info[$lang_picinfo['File Size']] . '</span>';
   $info[$lang_picinfo['Dimensions']] = sprintf($lang_display_image_php['size'], $CURRENT_PIC_DATA['pwidth'], $CURRENT_PIC_DATA['pheight']);
   $info[$lang_picinfo['Displayed']] = sprintf($lang_display_image_php['views'], $CURRENT_PIC_DATA['hits']);

   $path_to_pic = $CONFIG['fullpath'] . $CURRENT_PIC_DATA['filepath'] . $CURRENT_PIC_DATA['filename'];

   if ($CONFIG['read_exif_data']) $exif = exif_parse_file($path_to_pic);

   if (isset($exif) && is_array($exif)) {
       if (isset($exif['Camera'])) $info[$lang_picinfo['Camera']] = $exif['Camera'];
       if (isset($exif['DateTaken'])) $info[$lang_picinfo['Date taken']] = $exif['DateTaken'];
       if (isset($exif['Aperture'])) $info[$lang_picinfo['Aperture']] = $exif['Aperture'];
       if (isset($exif['ISO'])) $info[$lang_picinfo['ISO']] = $exif['ISO'];
       if (isset($exif['ExposureTime'])) $info[$lang_picinfo['Exposure time']] = $exif['ExposureTime'];
       if (isset($exif['FocalLength'])) $info[$lang_picinfo['Focal length']] = $exif['FocalLength'];
       if (@strlen(trim($exif['Comment'])) > 0 ) {
               $info[$lang_picinfo['Comment']] = trim($exif['Comment']);
       }
   }

   if ($CONFIG['read_iptc_data']) $iptc = get_IPTC($path_to_pic);

   if (isset($iptc) && is_array($iptc)) {
       if (isset($iptc['Title'])) $info[$lang_picinfo['iptcTitle']] = trim($iptc['Title']);
       if (isset($iptc['Copyright'])) $info[$lang_picinfo['iptcCopyright']] = trim($iptc['Copyright']);
       if (isset($iptc['Keywords'])) $info[$lang_picinfo['iptcKeywords']] = trim(implode(" ",$iptc['Keywords']));
       if (isset($iptc['Category'])) $info[$lang_picinfo['iptcCategory']] = trim($iptc['Category']);
       if (isset($iptc['SubCategories'])) $info[$lang_picinfo['iptcSubCategories']] = trim(implode(" ",$iptc['SubCategories']));
   }

CLG

Hi again,
before some users say "use the search function" -> i have used them and have only found http://forum.coppermine-gallery.net/index.php?topic=12227.0 this topic.

Do you think i must pay for this change? I´m a student from germany and can pay 20 - 30$ per Paypal when you like.

greets Pascal

Donniju

Oh, CLG, your English is in fact a little bit lousy. But mine is not much better ;-) (I'm from Germany, too)

Ok, back on the topic. I'd also be interested in a solution for CLG's problem. Could anyone give me some help, too?
But I'm sorry, I do not really have the money to pay for the answer :-/

Thanks, Donniju

Joachim Müller

This is not just a matter of re-skinning coppermine, but requires code changes all over the place. You want your coppermine install to differ in functionality, not only design. This can't be accomplished that easily and I doubt that someone will make all these modifications for $30. Anyway: do you want us to move this thread to the "paid support/freelancer" board for you?

Joachim

CLG

Hi,
I´m think is better when you move to paid forum. But i have hoped somebody has the same problem and can give me a path for development. I don´t need some design modifcations, only the functionally and the variables in the 2. level of album.

I hope also somebody can help me, i have´n enough money to pay some special coder, but i think a good coder needs only a half hour for this mod, or do you thing he need more time/money?
When is not enough i´m don´t know what i should do ;/

greets Pascal

Joachim Müller

moved to paid support as you requested. If a good coder only needs half an hour for this mod this means I'm a bad coder (which is true) ;D.

Joachim

foulu

I really dont know something so i ask you some question

- do u want nav - alb list - copy right + funny box display in one table ?

- that funny box below copyright for what ?

CLG

here 3 screenshots for better understanding..

foulu


foulu

My demo link:

http://ffgalleries.net/demo

if u want to change/add/modify something, plz tell me

CLG

Yeaah very very great  ;D
Okay here some "little" change´s. When i´m click on one of the top5 pictures on start screen the picture is displaying in the normal thumbnail preview with ecard etc.., but must display in the box with zip-download and file size.. The same when i go over search and click on the search result picture i will come on the normal preview. Can you for search and top5 displaying make (after click on picture/result) the same template output as in the 3. Level?

The rest is very fine *smile* And is it possibility to add some .txt file to zip file? (like copyright.txt)
Please write me a mail for your PayPal Account, when you say it´s for free i will spend it to coppermine for development, it´s a nice script with nice support, thanks!

greetings Pascal

Joachim Müller

if foulu doesn't charge for his work, you might want to look at We need your help (well, re-reading this: even if he does charge, you might want to look at the thread mentioned above ;))...

Joachim

CLG

Another Question. I have seen that coppermine support some board system´s like vbb and wbb 2.1
Is a bridge for 2.2 in development or need you a wbb 2.2 for testing?

greetings Pascal

Joachim Müller

1) we have a "one question per thread" policy on this board you agreed to respect when you signed up for your account. Since your initial question has been answered, don't post "another question" (especially on the "paid help" board, as I doubt that you would want to pay for an answer to this question ;))
2) You can not give WBB away, it's copyrighted, and we respect copyrights.
3) Bridges (especially for commercial apps) are usually user contributions, so the answer is: no, we are currently not working on a wbb2.2 bridge file (as we can't without the code), we expect the wbb community to come up with a wbb2.2 bridge as user contribution

Joachim

CLG

ok sorry i had not read the rules  :)

For wbb2.2 i will ask some wbb2 coder´s and we can work as team on the bridge, when the bridge is finish i will post it here in coppermine forum.

Because Copyright, we have 2 x wbb2 license´s and can take one board off for experiments.

greetings Pascal

foulu