Announcement

  •  » Extensions
  •  » Looks Like GBo - picture map regions changed - provided howto

#1 2012-02-22 02:27:44

coudy
Translation Team
2012-02-19
4

Looks Like GBo - picture map regions changed - provided howto

Hu guys,
I find this plugin really good and although I didn't ask for permission to change and post this info its owner GBo I hope he forgives me though.

As for a request of my wife I changed regions of picture map to better suit her needs.

Basically increased considerably size of the "next picture" region in expense to all three remaining.

Picture attached shows it more clearly.

And now how to change it:
1. in admin side of this plugin select "Add navigation bar on picture" to YES

2. in file \plugins\look_like_gbo2\main.inc.php

find line (232) beginning with:
//-------      Usemap   values         -------------

3. and change values:

/* left --> Prev */    'LEFT_X1'  => 0,  'LEFT_Y1'  => 0,
                'LEFT_X2'  => round($imgw * 0.1), 'LEFT_Y2'  => $imgh ,
/* up */             'UP_X1'  => round($imgw * 0.1) ,  'UP_Y1'  => 0,
                'UP_X2'  => $imgw , 'UP_Y2'  => round($imgh * 0.05),
/* high */             'HIGH_X1'  => round($imgw * 0.1) , 'HIGH_Y1'  => round($imgh * 0.95) ,
                'HIGH_X2'  => $imgw, 'HIGH_Y2'  => $imgh,
/* right -> next */    'RIGHT_X1'  => round($imgw * 0.1) , 'RIGHT_Y1'  => round($imgh * 0.05),
                'RIGHT_X2'  =>  $imgw  , 'RIGHT_Y2'  => round($imgh * 0.95) ));


@BGo
I don't expect you to have time to implement settings of picture map into its admin-plugin page, but would you consider it? Every new version of this plugin would mean for me to change its picture map settings again.

regards,

Coudy

Offline

 

#2 2012-02-28 19:22:06

gbo
Member
Martigues
2006-11-01
456

Re: Looks Like GBo - picture map regions changed - provided howto

Hello Coudy,
You want to be able to change the map definition directly  in  the LLGBO plug-in administration page.
I had not foreseen this option.

For the PIWIGO version 2.4, I need to change a lot of thing in the plug-in.
If I find enough time, I will try to put the picture map settings in the administration screen.

Offline

 
  •  » Extensions
  •  » Looks Like GBo - picture map regions changed - provided howto

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact