Support » Plugins and Hacks » Donate Plus in sidebar

Viewing 10 replies - 1 through 10 (of 10 total)
  • I haven’t created a widget for it yet (coming soon…) but for now you can edit your template to use the following php functions instead of the shortcodes.

    First grab the Class like so:
    <?php $donateplus = new DonatePlus(); ?>

    The Form:
    <?php $donateplus->DonatePage(); ?>

    The Wall:
    <?php $donateplus->DonorWall(); ?>

    The Total:
    <?php $donateplus->DonorTotal(); ?>

    This plugin is still in its infancy, so bear with me as I add more useful features in the future. Thanks!

    Hi devbit

    I inserted your codes into a sidebar widget HTML widget, but it doesn´t work:(((
    My insert was:

    <?php $donateplus = new DonatePlus(); ?>
    <?php $donateplus->DonatePage(); ?>
    <?php $donateplus->DonorWall(); ?>
    <?php $donateplus->DonorTotal(); ?>

    Working on adding sidebar widget support to v1.4, will update soon. Thx!

    Version 1.4 now offers Widget support and the following functions as alternatives to using the shortcodes:

    <?php DonatePlusForm(); ?>
    <?php DonatePlusWall(); ?>
    <?php DonatePlusTotal(); ?>

    NOTE: You will need to activate the Donate Plus Widgets from the Plugins Panel seperately before they will be available.

    Hello! I can’t really activate the Donate Plus Widgets. If i deactivate the original one and upgrade Donate Plus Widgets it still doesn’t upgrades to 1.5 or activates….

    I’ve integrated the widgets into the main plugin to fix the version control issue, an update should be available any minute now.

    Cheers!

    How can I get the widget just to show the hedder, the donation field and the “Donate” button, rather than the entire form?

    greenthing.

    I think I found where you can configure the output of the donateplus form. Look at donate-plus.php, around line 703.

    $output .='<input type="hidden" id="cmd" name="cmd" value="_donations">
    
    <p class="donate_amount"><label for="amount">'.__('Donation Amount', 'dplus').':</label><br /><input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /> <small>('.__('Currency: ','dplus').$cur.')</small></p>';

    To get rid of everything but the text box and button you could change the string to this:

    $output .='<input type="hidden" id="cmd" name="cmd" value="_donations">
    
    <p class="donate_amount"><input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /></p>';

    Breaking down the code:

    First line and a line break (Donation Amount:):

    <label for="amount">'.__('Donation Amount', 'dplus').':</label><br />

    Second line, input area, and currency:

    <input type="text" name="amount" id="amount" value="'.$dplus['default_value'].'" /> <small>('.__('Currency: ','dplus').$cur.')</small></p>';

    Hope this helps. It took me a while to figure it out, but it seems to be working. Always get into the code at your own risk.

    Wow! What a big help! Thank you guys so much!

    Copy 360 Games

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Donate Plus in sidebar’ is closed to new replies.