Enjoy unlimited access to all forum features for FREE! Optional upgrade available for extra perks.

Animal rescue site based on wordpress needs a bit of tweaking!

Discussion in 'General Board' started by dragon, Nov 10, 2010.

Thread Status:
Not open for further replies.
  1. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Hey chaps, I recently decided to create a rescue website which offers free pages to rescues, so they can upload their dog rescues quickly and easily, but I've run into something a bit too techy for me! So wondering if there's any wordpress gurus that can help out for a good cause?

    Basically I'm trying to list the authors as the rescue names in a drop down which when selected goes straight to that rescues page with all their listings and contact info etc, but can't work out how to do it, so it auto loads the authors page ?

    Also I wanted to exclude the admin from displaying but having trouble working that one out too?

    Any help much appreciated!

    The site is www.therescuesite.org.uk , it's brand new so no rescues on there yet!

    Matt
     
    • Like Like x 2
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    IWA Meetup
     
  3. Systreg

    Systreg Well-Known Member

    Joined:
    Oct 2008
    Posts:
    8,110
    Likes Received:
    397
    That's a nice thing to do with the domain, Matt!

    I had regged animalwelfare.org.uk when it dropped several months ago, had the same sort of thing in mind for it, not as techy as yours offering hosting and the other extras, just for listing animal rescues and animal welfare links etc, not got round to doing anything with it yet, though.
     
  4. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Cheers - watch the video and you may change your mind!
     
  5. wb

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,122
    Likes Received:
    47
    Is the authors drop down box a widget, hand coded or standard option on WordPress (never used it if it is)?

    You should be able to remove the meta login from within the theme file (easy to do, drop me the login details if you want and I'll take a look).
     
  6. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    It's hand coded to the sidebar.php

    Code:
    <li id="users">
    <h2>Choose a Rescue</h2>
    <form action="<?php bloginfo('url'); ?>" method="get">
    <?php wp_dropdown_users(array('name' => 'author','exclude_admin' => 1)); ?>
    <input type="submit" name="submit" value="view" />
    </form>
    </li>
    As you can see i've tried to exclude admin above but not working :confused:

    I want the meta login to remain so rescues can login to edit/add stuff..
     
  7. wb

    wb Well-Known Member

    Joined:
    Mar 2009
    Posts:
    2,122
    Likes Received:
    47
    Ah I see, thought you meant get rid of admin login but I know what you mean now. I think you need to write the author user ID as a number in the exclude, not the name.

    Not 100% sure as I'm not a PHP expert, but after looking here possibly the following...?

    Code:
    <?php wp_dropdown_users(array('name' => 'author','exclude=1')); ?>
     
    Last edited: Nov 10, 2010
  8. Systreg

    Systreg Well-Known Member

    Joined:
    Oct 2008
    Posts:
    8,110
    Likes Received:
    397
    Watched it now, bloody sad video, brings a lump to the throat watching the injection parts, so yes, I will get something on my domain soon, even if it's just a basic list of links to animal rescue/welfare sites etc for starters.
     
  9. Pred United Kingdom

    Pred Well-Known Member

    Joined:
    Jul 2006
    Posts:
    7,145
    Likes Received:
    71
    good work dragon!

    buster looks a lovely lad
     
  10. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Cheers! Got a few rescues on board already

    @wb - thanks for that but still no difference, I'll just leave it there, not the end of the world!
     
  11. jimm United Kingdom

    jimm Active Member

    Joined:
    Feb 2008
    Posts:
    683
    Likes Received:
    13
    Are you wanting individual authors though? From my mind you want individual posts? What if an an author does 2 or more rescues?
    What I would do is list posts in a specific category (eg rescues).
    Could probably knock that up for you if you wanted?
     
  12. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Hi Jim - yes each "author" will actually be a rescue centre/etc.. so when you click on author posts it will show each rescue dog/cat/animal available from that rescue centre.
    Hope that makes sense?
     
  13. jimm United Kingdom

    jimm Active Member

    Joined:
    Feb 2008
    Posts:
    683
    Likes Received:
    13
    But what if a real person offers two rescues?
    Or are you going to create a new author even though they are the same physical person?
     
  14. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Usually people go through a rescue centre/shelter to rehome their dog, but I can add a section for private rehomings..each animal rescue will be in a new post, so if its' a pair of cats for example they'll be in one post, under private rehomings category... I'm kind of just going along and adapting the site as and when needs it.
     
  15. Pred United Kingdom

    Pred Well-Known Member

    Joined:
    Jul 2006
    Posts:
    7,145
    Likes Received:
    71
    given you a backlink in 'links' as 'dog rescue'
    appears on every page
    boarding kennels
     
  16. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Wow! nice one thanks :cool:
     
  17. jimm United Kingdom

    jimm Active Member

    Joined:
    Feb 2008
    Posts:
    683
    Likes Received:
    13
    Fair enough,
    this will exclude admin (if you put the right number in)
    PHP:
    <?php wp_dropdown_users(array(exclude => 'exclude=1')); ?>
     
  18. dragon

    dragon Well-Known Member

    Joined:
    Sep 2008
    Posts:
    1,210
    Likes Received:
    29
    Yess it worked!! Cheers! :)
     
  19. jimm United Kingdom

    jimm Active Member

    Joined:
    Feb 2008
    Posts:
    683
    Likes Received:
    13
    No problem!


    *cough* rep ;) *cough*
     
    • Like Like x 1
Thread Status:
Not open for further replies.