Page 5 of 13

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sat Jul 07, 2012 7:15 pm
by Siropu
I've released version 2.2.2 beta.
What's new?
I made some improvements in the donors list. Now usernames will be displayed the same as it is on the forums (with colours and linked to profile).
Also I made some small changes in the IPN code.

Complete features list and download link in first post.

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sat Jul 07, 2012 9:39 pm
by Hippie459MN
Any update instructions from 2.2.1 beta to 2.2.2 beta?

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sat Jul 07, 2012 10:11 pm
by Siropu
Replace donorlist.php, donation/ipn.php, donation/install.php and includes/acp/acp_donation.php and then run the installer (donation/install.php).

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sun Jul 08, 2012 2:31 am
by Hippie459MN
Thanks for this update. :) Updating now. I have yet to have anyone donate as I havent let the site go live yet but hope it all works out when it does in the next day or so.

:D

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sun Jul 08, 2012 6:57 pm
by eunaumtenhoid
hi man the mod is awesome ^ ^

it is possible add compatibility with pagseguro?

link >> pagseguro


congratulations

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sun Jul 08, 2012 7:04 pm
by _Vinny_
eunaumtenhoid wrote:hi man the mod is awesome ^ ^

it is possible add compatibility with pagseguro?

link >> pagseguro


congratulations
Oh yeah, I'm look for this too. :)

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sat Jul 14, 2012 2:02 pm
by Siropu
eunaumtenhoid wrote:it is possible add compatibility with pagseguro?
Before I add more payment options, I need to know if everything is working fine with the current payment options. I need some feedback on Payza, Liberty Reserve, Moneybookers and Webmoney IPN.

Re: [BETA] Donation MOD with Multiple Payment Options

Posted: Sat Jul 14, 2012 2:51 pm
by Hippie459MN
Siropu wrote:Before I add more payment options, I need to know if everything is working fine with the current payment options. I need some feedback on Payza, Liberty Reserve, Moneybookers and Webmoney IPN.
I just launched my new site so I have not tried this yet and I only use PayPal and you can send yourself money so I have no way of really testing it until someone uses it but I will report back as soon as I get my first test subject. lol

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 1:21 am
by H3llion
What is the code for board index for last 5 donors?

I have

Code: Select all

<!-- IF DONORS_LAST_FIVE_ENABLE -->
<!-- INCLUDE donate/last_five_donations.html -->
<!-- ENDIF -->
Had to rewrite, looked in the donate.php to check for "IF DONORS ..." and the donate folder in the style template folder for "INCLUDE ..." yet the last 5 donors does not display.

I am doing this because somehow my last 5 donors disappeared :shock:

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 6:04 am
by cruzerv3
would be possible to have the donations bar also in viewtopic and viewforum?
imho most of users opens directly the forum/topic page from the email notification without see the index page ;)

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 5:24 pm
by Siropu
arti-x wrote:What is the code for board index for last 5 donors?
Follow the instructions in install_mod.xml and make sure everything is in place.
cruzerv3 wrote:would be possible to have the donations bar also in viewtopic and viewforum?
Open overall_header.html and add this code at the end:

Code: Select all

<!-- IF DONATION_GOAL_ENABLE and not DONATION_GOAL_INDEX_BOTTOM and VIEWTOPIC_VIEWFORUM -->
<!-- INCLUDE donate/goal.html -->
<!-- ENDIF -->
Open overall_footer.html and add this at the beginning:

Code: Select all

<!-- IF DONATION_GOAL_ENABLE and DONATION_GOAL_INDEX_BOTTOM and VIEWTOPIC_VIEWFORUM -->
<!-- INCLUDE donate/goal.html -->
<!-- ENDIF -->
Open viewtopic.php and search for this line:

Code: Select all

// now I have the urge to wash my hands :(
After it add this code:

Code: Select all

