Buy me a Beer for Joomla!

Implementation of Buy me a beer in Joomla!This Joomla! plugin is a smart & funny way to get a donation without the need to specify ethical reasons.

Do you think my job is useful? Ok, buy me a beer, I just wanna have a drink, not save the world!

This plugin allows to take money using PayPal™'s donate feature by adding a snippet of code in your articles or into the sidebar of your site.

Differently from other plugins, this is a casual and friendly "Buy Me a Beer", for people who do not want to explain how the money will be used: server costs, time writing more posts, save trees...

Buy me a beer for Joomla! works on multilingual site; you can choose every text in the donation form, and you can translate texts using Joomla's language override feature. PayPal's interface language selection is automatic. You can use multiple forms per page.

Images available into buy me a beer for joomla

You can use the plugin also as a module by incapsulate it in to a 'Custom HTML' module.

Plugin comes with a series of images: beer, wine, but there are not only drinks, pizza, hamburger, and so on.

 

Features

  • plugin works on multilingual site;
  • every text in the donation form can translated using Joomla's language override feature;
  • automatic PayPal's interface language selection;
  • multiple donations per page with multiple configuration;
  • images available for beer wine (red, white), coffee, cappuccino, pizza and hamburger;
  • plugin template supports override (J3+ only);
  • plugin also works as a module by incapsulating it in to a 'Custom HTML';

 

 

Configuration

Joomla! has an email cloacking feature that encodes all email addresses found on the page, also if they are in a hidden field of a form; be sure that this plugin will be executed after 'Content - Email Cloaking', by changing the execution order of the plugins!

Simply download the plugin, install it and activate it:

  • Email for PayPal account:
    this is the ID of PayPal account
  • Name for donation:
    Your site name or your name; something like "Buy a beer for marco"
  • Form Legend(*):
    Introduction text for legend tag
  • Text for donate(*):
    The reason for donation, some reasons included ;)
  • Text for amount selection (*):
    Text for amount selection, written before the amount select
  • List of donation values:
    Comma separated values of amounts available, use dot for decimals. You can also leave blank this field
  • Currency:
    Currency to use in donation. currency must be supported by PayPal
  • Show credit cart logos:
    show the logos of the credit card accepted by PayPal
  • Select an image:
    select an image for donation
  • Load css:
    load the css and set the form orientation.


(*) You can use constant for text

 

Translations

You can use constant for specified text labels and translate them with Joomla's language ovveride facility.

Default constants are:

  • MBB_LEGEND (default: "")
    Introduction text for HTML legend tag
  • MBB_AMOUNT_QUESTION (default: "Be generous, please")
    Text to show for amount selection, printed before the select for amount values
  • MBB_BUY_OVERRIDE_ME (default: "override MBB_BUY_OVERRIDE_ME")
    Main text for donation. 

If you don't need multilingual feature you can type your text directly.

 

Use in Article text

Insert the plugin placeholder in your article, where you want to insert the donation form.

{marcobuymeabeer}

All values are taken by the configuration, anyway you can also override the configuration:

{marcobuymeabeer business="" item_name="" text="" legend="" amount_text="" amount_list="" currency_code="" image="" form_orientation=""}

All attributes override are optional, if you want, you can insert more than one place holder per page every one whith a different configuration.

Italic in plugin's placeholder it is only to avoid the execution of code.

 

Use as module

You can use Marco's buy me a beer plugin for Joomla! as a module, by inserting the plugin's place holder in to a "Custom HTML" module. Remember to set 'Prepare Content' option to 'Yes', this enables content plugins execution.

 

Plugin template override (J3+ only)

Create the directory /templates/[template name]/html/plg_content_marcobuymeabeer/ and copy the default.php template into it. Now you can edit the template file.

 

Of course, if you like this plugin... buy me a beer!!
remember: I like beer very much ;)

Note: this page is ITA, not ENG

 

Download J2.5 and J3.x version

 

_QQ__QQ_ not parsed by some servers... Sometime it happens to find _QQ__QQ_ instead of "" in the instructions on b.e. This is a PHP problem, but I do not know which is it. I just suppose it is related to PHP 5.2. under investigation.

 

Aggiungi commento

Please note: URL in text are not linked and site address is only for internal use.

Comments are human checked. All spam will be removed, so don't waste your time!

Codice di sicurezza
Aggiorna

L'estate si avvicina hai già trovato l'albergo per le vacanze? cerca un albergo al mare o un hotel in montagna ove trascorrere le tue vacanze.