[ABD] Donation MOD with Multiple Payment Options and IPN

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Siropu » Sat Jul 07, 2012 7:15 pm

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.
Check out my MODs.

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Hippie459MN » Sat Jul 07, 2012 9:39 pm

Any update instructions from 2.2.1 beta to 2.2.2 beta?

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Siropu » Sat Jul 07, 2012 10:11 pm

Replace donorlist.php, donation/ipn.php, donation/install.php and includes/acp/acp_donation.php and then run the installer (donation/install.php).
Check out my MODs.

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Hippie459MN » Sun Jul 08, 2012 2:31 am

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

User avatar
eunaumtenhoid
Registered User
Posts: 876
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [BETA] Donation MOD with Multiple Payment Options

Post by eunaumtenhoid » Sun Jul 08, 2012 6:57 pm

hi man the mod is awesome ^ ^

it is possible add compatibility with pagseguro?

link >> pagseguro


congratulations
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 8403
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by _Vinny_ » Sun Jul 08, 2012 7:04 pm

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. :)

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Siropu » Sat Jul 14, 2012 2:02 pm

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.
Check out my MODs.

User avatar
Hippie459MN
Registered User
Posts: 918
Joined: Mon Oct 15, 2007 10:13 pm
Location: Minnesota, USA
Contact:

Re: [BETA] Donation MOD with Multiple Payment Options

Post by Hippie459MN » Sat Jul 14, 2012 2:51 pm

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

H3llion
Registered User
Posts: 228
Joined: Thu Oct 29, 2009 9:13 am

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

Post by H3llion » Mon Jul 16, 2012 1:21 am

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:

User avatar
cruzerv3
Registered User
Posts: 90
Joined: Thu Jul 23, 2009 10:24 am
Location: Switzerland

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

Post by cruzerv3 » Mon Jul 16, 2012 6:04 am

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 ;)
[sorry for my poor english]

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

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

Post by Siropu » Mon Jul 16, 2012 5:24 pm

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.
Check out my MODs.

User avatar
cruzerv3
Registered User
Posts: 90
Joined: Thu Jul 23, 2009 10:24 am
Location: Switzerland

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

Post by cruzerv3 » Mon Jul 16, 2012 5:45 pm

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)
[sorry for my poor english]

User avatar
Siropu
Registered User
Posts: 155
Joined: Mon Nov 16, 2009 6:15 pm
Location: Romania
Contact:

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

Post by Siropu » Mon Jul 16, 2012 5:58 pm

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 -->
Check out my MODs.

User avatar
cruzerv3
Registered User
Posts: 90
Joined: Thu Jul 23, 2009 10:24 am
Location: Switzerland

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

Post by cruzerv3 » Mon Jul 16, 2012 7:17 pm

thanks!
[sorry for my poor english]

H3llion
Registered User
Posts: 228
Joined: Thu Oct 29, 2009 9:13 am

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

Post by H3llion » Wed Jul 18, 2012 2:30 pm

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.

Locked

Return to “[3.0.x] Abandoned MODs”