• Resolved philmay

    (@philmay)


    Hello, I completely understand that this plugin is really designed for individual shelters to use. However I do need to be able to use this for a very specific purpose. I am developing a social network for exotic bird owners and enthusiasts. http://www.avianally.com is designed for promoting proper care and treatment for birds as well as a way for people to talk about experiences and find products.

    Here is my problem: AvianAlly is not a shelter. I need to be able to show all birds for adoption across the united states. Even though we are not a shelter, what we do will help avian rescues and shelters all across the country find homes for these beautiful animals. More importantly, when it comes to exotic birds, they unfortunately end up in shelters because people do not understand the incredible amount of work required to own one. AvianAlly is ONLY for bird owners, and this will ensure the birds go to qualified homes. Please advise on how i could use this plugin to accomplish this.

    My other thought was to allow individual shelters and rescues to use the plugin individually, but the setup would be impossible as wordpress itself does not allow a plugin to be installed more than once.

    http://wordpress.org/plugins/petfinder-listings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bridgetwes

    (@bridgetwes)

    You’ll need a custom petfinder/WordPress implementation to achieve what you are looking for. I think there is a list of WordPress developers someplace on wordpress.org or you could look for a local website development agency or freelancer.

    Thread Starter philmay

    (@philmay)

    ok, how many shelter ids can i fit into one installation of the plugin?

    Currently, you can only query for one shelter ID. As Bridget said, it would require a significant amount of modification.

    I suggest you read up on the API Documentation found at:
    http://www.petfinder.com/developers/api-docs

    I am currently too busy to do this, but here are some guidelines in case you have the resources to implement it.

    1. If your only requirement is it to display random birds with no consideration of breed, it can be accomplished quite easily.
    Modify `petfinder-listings.php:
    -Change http://api.petfinder.com/shelter.getPets?key=`
    to $xml = simplexml_load_file( "http://api.petfinder.com/pet.getRandom?&output=full&animal=bird&key="

    -Change if( count( $xml->pets->pet ) > 0 ){
    to if( count( $xml->pet ) > 0 ){

    -Change foreach( $xml->pets->pet as $dog ){
    to foreach( $xml->pet as $dog ){

    2. If you wish to filter by breed, append &breed=nameofbreed to the query string. To see a list of breeds, look at the response from http://api.petfinder.com/breed.list?key=keygoeshere&output=full&animal=bird Note that you need to put in your API key, and only one breed can be filtered at a time.

    3. If you wish to filter by location, append &location=ziporstateorcity.

    4. If you wish to allow users to interactively search for the birds using various filters, then you would need to create a form. But remember to sanitize user input!

    Best of luck.

    Thread Starter philmay

    (@philmay)

    Thank you both very much for your input and guidance. I do not have the proficiency to modify the plugin myself, and this project is funded out of pocket as a personal project for a good cause. Looks like I will need to hire a developer, I hope its not too expensive.

    Your first and last solution (non biased breed listing and interactive searching) are BOTH features that I would like to have. I am semi-proficient at debugging code, but not at all at writing or heavily modifying so i guess I will be putting this on the back burner and focus on the rest of the sites features for now.

    Thanks a ton, both of you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘country wide shelter ID?’ is closed to new replies.