Author Topic: use of arrow keys in PM Classic  (Read 4897 times)

Offline Dominik Pluess

  • Member
  • **
  • Posts: 82
    • View Profile
use of arrow keys in PM Classic
« on: February 24, 2011, 06:28:27 AM »
It would be nice to use the arrow keys for "Next" and "Previous" in the PM Classic gallery.

regards

Dominik

Offline Luiz Muzzi

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Luiz Muzzi Photography
Re: use of arrow keys in PM Classic
« Reply #1 on: February 24, 2011, 04:25:55 PM »
It would be nice to use the arrow keys for "Next" and "Previous" in the PM Classic gallery.

regards

Dominik

Sorry, Dominik, but what do you mean by PM Classic gallery?
Regards,

-Luiz Muzzi

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2478
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: use of arrow keys in PM Classic
« Reply #2 on: February 27, 2011, 12:47:13 AM »
It would be nice to use the arrow keys for "Next" and "Previous" in the PM Classic gallery.

Sorry, Dominik, but what do you mean by PM Classic gallery?

Luiz, I think he means the PM Classic gallery HTML exporter. Adding the ability to use the cursor keys to move between images can be done with a couple of lines of Javascript code. It's probably not overly complicated to do, but still; someone needs to do it and then integrate it into the ruby codeā€¦
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Luiz Muzzi

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Luiz Muzzi Photography
Re: use of arrow keys in PM Classic
« Reply #3 on: February 27, 2011, 05:00:49 PM »
Thanks for your help, Hayo.
Regards,

-Luiz Muzzi

Offline Tony Hall

  • Member
  • **
  • Posts: 78
    • View Profile
    • Tony Hall Photography
Re: use of arrow keys in PM Classic
« Reply #4 on: March 01, 2011, 03:45:36 AM »
On a vaguely related note...

Is it possible for an HTML ignorant person (me) replace the words "Previous" and "Next" with arrow graphics in the exported PM Classic gallery web page?

I use this gallery to allow clients to preview the pics/captions and download the hi-res files, and the navigation options above the previews tends to look a tad crowded. For me it looks like...
[ Tony Hall Photography ]  Gallery  Previous  Next, and think it would a tad cleaner with something like..
[ Tony Hall Photography ]  Gallery  <--  -->, or maybe...
[ Tony Hall Photography ]  <--  Gallery  -->

A tiny thing, but it would be nice to do.

Many thanks.

Cheers,
Tony

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2478
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: use of arrow keys in PM Classic
« Reply #5 on: March 01, 2011, 04:16:00 AM »
Hi Tony,

This shouldn't be too difficult. Just open the template-main.rb file into an editor and replace the relevant "Next" and "Previous" texts you find in the file.

On a Mac, the .rb file can be found under /Applications/Photo Mechanic.app/Contents/builtin_templates/export/pm_classic folder, for windows the folder is located similarly.

Before you edit the file, make a copy of it first so you can always go back. Also notice that every new install of PM will overwrite the template again, so perhaps you want to copy it to your private exporter template directory (location of which can be specified in the preferences).

Hope this helps,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Tony Hall

  • Member
  • **
  • Posts: 78
    • View Profile
    • Tony Hall Photography
Re: use of arrow keys in PM Classic
« Reply #6 on: March 01, 2011, 04:56:21 AM »
Hi Hayo,

Excellent advice, thank you. It never crossed my tiny mind to simply substitute the words with "<--" & "-->". Brilliantly simple, but...

I used text arrows in my question for forum convenience (sorry for the confusion) the perfectionist in me would prefer to use graphic elements (happy to make my own). Is this possible for an HTML/Ruby ignorant person?

Thanks again for your time and trouble.

Cheers,
Tony

Offline Luiz Muzzi

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Luiz Muzzi Photography
Re: use of arrow keys in PM Classic
« Reply #7 on: March 02, 2011, 05:34:05 AM »
Hayo,
Sorry to bother you with these questions but you seem to know a lot about that...
and I am a bit of an ignorant in HTML...
I would like to know what is possible for me to do with this PM Classic gallery exporter.
I generally upload my images to Photoshelter.
TIA

-Luiz Muzzi

Offline Dominik Pluess

  • Member
  • **
  • Posts: 82
    • View Profile
Re: use of arrow keys in PM Classic
« Reply #8 on: March 03, 2011, 09:15:03 AM »
hello Luiz

Yes, Hayo's right, I mean the web page galleries. But in the PM classic template, I see no way to chance anything,
even no HTML codestring.

regards

Dominik

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2478
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: use of arrow keys in PM Classic
« Reply #9 on: March 04, 2011, 11:21:14 AM »
Hi Hayo,

Excellent advice, thank you. It never crossed my tiny mind to simply substitute the words with "<--" & "-->". Brilliantly simple, but...

I used text arrows in my question for forum convenience (sorry for the confusion) the perfectionist in me would prefer to use graphic elements (happy to make my own). Is this possible for an HTML/Ruby ignorant person?

Thanks again for your time and trouble.

Hi Tony, looking at the html file, and the code I assume you can simply replace the next/prev with html code that shows the graphic you like. Somethin like: <img src="leftarrow.gif"> (hmm, I actually think my original answer should have read &lt;-- and &gt;-- instead of simply <-- and -->)

Hope this makes sense to you :D

Success,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2478
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: use of arrow keys in PM Classic
« Reply #10 on: March 04, 2011, 11:30:50 AM »
Hayo,
Sorry to bother you with these questions but you seem to know a lot about that...
and I am a bit of an ignorant in HTML...
I would like to know what is possible for me to do with this PM Classic gallery exporter.
I generally upload my images to Photoshelter.
TIA

-Luiz Muzzi

Hi Luiz,

No problem. I'm here to help (or at least, to try to help).

The PM Classic exporter is there for creating relative simple html galleries, there's not much you can change in how it works apart from e.g. image size and layout. That is: by using the GUI, by editing the ruby code you could do almost anything. But then you're basically writing your own exporter.

While I have created a completely customized website builder script for my own websites, this script is written in perl and is run stand-alone, not from PM. I do use (a stripped version of) the PM Classic exporter in my process though, but only as it is a convenient way for me to generate the images and thumbnails I use on my websites.

Does this answer your question a bit?

Cheers,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2478
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: use of arrow keys in PM Classic
« Reply #11 on: March 04, 2011, 11:34:09 AM »
Yes, Hayo's right, I mean the web page galleries. But in the PM classic template, I see no way to chance anything,
even no HTML codestring.

Have a look at my answer to Tony's messages (both answers) discussing the template-main.rb file and changing a couple of things there. This should get you where you want I think.

Hope this helps,
    Hayo
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Luiz Muzzi

  • Hero Member
  • *****
  • Posts: 686
    • View Profile
    • Luiz Muzzi Photography
Re: use of arrow keys in PM Classic
« Reply #12 on: March 09, 2011, 03:13:47 PM »


Hi Luiz,

No problem. I'm here to help (or at least, to try to help).

The PM Classic exporter is there for creating relative simple html galleries, there's not much you can change in how it works apart from e.g. image size and layout. That is: by using the GUI, by editing the ruby code you could do almost anything. But then you're basically writing your own exporter.

While I have created a completely customized website builder script for my own websites, this script is written in perl and is run stand-alone, not from PM. I do use (a stripped version of) the PM Classic exporter in my process though, but only as it is a convenient way for me to generate the images and thumbnails I use on my websites.

Does this answer your question a bit?

Cheers,
    Hayo
[/quote]

Hayo,
It helped a lot.
Thanks.

-Luiz Muzzi