Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Downloadable link  (Read 12807 times)

0 Members and 1 Guest are viewing this topic.

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Downloadable link
« on: August 24, 2006, 01:51:40 pm »

Just added this modpack and I thought from some notes I read that there was a mod in the theme which gave a downloadable link on movies.

Is this correct? I've just uploaded a wmv and I can't see any download link

Thanks
« Last Edit: August 27, 2006, 11:39:41 am by GauGau »
Logged
Comptia A+ / Network + certified

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Downloadable link
« Reply #1 on: August 24, 2006, 06:22:23 pm »

it's in the picinfo area

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #2 on: August 25, 2006, 09:50:29 am »

Ok just loaded the Oranje template and noticed the picinfo in the theme.php file.

Loaded up my gallery, clicked on a wmv that I uploaded but didn't see any download link
Logged
Comptia A+ / Network + certified

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Downloadable link
« Reply #3 on: August 25, 2006, 01:28:35 pm »

link?

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #4 on: August 25, 2006, 01:32:49 pm »

Just quickly put it onto the Oranje theme although once I have worked out what code I need to copy I will place it on my original theme.php


www.simpilots.co.uk/gallery

thanks
Logged
Comptia A+ / Network + certified

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #5 on: August 25, 2006, 03:29:10 pm »

Just changed the theme back so not to confuse my members.

Here;s some pics

(http://img.photobucket.com/albums/v426/stuarta99/General/screen1.jpg)
(http://img.photobucket.com/albums/v426/stuarta99/General/screen1.jpg)

If I know what code I need to enter into my existing theme I will try that
Logged
Comptia A+ / Network + certified

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Downloadable link
« Reply #6 on: August 25, 2006, 03:50:44 pm »

as said, the movie dowload link is in the picinfo area. Click the movie thumb, now open the picinfo (clicking the 'i' icon), scroll down below the inline movie player and find 'Direct Link:   Play the file in your standard application'

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #7 on: August 25, 2006, 03:57:17 pm »

clicked the thumbnail so the window is up as in this pic

(http://img.photobucket.com/albums/v426/stuarta99/General/screen2.jpg)

but don't see any 'I'
Logged
Comptia A+ / Network + certified

Nibbler

  • Guest
Re: Downloadable link
« Reply #8 on: August 25, 2006, 05:16:11 pm »

The (i) in that theme is actually a word in the text above the file. Your screenshot is too small for me to be able to tell you which one.
Logged

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #9 on: August 25, 2006, 05:23:29 pm »

ok just took another shot

(http://img.photobucket.com/albums/v426/stuarta99/General/screen3.jpg)

Basically it says

Code: [Select]
You are currently viewing FILE 3/3. You can review additional details about this photo, enjoy a slideshow of all photos in this album, send an eCard to someone based on this photo, or you can leave comments about this photo. If you find this image offensive please report it to an admin.

Should I try a different theme?
Logged
Comptia A+ / Network + certified

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Downloadable link
« Reply #10 on: August 25, 2006, 05:33:39 pm »

Click "details", then scroll down.

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #11 on: August 25, 2006, 05:37:34 pm »

ahhhhhhhhhhh I'm with you now.

So is there any code that I can add to my existing theme in order to show these details permanently.

I'm guessing it's this
Code: [Select]
function theme_html_picinfo(&$info)
{
    global $lang_picinfo;
    $html = '';
    $html .= "        <tr><td colspan=\"2\"> <a name=\"fileinfo\"></a><h3>{$lang_picinfo['title']}</h3></td></tr>\n";
    $template = "        <tr><td valign=\"top\" nowrap=\"nowrap\">%s:</td><td>%s</td></tr>\n";
    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);
    return $html;

But not sure where to put it in my theme.php and if that's all I need

Looking at mine which is using the standard classic theme, all I have is

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.8
  $Source$
  $Revision: 3116 $
  $Author: gaugau $
  $Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/

// ------------------------------------------------------------------------- //
// This theme has all CORE items removed                                     //
// ------------------------------------------------------------------------- //
define('THEME_IS_XHTML10_TRANSITIONAL',1);

?>
Logged
Comptia A+ / Network + certified

rphMedia

  • Contributor
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 515
  • ***muvipix.com***
    • muvipix - Music | Video | Pictures
Re: Downloadable link
« Reply #12 on: August 25, 2006, 05:48:42 pm »

It's in your Admin config.  I think it's "File information is visible by default " or something like that.

stuarta

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 88
Re: Downloadable link
« Reply #13 on: August 26, 2006, 08:28:38 pm »

simple when you know how. thanks
Logged
Comptia A+ / Network + certified
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.