Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Buy a drink add-on
This discussion has been closed.
Comments
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
"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).
also how to include a target= _blank to open the paypal page in a new window /
bugsmi0: Replace lines 57 - 59 of with this code block:
'" onClick="window.open(\''. $url. '\' + \'&VC=\' + hex_md5(\''. md5($email . date('ymd')) ."' + '". $Comment->Context->Session->UserID. '\')) ; return false">'.
Note the changes: becomes and an second close paren added just before
I think this should be an admin prefrence... will add it to the plans for version 1.0
@WallPhone '" onClick="window.open(\''. $url. '\' + \'&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");
I get:
<a class="BuyADrink" href="extension.php?PostBackAction=BuyADrink&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?
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]
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.
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...
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?