Not signed in (Sign In)

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Help keep Vanilla free:
Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
  1.  # 1
    Greets,

    I'm looking for someone to create some kind of donate to user add-on.

    Specs: http://www.mesoconcepts.com/pub/vanilla-buy-a-drink.zip

    Terms: Once the work is completed, you must add it to the vanilla add-on repository for the benefit of the entire community, under the BSD license.

    Budget: No more than $100.

    If you can get this done quickly, please email denis at mesoconcepts dot com.

    Thanks for reading!
    Denis
    • CommentAuthorToivo
    • CommentTimeAug 18th 2006
     # 2
    I guess it is easier by some "currency"
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 18th 2006 edited
     # 3
    Hmm... interesting problem. Code is a work in progress:

    <?php
    /*
    Extension Name: Buy A Drink
    Extension Url: http://lussumo.com/addons/
    Description: Adds a kudos link to donate to another forum user.
    Version: 1.0
    Author: WallPhone
    Author Url: http://wallphone.com/
    */

    //snip -- See the addon site for the rest of the code
    •  
      CommentAuthornathan
    • CommentTimeAug 18th 2006
     # 4
    BSD license? How does that go with the rest of it being GPL? I could be fine, but I have never mixed and matched licenses before, so I have no experience here.
    • CommentAuthorEvdawg
    • CommentTimeAug 19th 2006
     # 5
    BSD is closer to public domain; you can take BSD code and make it proprietary.

    Since Vanilla, People, and Framework are under the GPL, doesn't that mean all extensions must be GPL? (since they will include parts of Framework/People/Vanilla?) I'm a little confused about this.
  2.  # 6
    @Wallphone: Please don't forget to send me your paypal address -- I insist in paying you for your work. :)
    • CommentAuthorithcy
    • CommentTimeAug 19th 2006
     # 7
    addons can be relicensed under BSD as long as mark gives official consent. this is within the terms of the GPL.
    • CommentAuthorEvdawg
    • CommentTimeAug 19th 2006
     # 8
    ah ok :) this is a good thing, the more commercial development we get the better
    • CommentAuthorithcy
    • CommentTimeAug 19th 2006
     # 9
    i should have phrased it differently: they can't be licensed under BSD unless mark gives official consent.
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 19th 2006
     # 10
    Shouldn't the choice of the license belong to the code author? ... Admittedly, some code was inspired by Mark, so it may need his stamp of approval.

    Personally, I don't care what license it is under, as long as its freely avaliable, and is agreed to by the extension's sponsor.

    @Denis... I will email you when done.
    • CommentAuthorithcy
    • CommentTimeAug 19th 2006
     # 11
    Shouldn't the choice of the license belong to the code author?

    it was. Mark chose GPL for vanilla. addons are part of vanilla, so they're covered by vanilla's GPL.

    this is what makes a lot of people choose BSD licensing - it's not so restrictive.
    • CommentAuthormary
    • CommentTimeAug 19th 2006
     # 12
    this is what makes a lot of people choose BSD licensing - it's not so restrictive.
    — ithcy

    Yep. I, for one, am fed up with GPL. It really doesn't make much sense to use it for PHP software anyway, but it's kind of an "everybody uses it" thing.
  3.  # 13
    As a developer, I tend to prefer BSD over GPL. It doesn't lock you up in something you don't necessarily agree with. As a customer, I tend to prefer BSD as well, for the same reason. For this add-on, I'll be happy with either as long as it ends up in the repository for the benefit of everyone. :)
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 20th 2006 edited
     # 14
    Here is the current TODO for the above code.

    TODO:
    [X] Calculate MD5 client-side and use in linkage (send as POST instead of GET?)
    [X] Figure out how to parse 'Buy A Drink' prefrence to use both on the discussion page as well as before redirecting to paypal
    [ ] Include the drinker prefrence along with the query that loads the discussions--instead of the 'AcceptsDrinks' function (otherwise, its an extra query for every comment!) ... this may require a new delegate... Partial code in place for when delegate is added
    [ ] Code cleanup to properly use the database definitions in queries & consolidate conditionals
    [ ] Incorporate user-defined URLs for wishlists etc.

    Another thought is to allow other types of compensation--Amazon wish lists, and I am sure there are others.
  4.  # 15
    The most useful of the alternatives will likely be google wallet, if/when it gets rolled out in India.
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 23rd 2006 edited
     # 16
    This extension is now functional, and thus listed in the Add-ons.

    It does not yet use the client-server md5 handshake before revealing the email address, but does require a valid session so any spambot must have an account and support cookies to be able to see it.

    The handshaking is expected to be implemented this weekend if time permits.
    •  
      CommentAuthorbugsmi0
    • CommentTimeAug 24th 2006 edited
     # 17
    how does this work ? I don't see a link anyway when I added the extension

    revised: ok I got it working that's wicked, buy me several drink$

    but does that mean the person has to sign up with paypal in order for it to work ?

    seems there needs to be a universal set up where people can buy you a drink with credit card with no need to sign up for anything.
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 24th 2006
     # 18
    Yes, you must both have a paypal account and link it to the email address in your account profile to recieve the payment.

    I am planning on giving the user more options for compensation--Amazon has a wishlist feature where you can buy items for others as a kickback, and I am sure there are many more online 'gift registry' type systems. (None I know of that sell alchaholic beverages, ::sigh::)

    How would one send money to someone who has not registered? Western union? hmmm...
    •  
      CommentAuthorbugsmi0
    • CommentTimeAug 24th 2006
     # 19
    www.paypalsucks.com

    would be great if when you gave money to someone it would go directly into their bank account intstead of paypals greedy hold basket, I like the idea of buy me a drink being stricly money $$, anything would be a hassle maybe. Sending $2 or $3 or $5 would be a nice treat but then paypal would get their cut lol and I guess out of $2 you'd get a few pennies
    •  
      CommentAuthorWallPhone
    • CommentTimeAug 24th 2006
     # 20
    Well, I looked into western union to send a couplea bucks:
    $5.00 - Amount to send
    $16.00 - Money transfer fee*
    $21.00 - Total estimated amount

    Makes PayPal look really good. I believe PayPal doesn't take a cut if both sender and reciever are members. AFAIK, they charge because credit card companies charge a fraction of the transaction.
    •  
      CommentAuthorgarvin
    • CommentTimeAug 24th 2006
     # 21
    The same functionality would be cool, except without actual money. Like a points system, etc. It would work the same, but it would list the points earned, and no communication with paypal, etc.
  5.  # 22
    bugsmi0 do you understand the complexities involved in accepting credit/debit card or direct payment transactions online? I really doubt that many normal forum admins would have such systems readily available to them unless they were running an e-commerce site. Wanting the money to go straight to your account is one thing but actually achieving it (especially with noone taking a cut on the way) is pretty difficult. Why do you think sites like paypal and worldpay are so popular?
    •  
      CommentAuthorbugsmi0
    • CommentTimeAug 24th 2006
     # 23
    well I can dream can't I ? ;-) yea I know its complexed

    what good is a point system ? who cares about points, send money$$ and lots of it lol

    I guess since buy a drink is specific, it would be ok if both parties got a paypal account for the purpose of sending and receiving money, its just beer money ;-) but I think you have to remember to transfer it to your account and if you are too drunk you might forget
    •  
      CommentAuthoricouto
    • CommentTimeAug 25th 2006
     # 24
    I could be wrong here - so don't quote me on this, without checking on the PayPal site first - but I do believe that you don't have to have a PayPal account to be able to pay someone who is a customer of theirs. As a PayPal customer, for instance, I can use PayPal to create a "donate" button that I can place on my website. If a visitor clicks it, they end up in PayPal's site, where they will be directed to use their credit card to send me some money - and it doesn't matter whether they are a PayPal member or not.

    I believe that if the transaction is to involve a LARGE sum of money, then yes, you do have to be a PayPal member to be able to pay, because when you become a member they perform some bank and credit card checks. I can't remember what PayPal considers to be a 'large' sum, though, but it was either several hundred, or a few thousand dollars, so if you are expecting to receive just the odd $5 to $50 donation, you should be fine.

    Someone, please correct me if I'm wrong!
    •  
      CommentAuthorWanderer
    • CommentTimeAug 25th 2006 edited
     # 25
    Consider yourself corrected icouto...
    "Signing up for a PayPal account will be required to complete this purchase."

    Later: Actually you are half right buddy, with a business account you have the option of accepting money via PayPal or direct from a Credit card (without requiring PayPal membership from the payer).
    •  
      CommentAuthorbugsmi0
    • CommentTimeAug 25th 2006 edited
     # 26
    is there any chance you can have this set up to use google checkout too ?

    also how to include a target= _blank to open the paypal page in a new window /
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 23rd 2006
     # 27
    This has been updated to fix some issues with the md5 verification not working in some browsers.

    bugsmi0: Replace lines 57 - 59 of with this code block:
    '" onClick="window.open(\''. $url.
    '\' + \'&amp;VC=\' + hex_md5(\''. md5($email . date('ymd')) ."' + '".
    $Comment->Context->Session->UserID. '\')) ; return false">'.

    Note the changes: document.location href = becomes window.open( and an second close paren added just before return false

    I think this should be an admin prefrence... will add it to the plans for version 1.0
    • CommentAuthoralnokta
    • CommentTimeSep 23rd 2006
     # 28
    No way .. Mark was right when he had choosen GPL ... GPL means that no one is going to restrict the software to who pays ... if you improve it .. everyone will have what you have ... you can make money out of GPL ... I would hate to see a BSD licensed software becomes proprietary and locked ... IMHO
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 23rd 2006
     # 29
    @WallPhone '" onClick="window.open(\''. $url.
    '\' + \'&amp;VC=\' + hex_md5(\''. md5($email . date('ymd')) ."' + '".
    $Comment->Context->Session->UserID. '\')) ; return false">'

    what is this code ?

    also lines 57-59 are only }
    }
    $Context->AddToDelegate("CommentGrid", "PostCommentOptionsRender", "BuyADrink");
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 23rd 2006
     # 30
    Download the version I uploaded last night :-)
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 23rd 2006 edited
     # 31
    ok got it but what does that new code do is this for using google checkout ? when I added that code and tried out the link nothing appears only fcc10c6735bd241ca032bb2badfe6232 1 1

    ok I got it, I think you responded to a previous question I had before about opening in a new window, so this code is for doing just that cool,

    now as to my other question can we use google checkout lol ;-)
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 23rd 2006
     # 32
    That will come with the next version... the plan is to use the name-value pairs on the account preferences to link to any other type of URL
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 23rd 2006 edited
     # 33
    I just experienced a very odd issue,

    the buy drink extension works on one install but not another, they are both on the same server

    the link is there but when you click on it all it does is open up the same discussions page in a new window, on the other install it does redirect to paypal, both extensions have the same file permissions
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 23rd 2006
     # 34
    hmm... try reinstalling the one that doesn't work...
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 23rd 2006
     # 35
    didi that a few times and still no go
    •  
      CommentAuthorWallPhone
    • CommentTimeSep 23rd 2006 edited
     # 36
    Compare the HTML source behind each link--see what is different between the working one and the bad one.

    I get:<a class="BuyADrink" href="extension.php?PostBackAction=BuyADrink&amp;AuthorID=1" onclick="window.open('extension.php?PostBackAction=BuyADrink&AuthorID=1' + '&VC=' + hex_md5('1f724ece9966b874357cb4c152e55d58' + '1')) ; return false">Buy a Drink</a>

    The VC should be different, but everything else the same... also, does this page it loads have the code at the top?
    •  
      CommentAuthorbugsmi0
    • CommentTimeSep 24th 2006
     # 37
    they both look the same similiar to yours, maybe its a conflict with another extension ?
    • CommentAuthorfery
    • CommentTimeSep 24th 2006
     # 38
    ok i went here http://www.mesoconcepts.com/ to check your site out first...

    ok if i get you right, youre searching for a donkey to do this job for 100$ and you sell it then for 500 or more to your client ... probably thats the reason why you said "quickly".

    [ironic]:thumbsup:[/ironic]
    •  
      CommentAuthorØ
    • CommentTimeFeb 7th 2007
     # 39
    Hi folks.

    Does someone know a way to limit the use of this extension to some specific roles? I managed to allow guests to donate (I know it reveals the email, so my users will be warned about this) but what should I do to disallow a particular role to display the link?

    I've also seen Wallphone had some pretty cool ideas to improve his extension, any plans to develop it further in the future? I really like the idea of a community-driven donation logic. Knowing someone may like what you post, whatever it is (pictures, code, stories...) and give you a little something for this is probably a good way for everyone on a forum to try to make high-quality posts. I'm sure there's something pretty interesting there that desserves to be explored.
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 7th 2007
     # 40
    You could wrap it in an IF statement that makes sure the role is one that you want to allow this extension.

    I'm about to release a new extension today... next one that gets work is a toss up between this one and Edit in Place...
    •  
      CommentAuthorØ
    • CommentTimeFeb 7th 2007
     # 41
    You could wrap it in an IF statement that makes sure the role is one that you want to allow this extension.
    I tried various things around this but I'm not sure about the syntax. Until now the only thing I managed to do is making the preference in the profile tab appear/disappear, but for all roles at the same time...

    I'm about to release a new extension today... next one that gets work is a toss up between this one and Edit in Place...
    Sounds interesting, could you tell us a bit more about this?
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 7th 2007 edited
     # 42
    Its nothing special, just an improved permalink.

    Edit: Oh... I see you bolded part of that question. I will probably do the work on buy a drink, because I despise Javascript.
    •  
      CommentAuthorØ
    • CommentTimeFeb 7th 2007
     # 43
    Oh ok. Still trying to improve my english... I thought you were planning to work on an extension mixing Buy a Drink & Edit in Place XD
    •  
      CommentAuthorWallPhone
    • CommentTimeFeb 7th 2007
     # 44
    Ah. Gotta love slang and figures of speech...

    No worries, I would have never known English is not your native language. There aren't really any accents online.
    •  
      CommentAuthory2kbg
    • CommentTimeFeb 7th 2007
     # 45
    haha i natively speak English and i thought you were combining extensions. I guess i assumed that because of 0's Question but oh well.
    •  
      CommentAuthorØ
    • CommentTimeFeb 7th 2007
     # 46
    I wonder what a Buy in Place or Edit a Drink extension would do...
    •  
      CommentAuthory2kbg
    • CommentTimeFeb 7th 2007
     # 47
    yea that what i was wondering.
Add your comments
    Username Password
  • Format comments as