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: Small iScroll extension...  (Read 10379 times)

0 Members and 1 Guest are viewing this topic.

Papageier

  • Contributor
  • Coppermine newbie
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 2
Small iScroll extension...
« on: March 13, 2016, 07:10:47 pm »

Hi,

I've been using the iScroll plugin for some time - nice work btw! - but always missed an option to choose myself which pictures would get featured on my album front page. Took some time today to do that, and it works fine now for me.

Basically what I've done is to add a "keyword meta album", where you can choose "Keyword" as meta album option in the admin section, type in a keyword of your choice (e.g. "iscroll") and have iScroll pull images with that keyword from the database. See screenshots.

So I thought: maybe someone else would be interested in using this as well.  :)

But:
  • I'm not much of a PHP programmer. Java, C#, Perl, Python, ... but not much PHP.
  • This is my first (possible) contribution to a coppermine plugin.
I've tried my best to do cameleon-style coding, sticking to the constructs and conventions in place, but I may have done clumsy or even dangerous things whithout noticing. Someone should probably look into it before it gets used in the wild.

And I need to do more testing (esp. installing/updating/uninstalling; there also still seems to be an issue with regex checks of the keyword).
But before I do that - would anyone be interested in this?

I've attached a simple diff of my patch against iScroll V2.1, it's really not much.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Small iScroll extension...
« Reply #1 on: March 14, 2016, 01:28:46 pm »

Thank you for your contribution. I had a short look at the patch file and haven't found any (major) issue.
Logged

Papageier

  • Contributor
  • Coppermine newbie
  • ***
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 2
Re: Small iScroll extension...
« Reply #2 on: March 15, 2016, 08:56:14 pm »

*phew* :)

So I'll do a bit of QA and post an update when ready.

</papa>
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.