Advanced search  

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

Pages: [1]   Go Down

Author Topic: Display Browser Toolbar in Fullsize Image Window  (Read 4043 times)

0 Members and 1 Guest are viewing this topic.

bashinsk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Display Browser Toolbar in Fullsize Image Window
« on: April 06, 2011, 11:57:44 pm »

Hi!

I would like the browser toolbar to display in the fullsize image window.  After some "spelunking" it seemed that all I needed to do was change "toolbar=no" to "toolbar=yes" in displayimage.php.  Unfortunately, that didn't do it.  Can someone tell me where that setting is, or why/how it is being over-ridden?

Thanx!

http://www.bajanora.info/cpg

hb
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Display Browser Toolbar in Fullsize Image Window
« Reply #1 on: April 07, 2011, 11:14:39 am »

change "toolbar=no" to "toolbar=yes" in displayimage.php
Works for me as expected. Tested on my local testbed and on your gallery using Firebug and Firefox 4.
Logged

bashinsk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Display Browser Toolbar in Fullsize Image Window
« Reply #2 on: April 07, 2011, 05:49:29 pm »

Hi Andre',

I tested with Firebug and it worked also.  However, I then made the change in displayimage.php and even though the file saved the change did not "take."  I cleared the cache and reloaded the page, but the option was back to "no."  That is what lead me to believe that it gets set some other way, and prompted my forum question.

I agree that changing the option with Firebug and testing works as expected.  I just don't know where to make the change so it is "permanent.

Thanx!

hb
Logged

bashinsk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Display Browser Toolbar in Fullsize Image Window
« Reply #3 on: April 07, 2011, 06:16:22 pm »

Hi Andre',

Also, FYI, I changed the code in displayimage.php prior making my post yesterday.  When you tested the site, the source code was set to "toolbar=yes".  That's why I think the code is being generated some other way.

hb
Logged

bashinsk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Display Browser Toolbar in Fullsize Image Window / FIGURED IT OUT!
« Reply #4 on: April 10, 2011, 05:37:46 am »

Hello Andre',

As I suspected, making the "toolbar=yes" change in displayimage.php only works "locally" when using Firebug to debug/test.  Even though I changed the source file, the attribute remains "no" when I view the source code in the live gallery.

However, editing "includes/themes.in.php" (4 instances of the "toolbar=no" setting) results in the desired behavior.  The toolbar is displayed in the full-sized image.

After all that, however, I decided that I would not provide the toolbar after all.  Oh well...At least I learned something more about how Coppermine works! :)

hb
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Display Browser Toolbar in Fullsize Image Window / FIGURED IT OUT!
« Reply #5 on: April 11, 2011, 10:17:25 am »

editing "includes/themes.in.php"
At least I learned something more about how Coppermine works
Instead of editing that core file, you shall copy the needed parts to your theme's theme.php file. Just for your information.
Logged

bashinsk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 23
Re: Display Browser Toolbar in Fullsize Image Window
« Reply #6 on: April 11, 2011, 06:03:21 pm »

Hi Andre'.

I understand, at least conceptually.  Unfortunately, I do not yet know how to us my theme.php file to do what you suggest.  I'll work on it!

Thanx again!

hb
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.