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: removing slideshow  (Read 4925 times)

0 Members and 1 Guest are viewing this topic.

wipqozn

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
removing slideshow
« on: August 08, 2006, 01:10:08 am »

I can't see such option in admin's Gallery Configuration. My question is simple, how can I remove the slideshow feature (when we're watchin' pictures within any of site's album)?
« Last Edit: August 09, 2006, 06:46:48 am by GauGau »
Logged

Nibbler

  • Guest
Re: removing slideshow
« Reply #1 on: August 08, 2006, 01:17:54 am »

You can edit the button out of your theme, search the board. If you actually mean the filmstrip then you can disable that in config.
Logged

wipqozn

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: removing slideshow
« Reply #2 on: August 08, 2006, 04:56:08 pm »

You can edit the button out of your theme, search the board.

But that's the point, I don't know where I can do that (which file should I modify). I've serched the board, but what I found it's only an explanation for other themes. I'm usin' my own theme, based on Coppermine classic template - so theme.php consists only of "define('THEME_IS_XHTML10_TRANSITIONAL',1);" line :)
Logged

Nibbler

  • Guest
Re: removing slideshow
« Reply #3 on: August 08, 2006, 05:12:21 pm »

Copy the template you wish to modify from themes/sample/theme.php into your theme.php and modify your copy.

In your case you need to modify this template

Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;

Again, search the board for details, this has all been explained before.
Logged

wipqozn

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: removing slideshow
« Reply #4 on: August 08, 2006, 05:39:18 pm »

It's not really like that when we're usin' classic theme or classic-based one.

I've solved it. In this case we need to edit /include/themes.inc.php and there's a content you mentioned before (it's all about removin':

Code: [Select]
<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>

in that file).
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: removing slideshow
« Reply #5 on: August 08, 2006, 05:42:45 pm »

Don't edit themes.inc.php but do as already suggested

wipqozn

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: removing slideshow
« Reply #6 on: August 08, 2006, 06:06:09 pm »

But 'already suggested' doesn't make any sense to me...

How could I:

Quote
Copy the template you wish to modify from themes/sample/theme.php into your theme.php and modify your copy

if themes/classic/theme.php is empty (consists of one line), and my template is based on classic one... Or maybe I'm just too sleepy for this...
Logged

Nibbler

  • Guest
Re: removing slideshow
« Reply #7 on: August 08, 2006, 06:07:19 pm »

You copy from the sample theme into your theme. That fact that your theme is empty doesn't come into it atall.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: removing slideshow
« Reply #8 on: August 08, 2006, 06:09:12 pm »

It's not really like that when we're usin' classic theme or classic-based one.

I've solved it. In this case we need to edit /include/themes.inc.php and there's a content you mentioned before (it's all about removin':

Code: [Select]
<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>

in that file).
That's just nonsense, you mustn't edit themes.inc.php, under no circumstances. If it were that easy, Nibbler would have told you so in the first place. Undo your changes to themes.inc.php, then do as Nibbler suggested!

Dummy explanation: open themes/yourtheme/theme.php with a plain text editor, paste
Code: [Select]
// HTML template for the image navigation bar
$template_img_navbar = <<<EOT

        <tr>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{THUMB_TGT}" class="navmenu_pic" title="{THUMB_TITLE}"><img src="{LOCATION}images/thumbnails.gif" align="middle" border="0" alt="{THUMB_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="javascript:;" class="navmenu_pic" onclick="blocking('picinfo','yes', 'block'); return false;" title="{PIC_INFO_TITLE}"><img src="{LOCATION}images/info.gif" border="0" align="middle" alt="{PIC_INFO_TITLE}" /></a>
                </td>
                <!--<td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{SLIDESHOW_TGT}" class="navmenu_pic" title="{SLIDESHOW_TITLE}"><img src="{LOCATION}images/slideshow.gif" border="0" align="middle" alt="{SLIDESHOW_TITLE}" /></a>
                </td>-->
                <td align="center" valign="middle" class="navmenu" width="100%">
                        {PIC_POS}
                </td>
<!-- BEGIN report_file_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{REPORT_TGT}" class="navmenu_pic" title="{REPORT_TITLE}"><img src="{LOCATION}images/report.gif" border="0" align="middle" alt="{REPORT_TITLE}" /></a>
                </td>
<!-- END report_file_button -->
<!-- BEGIN ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{ECARD_TGT}" class="navmenu_pic" title="{ECARD_TITLE}"><img src="{LOCATION}images/ecard.gif"  border="0" align="middle" alt="{ECARD_TITLE}" /></a>
                </td>
<!-- END ecard_button -->
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{PREV_TGT}" class="navmenu_pic" title="{PREV_TITLE}"><img src="{LOCATION}images/prev.gif"  border="0" align="middle" alt="{PREV_TITLE}" /></a>
                </td>
                <td align="center" valign="middle" class="navmenu" width="48">
                        <a href="{NEXT_TGT}" class="navmenu_pic" title="{NEXT_TITLE}"><img src="{LOCATION}images/next.gif"  border="0" align="middle" alt="{NEXT_TITLE}" /></a>
                </td>
        </tr>

EOT;
into a new line before
Code: [Select]
?>
Logged

wipqozn

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: removing slideshow
« Reply #9 on: August 09, 2006, 02:08:23 am »

Okay, I got the idea. Thanks :)
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.