WordPress.org

Support

Support » Plugins and Hacks » Seamless Donations » Hooks for thermometer

Hooks for thermometer

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi!

    Thats a great idea, but not part of the plugin yet – if you have a patch that adds target amount and thermometer I could take a look at rolling it into the plugin.

    Cheers…

    …Allen

    Hi Allen,
    I’m relatively new to WP development. I just got into the code. Here is a website which has the type of display we would like to implement: http://www.donorschoose.org/project/first-grade-adventure/1158064/

    How long do you think this would take to implement?

    If I were to implement this, what storage method would you use to store the Goal Amount? I was thinking of adding to the $fund_array either a second array with SHOW/HIDE and the Amount or concatenating the 2 values with a {tab} character or similar. What would you recommend?

    Thanks,
    Tony

    Hmmmm… The fund array is exceptionally simple right now and is stored in a single option something like this:

    array(
    'Name of fund one' => 'SHOW',
    'Name of fund two, which is not displayed' => 'HIDE'
    )

    I think I would refactor that in a new version to something like

    array(
    array( name => 'Name of fund one', visibility => 'SHOW', goal => 1000 ),
    array( name => 'Name of fund two, which is not displayed', visibility => 'HIDE', goal => false
    )

    where false could indicate no goal.

    In an init hook or somewhere, you’d have to recognize that the old style array is present and transfer any data into the new style.

    Of course, you’d also have to change the code that displays the fund options to recognize the new array structure.

    Probably not take long to make these changes – if you write a patch for it, I could take a look – I hope to have the plugin on GitHub soon for pull requests too.

    Cheers…

    …Allen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hooks for thermometer’ is closed to new replies.
Skip to toolbar