1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

My eBay plugin for Wordpress - get it while it's still FREE :)

Discussion in 'eBay' started by Kerosene, Mar 9, 2008.

  1. #1
    I've always threatened to do this... and now I have :)

    For the last couple of years I've been directing people to an ancient post on TonyRocks' blog where he wrote a tutorial (with my help) on how to put eBay auctions on your WP blog. At least a handful of DP members have gone on to develop their own successful custom scripts using this method (myself included), but it seems there are still plenty of people having trouble setting up their own script.... so I've gone ahead and made a free one, and written a little tutorial on how to get it working.

    It's nothing spectacular, and is more a 'stepping stone' for people to write their own custom scripts (I use a heavily modified version on my own sites). But, out of the box, it should hopefully work for most people.

    I've tested it using Wordpress 2.3.3 (the latest version), and there doesn't seem be any probs. But I'm sure there will be - so if anyone tries it out and can't get it working, let's hear about it. If there's enough (or any) interest, I might consider adding more and more features...

    Blablabla... here it is :p :

    [​IMG]
    http://www.thewebsiteprofessionals.com/twp-auctions/


    Sorry about the image, but I'm on an ebook/DVD cover making spree and couldn't resist :p
     
    Kerosene, Mar 9, 2008 IP
  2. webtarded

    webtarded Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Thats really nice of you, you're alright. :D

    I found a minor problem though, not sure if it's exec-php or wordpress or what, but it wont work unless you change your start tag to <?php instead of the shorthand <?. I changed it in the auction file, and where you call it in the post and it seems to work. Now, if you can tell me how to paginate automatically with that you'll get my vote for dper of the century...;)

    In any event, thanks for posting that. Damn nice of you to help others out like that.
     
    webtarded, Mar 9, 2008 IP
    Kerosene likes this.
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    I use <? instead of <?php (bad habit I know) and it works... but thanks for letting me know. I'll go change it right now.

    As for pagination - you're on your own! Teach a man to fish and all that... :D

    ---

    EDIT : Now updated to fix the <?php laziness :p

    ---
    Took me a while to realize why I find that funny :)
    [​IMG]
     
    Kerosene, Mar 9, 2008 IP
  4. mcjp6

    mcjp6 Well-Known Member

    Messages:
    1,140
    Likes Received:
    49
    Best Answers:
    0
    Trophy Points:
    140
    #4
    I'll second that.

    Not as technical as webtarded so I hope all goes well as I will have to use "out of the box"

    thanks
     
    mcjp6, Mar 9, 2008 IP
  5. proxywhereabouts

    proxywhereabouts Notable Member

    Messages:
    4,027
    Likes Received:
    110
    Best Answers:
    0
    Trophy Points:
    200
    #5
    Thanks for sharing..
    And the image make your thread somewhat professional.. :p
     
    proxywhereabouts, Mar 9, 2008 IP
  6. gsv13

    gsv13 Well-Known Member

    Messages:
    2,773
    Likes Received:
    114
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Will you make it seo friendly in future??
     
    gsv13, Mar 9, 2008 IP
  7. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #7
    Maybe. But for now, I'd prefer to keep it free, and let it just be a stepping stone for people to get started on their own.
     
    Kerosene, Mar 9, 2008 IP
  8. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #8
    Thanks, very nice and simple one Kerosene.
    Now I just have to find out how to remove the "Buy it now" "Add to watch list" and redirect all links so it dont look like they go to ebay. And then add nofollow on the link and the image link.
    Then I am all set :)
     
    login, Mar 12, 2008 IP
  9. BusinessMinded08

    BusinessMinded08 Peon

    Messages:
    1,503
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Kerosene, you like a eBay/CJ mastermind :) Thanks... will definitely test out on my blog...
     
    BusinessMinded08, Mar 12, 2008 IP
  10. Mmecca

    Mmecca Guest

    Messages:
    225
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Thanks for the freebie, it's much appreciated.

    I really need to learn myself some programming skills :D
     
    Mmecca, Mar 12, 2008 IP
  11. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #11
    It's pretty easy to do this - have a look at PHP's str_replace and preg_replace - you'll figure it out ;)

    Excellent! That's why I'm giving this basic script away for free - so that people will take it and tweak it themselves, hopefully learning something in the process :)
     
    Kerosene, Mar 12, 2008 IP
  12. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #12
    Do you obfuscate the ebay URL's to avoid the (rumored) google slap?
    That was one of the reasons I bought phpbaypro.
    One drawback of phpbaypro's WP plugin is that you can't use complex search strings (and, or, etc.).
    Can you use these strings with your plugin?
     
    hovesh07, Mar 13, 2008 IP
  13. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #13
    No and no - not for free anyway :D But it can be done with some tweaking.
    The script I use on my own sites hides the ebay URL and thumbnail image location.

    All the SEO tweaks are easy enough to do yourself - just think of what you want to do, and then search the php manual for how to do it :)

    I might eventually release a script with lots of SEO features - if you guys can give me an idea of what features you want, and what you'd be willing to pay, then maybe they'll be a "Pro" version in the near future...
     
    Kerosene, Mar 13, 2008 IP
  14. hovesh07

    hovesh07 Well-Known Member

    Messages:
    389
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    108
    #14
    OK, here's a feature: The ability to get results from the ebay stores and express. That needs the ebay API. Why the regular RSS doesn't do this is beyond me. And that is worth paying for.
     
    hovesh07, Mar 13, 2008 IP
  15. webtarded

    webtarded Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #15
    You know, i hadn't thought much about adding nofollow to my outbound links until you mentioned it. I had to do a little searching, but found this plugin--WP SEO Master-- http://www.bercongroup.com/?dl=1

    I'm not sure if it works with kerosene's script, i haven't tried it with that, but it definitely works on my setup. It adds nofollow to all my ebay links and images. Might be worth a try anyway.
     
    webtarded, Mar 13, 2008 IP
  16. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #16
    That plugin works like a charm :) But remember to configure what you want nofollow on, i had to change some, but thats easy.

    Kerosene, I think I will let a very good and cheap guy from bangladesh do the php for me :) So many things to do... hehe. The DP user newrace2008 is a very good, nice and quick php programmer that I can really recommend to anyone.
     
    login, Mar 13, 2008 IP
  17. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #17
    hey thanks a bunch
     
    DomainCo.US, Mar 13, 2008 IP
  18. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #18
    I am sure its easy :D but str_replace and preg_replace in what file? :)
     
    login, Mar 13, 2008 IP
  19. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #19
    In the twpauctions.php file.

    That's the only file you need to edit if you want to tweak it yourself.
    Is nofollow all you want? ... PM sent ;)
     
    Kerosene, Mar 13, 2008 IP
  20. darkmessiah

    darkmessiah Peon

    Messages:
    500
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #20
    Kerosene, did you implement a feature to only show thumbnails?
     
    darkmessiah, Mar 13, 2008 IP