// Begin Donation MOD with MPO
if (!empty($config['donation_mod_version']) && $config['donation_goal_index_enable'])
{
   $user->add_lang('mods/donation');

// Calculate percentage
    $percentage = floor($config['donation_goal_amount_received'] * 100 / $config['donation_goal_amount']);

    // A function to avoid progressbar design issues.
    function progressbar()
    {
        global $percentage;
        if ($percentage <= 100)
	    {
	        if ($percentage <= 2)
		    {
	            return '<div id="donation_progressbar" style="width:' . $percentage .'%;"><span id="fix">' . $percentage . '%</span></div>';
		    }
		    else
		    {
		        return '<div id="donation_progressbar" style="width:' . $percentage .'%;"><span>' . $percentage . '%</span></div>';
		    }
	    }
	    else
	    {
	        return '<div id="donation_progressbar" style="width:100%;"><span>' . $percentage . '%</span></div>';
	    }
    }

    // A function to avoid negative values in the statistics.
    function goal_status()
    {
        global $percentage, $config;
        if ($percentage <= 100)
	    {
	        return $config['donation_goal_amount'] - $config['donation_goal_amount_received'];
	    }
	    else
	    {
	        return 0;
	    }
    }
	
    $template->assign_vars(array(
	    'VIEWTOPIC_VIEWFORUM'           => true,
        'DONATION_GOAL_ENABLE'          => $config['donation_goal_enable'],
		'DONATION_GOAL_INDEX_BOTTOM'    => $config['donation_goal_index_bottom'],
	    'GOAL_AMOUNT_RECEIVED'          => $config['donation_goal_amount_received'],
	    'GOAL_AMOUNT'                   => $config['donation_goal_amount'],
	    'GOAL_CURRENCY'                 => $config['donation_goal_currency'],
	    'GOAL_PROGRESSBAR'              => progressbar(),
	    'GOAL_UNTIL'                    => goal_status(),
		)
    );
}
// End Donation MOD with MPO
Open viewforum.php and search for this line:

Code: Select all

// Not postable forum or showing active topics?
Before it add this code:

Code: Select all

// Begin Donation MOD with MPO
if (!empty($config['donation_mod_version']) && $config['donation_goal_index_enable'])
{
   $user->add_lang('mods/donation');

// Calculate percentage
    $percentage = floor($config['donation_goal_amount_received'] * 100 / $config['donation_goal_amount']);

    // A function to avoid progressbar design issues.
    function progressbar()
    {
        global $percentage;
        if ($percentage <= 100)
	    {
	        if ($percentage <= 2)
		    {
	            return '<div id="donation_progressbar" style="width:' . $percentage .'%;"><span id="fix">' . $percentage . '%</span></div>';
		    }
		    else
		    {
		        return '<div id="donation_progressbar" style="width:' . $percentage .'%;"><span>' . $percentage . '%</span></div>';
		    }
	    }
	    else
	    {
	        return '<div id="donation_progressbar" style="width:100%;"><span>' . $percentage . '%</span></div>';
	    }
    }

    // A function to avoid negative values in the statistics.
    function goal_status()
    {
        global $percentage, $config;
        if ($percentage <= 100)
	    {
	        return $config['donation_goal_amount'] - $config['donation_goal_amount_received'];
	    }
	    else
	    {
	        return 0;
	    }
    }
	
    $template->assign_vars(array(
	    'VIEWTOPIC_VIEWFORUM'           => true,
        'DONATION_GOAL_ENABLE'          => $config['donation_goal_enable'],
		'DONATION_GOAL_INDEX_BOTTOM'    => $config['donation_goal_index_bottom'],
	    'GOAL_AMOUNT_RECEIVED'          => $config['donation_goal_amount_received'],
	    'GOAL_AMOUNT'                   => $config['donation_goal_amount'],
	    'GOAL_CURRENCY'                 => $config['donation_goal_currency'],
	    'GOAL_PROGRESSBAR'              => progressbar(),
	    'GOAL_UNTIL'                    => goal_status(),
		)
    );
}
// End Donation MOD with MPO
Clear the cache and it should work.

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 5:45 pm
by cruzerv3
thank you for the quick reply.

now I see the donations bar all over the forum but in in viewforum and viewtopic it's without the style loaded correctly.

(I sent you a PM with link of my board)

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 5:58 pm
by Siropu
If you want the same style as on index, open donate/goal.html and replace this line:

Code: Select all

<!-- IF SCRIPT_NAME eq index -->
with this:

Code: Select all

<!-- IF SCRIPT_NAME eq index or VIEWTOPIC_VIEWFORUM -->

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Mon Jul 16, 2012 7:17 pm
by cruzerv3
thanks!

Re: [BETA] Donation MOD with Multiple Payment Options and IP

Posted: Wed Jul 18, 2012 2:30 pm
by H3llion
arti-x wrote:What is the code for board index for last 5 donors?

I have

Code: Select all

<!-- IF DONORS_LAST_FIVE_ENABLE -->
<!-- INCLUDE donate/last_five_donations.html -->
<!-- ENDIF -->
Had to rewrite, looked in the donate.php to check for "IF DONORS ..." and the donate folder in the style template folder for "INCLUDE ..." yet the last 5 donors does not display.

I am doing this because somehow my last 5 donors disappeared :shock:
Bump how do you get the code for latest 5 donors, my one is not displaying in board index even when enabled.