Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: snork13 on February 06, 2006, 11:36:58 PM

Title: PaypalDonations
Post by: snork13 on February 06, 2006, 11:36:58 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=273)

A Paypal Merchant account is required, for more information visit: https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside (https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside)
Paypal generates the html form code you will need for one of the textareas, the other textarea is for maybe a reason why the members should donate, or get fancy like the examples on the Paypal site.

This mod will add a "Donate" link in the top menu, which will take you to your static Paypal Donation page.
On the admin side, under "current theme" you have two textareas for entering the Paypal info.

Special thanks to Bloc for the textarea code ;)

Tested on 1.1RC2 fresh install.

Version 1.2 - added permissions setting and an error in the language





Title: Re: PaypalDonations
Post by: Bigguy on February 07, 2006, 01:56:38 AM
I`m gettting an error in Index.template.php when trying to install this. Is there a fix ???
Title: Re: PaypalDonations
Post by: ArkServer on February 07, 2006, 07:52:27 AM
How to center?

http://arkserver.servehttp.com/index.php?action=paypal

works here.

//edit
edit nvm
Title: Re: PaypalDonations
Post by: snork13 on February 07, 2006, 08:52:42 AM
Quote from: Bigguy on February 07, 2006, 01:56:38 AM
I`m gettting an error in Index.template.php when trying to install this. Is there a fix ???

yes, i wrote for a fresh install, so if you added other links...then you can edit the links manually. Check out the modification file within the package.

-snork
Title: Re: PaypalDonations
Post by: Bigguy on February 07, 2006, 12:25:35 PM
I got it to work on my test site. It was a tab it couldnt put in. It works now.
Title: Re: PaypalDonations
Post by: edi67 on February 07, 2006, 07:24:02 PM
good mod but is possible do that only certanly users gropus view it? i not want that all users groups see the message
Title: Re: PaypalDonations
Post by: snork13 on February 07, 2006, 07:34:13 PM
Quote from: edi67 on February 07, 2006, 07:24:02 PM
good mod but is possible do that only certanly users gropus view it? i not want that all users groups see the message

you mean view the donate link as well, or just the page


i guess i could set permissions
Title: Re: PaypalDonations
Post by: ladyshanae on February 08, 2006, 05:39:01 PM
Quote8: Use of undefined constant paypal_donation - assumed 'paypal_donation'
File: /home/hprpgnet/public_html/forum/Themes/default/Paypal.template.php (main sub template - eval?)
Line: 25

This shows up in my error log.

Also I can't seem to edit the information once I put it in . . . I think the "Save" button is missing from the bottom of the page now.

Otherwise - fantastic mod :)  Thank you!
Title: Re: PaypalDonations
Post by: snork13 on February 09, 2006, 11:15:28 AM
Quote from: ladyshanae on February 08, 2006, 05:39:01 PM
Quote8: Use of undefined constant paypal_donation - assumed 'paypal_donation'
File: /home/hprpgnet/public_html/forum/Themes/default/Paypal.template.php (main sub template - eval?)
Line: 25

This shows up in my error log.

Also I can't seem to edit the information once I put it in . . . I think the "Save" button is missing from the bottom of the page now.

Otherwise - fantastic mod :)  Thank you!

thanks, i missed that...all fixed.
Also Permissions added for who can view the donation page.

uninstall current version, and then install version 1.2

-snork
Title: Re: PaypalDonations
Post by: londonhogfan on February 09, 2006, 11:25:23 AM
when I go to uninstall 1.0 to install 1.2 I get this error...

Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Themes/default/index.template.php Test failed
3. Execute Modification ./Themes/default/Settings.template.php Test successful
4. Execute Modification ./Themes/default/Themes.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed


Is it ok for me to go ahead with the uninstall?
Title: Re: PaypalDonations
Post by: Prasad007 on February 09, 2006, 11:34:42 AM
Thanks! This is gr8!! :)


*EDIT*

i get this error
Quote3.     Execute Modification     ./Themes/default/index.template.php     Test failed

what do I do ??
Title: Re: PaypalDonations
Post by: ladyshanae on February 09, 2006, 12:29:50 PM
Awesome!  Everything seems to work perfectly now!

Thank you - this makes my life easier :)
Title: Re: PaypalDonations
Post by: snork13 on February 09, 2006, 01:06:06 PM
Quote from: Prasad007 on February 09, 2006, 11:34:42 AM
Thanks! This is gr8!! :)


*EDIT*

i get this error
Quote3.     Execute Modification     ./Themes/default/index.template.php     Test failed

what do I do ??


this happens becuase of the custom link you already have, such as arcade, gallery..etc.
I will see if i can re-write the mod for adding rather then replace for the index.template
Title: Re: PaypalDonations
Post by: Prasad007 on February 09, 2006, 01:07:39 PM
Quote from: snork13 on February 09, 2006, 01:06:06 PM
Quote from: Prasad007 on February 09, 2006, 11:34:42 AM
Thanks! This is gr8!! :)


*EDIT*

i get this error
Quote3.     Execute Modification     ./Themes/default/index.template.php     Test failed

what do I do ??


this happens becuase of the custom link you already have, such as arcade, gallery..etc.
I will see if i can re-write the mod for adding rather then replace for the index.template
oh okay. thanks for the help! :) id really like to have this mod :)
Title: Re: PaypalDonations
Post by: 4css on February 09, 2006, 07:04:37 PM
Since this mod doesn't work on SMF 1.0.6 Can someone give me guidance for hand coding this into my forum?

Any help would be appreciated.
Thanks in advance.
Title: Re: PaypalDonations
Post by: Pink Bee on February 09, 2006, 10:26:01 PM
I'm using 1.1RC2

When I try to apply the mod, it gave me this error:
Quote3. Execute Modification ./Themes/default/index.template.php Test failed
Title: Re: PaypalDonations
Post by: snork13 on February 09, 2006, 10:30:19 PM
Quote from: pinkbee on February 09, 2006, 10:26:01 PM
I'm using 1.1RC2

When I try to apply the mod, it gave me this error:
Quote3. Execute Modification ./Themes/default/index.template.php Test failed

again, i think it's because of the array, i will see if i can make it work when additional menu links are added
Title: Re: PaypalDonations
Post by: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.
Title: Re: PaypalDonations
Post by: snork13 on February 10, 2006, 01:57:43 PM
Quote from: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.

what version, try 1.3 version. uninstall current version first

-snork
Title: Re: PaypalDonations
Post by: BCB1908 on February 10, 2006, 02:03:21 PM
Quote from: snork13 on February 10, 2006, 01:57:43 PM
Quote from: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.

what version, try 1.3 version. uninstall current version first

-snork
1.3 is the only I have installed ever.
Title: Re: PaypalDonations
Post by: snork13 on February 10, 2006, 02:13:50 PM
Quote from: BCB1908 on February 10, 2006, 02:03:21 PM
Quote from: snork13 on February 10, 2006, 01:57:43 PM
Quote from: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.

what version, try 1.3 version. uninstall current version first

-snork
1.3 is the only I have installed ever.

fixing now...sorry for my error
Title: Re: PaypalDonations
Post by: BCB1908 on February 10, 2006, 02:21:52 PM
Quote from: snork13 on February 10, 2006, 02:13:50 PM
Quote from: BCB1908 on February 10, 2006, 02:03:21 PM
Quote from: snork13 on February 10, 2006, 01:57:43 PM
Quote from: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.

what version, try 1.3 version. uninstall current version first

-snork
1.3 is the only I have installed ever.

fixing now...sorry for my error
Whatever you did worked.  Thanks!  Nice mod by the way.
Title: Re: PaypalDonations
Post by: snork13 on February 10, 2006, 02:35:04 PM
Quote from: BCB1908 on February 10, 2006, 02:21:52 PM
Quote from: snork13 on February 10, 2006, 02:13:50 PM
Quote from: BCB1908 on February 10, 2006, 02:03:21 PM
Quote from: snork13 on February 10, 2006, 01:57:43 PM
Quote from: BCB1908 on February 10, 2006, 01:00:01 PM
Nice mod, but I'm getting the error below.  Any thougts?

QuoteUnable to load the 'main' template.

what version, try 1.3 version. uninstall current version first

-snork
1.3 is the only I have installed ever.

fixing now...sorry for my error
Whatever you did worked.  Thanks!  Nice mod by the way.

cool, thanks for letting me know...


i update the mod to 1.4, which fixed the error in 1.3
Title: Re: PaypalDonations
Post by: Pod on February 10, 2006, 03:47:51 PM
my friend has this mod and i wanna donate to his site but i have a debt card..and i went to paypal..didnt make a account but i see there is no debt card mark under credit card?..help!
Title: Re: PaypalDonations
Post by: StanJ on February 10, 2006, 08:24:10 PM
i have resintalled everything including the forum software...  most of it...  I still the error with 1.4 with tinyportal installed... seems like i can have one or the other not both...

I know you have worked a lot on this, and it is appreciated, i feel small for even reporting this...  :)
Title: Re: PaypalDonations
Post by: Bigguy on February 11, 2006, 07:04:31 PM
I have installed the new version of this mod on my site and it works good. I do have a couple errors in my logs but nothing serious.

EDIT: Sorry no errors now. The errors were present when the paypal code is not inserted in the box. It goes away after you do insert it.
Title: Re: PaypalDonations
Post by: aussieholden on February 13, 2006, 06:05:11 AM
I installed 1.4 and I still got the error ?

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed  
4. Execute Modification ./Themes/default/Settings.template.php Test successful
5. Execute Modification ./Themes/default/Themes.template.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Extract File ./Themes/default/Paypal.template.php 
8. Extract File ./Sources/Paypal.php

When installed  the link is on the menu bar but there are no options in admin.

I would very much like to be using this on the forum.
Title: Re: PaypalDonations
Post by: ladyshanae on February 13, 2006, 08:53:12 AM
Do you have other modifications installed that altered the index.template.php file?  If you do, you might have to do that alteration manually.

As for the admin panel, the donation information is found under Configuration - Current Theme.
Title: Re: PaypalDonations
Post by: Chelle on February 13, 2006, 12:37:16 PM
This is interesting...I installed the mod...no link on the menu, no admin options are showing.  I got no errors in stalling the pkg.   Any ideas what's up?

I did have extra links in my menu that I added, I uninstalled, took them out, re-installed the pkg..and same result.
Title: Re: PaypalDonations
Post by: snork13 on February 13, 2006, 01:58:00 PM
Quote from: Chelle on February 13, 2006, 12:37:16 PM
This is interesting...I installed the mod...no link on the menu, no admin options are showing.  I got no errors in stalling the pkg.   Any ideas what's up?

I did have extra links in my menu that I added, I uninstalled, took them out, re-installed the pkg..and same result.

what version of smf are you running? and a link to your site could help.

-snork
Title: Re: PaypalDonations
Post by: Chelle on February 13, 2006, 03:35:05 PM
RC2, just upgraded.  Amber theme for RC2 is the default.

http://dymb.donnieyen.us

Put the extra links back cause I needed them there for the time being
Title: Re: PaypalDonations
Post by: aussieholden on February 13, 2006, 09:00:47 PM
Yep that fixed it cheers.  ;D
Title: Re: PaypalDonations
Post by: darthmactis on February 15, 2006, 12:34:05 AM
I have the same error

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Themes/default/index.template.php Test failed
4. Execute Modification ./Themes/default/Settings.template.php Test successful
5. Execute Modification ./Themes/default/Themes.template.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
7. Extract File ./Themes/default/Paypal.template.php
8. Extract File ./Sources/Paypal.php

Could it be becuase of the tinyportals install? and If so could you make a TP version?
Title: Re: PaypalDonations
Post by: rhizzo on February 23, 2006, 03:40:36 PM
I am trying to install this mod as well. Im using Forum version: SMF 1.1 RC2. When I go to install im getting the same error as many others. I dont have any other mods installed. I am using the default theme. Please help. I tried to let it run through anyway but nothing comes up. No tab, no options.

Thanks

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Themes/default/index.template.php    Test failed
4.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
5.    Execute Modification    ./Themes/default/Themes.template.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Extract File    ./Themes/default/Paypal.template.php    
8.    Extract File    ./Sources/Paypal.php
Title: Re: PaypalDonations
Post by: Bigguy on February 23, 2006, 03:54:14 PM
If you have other mods installed that change the index.template.php file then this is why you get this error. Try uninstalling some of the mods you have installed and then reinstall this one. If that doesnt work you will have to manually add the code to that file.
Title: Re: PaypalDonations
Post by: pheasant_plucker on February 26, 2006, 02:41:37 PM
I have just installed this manually after getting the usual index.template.php error.  so if you get the following message.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Themes/default/index.template.php    Test failed
4.    Execute Modification    ./Themes/default/Settings.template.php    Test successful
5.    Execute Modification    ./Themes/default/Themes.template.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
7.    Extract File    ./Themes/default/Paypal.template.php   
8.    Extract File    ./Sources/Paypal.php

Click install and ignore the message above. This will install the mod but Index.template.php needs to be modified manually.
Open you index.template.php file in your editor and find the line
if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
$current_action = $context['current_action'];


After 'help', 'pm' Insert  , 'paypal'

So it looks like this [code]if (in_array($context['current_action'], array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'paypal')))

The above code may be slightly different if you have added buttons or installed a mod such as Tiny Portal. Just insert the Paypal where you want it to appear in the button list

Now find.

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'pm' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=pm">' , $txt['pm_short'] , ' ', $context['user']['unread_messages'] > 0 ? '[<strong>'. $context['user']['unread_messages'] . '</strong>]' : '' , '</a>
</td>' , $current_action == 'pm' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


After it add
// the [paypal] button.
echo ($current_action=='paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=paypal">Donate</a>
</td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


Save and upload the modified file and the mod will now work!

Gerry[/code]
Title: Re: PaypalDonations
Post by: 4css on February 27, 2006, 10:21:22 AM
Thanks for the code, copied into word and printed it out for future use. The errors that you put up there are the exact ones that I am recieving.
Title: Re: PaypalDonations
Post by: NetHead on March 02, 2006, 12:06:15 PM
Nice mod.

One problem I have.  If a visitor is not logged in and clicks the "Donate" link on the menu bar in the default theme, it doesn't load the page - just returns the user to the main forum page.  If a member is logged in, all works fine.  Using SMF 1.1 RC2

Is there a solution for this?  I would like to allow non-registered users to donate also.

Thanks for the mod.
Title: Re: PaypalDonations
Post by: rnorth6920 on March 02, 2006, 01:19:51 PM
Quote from: NetHead on March 02, 2006, 12:06:15 PM
Nice mod.

One problem I have.  If a visitor is not logged in and clicks the "Donate" link on the menu bar in the default theme, it doesn't load the page - just returns the user to the main forum page.  If a member is logged in, all works fine.  Using SMF 1.1 RC2

Is there a solution for this?  I would like to allow non-registered users to donate also.

Thanks for the mod.

You have to change the permissions to allow them to donate.
Title: Re: PaypalDonations
Post by: northwestfreewheelers on March 03, 2006, 06:02:07 PM
I get this error with it:

   Type     Action     Description
1.    Execute Modification    ./index.php    Success
2.    Execute Modification    ./Sources/ManagePermissions.php    Success
3.    Execute Modification    ./Themes/default/index.template.php    Failure
4.    Execute Modification    ./Themes/default/Settings.template.php    Failure
5.    Execute Modification    ./Themes/default/Themes.template.php    Failure
6.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Success
7.    Extract File    ./Themes/default/Paypal.template.php    
8.    Extract File    ./Sources/Paypal.php

Anyone no a fix?
i am using SMF 1.06
Title: Re: PaypalDonations
Post by: Bigguy on March 03, 2006, 06:28:45 PM
If you have other mods installed I would think they have changed those three files so the install cant find what it`s looking for. You might have to install manually all the edits to those files that failed.
Title: Re: PaypalDonations
Post by: snork13 on March 04, 2006, 12:53:18 PM
Quote from: 4css on February 09, 2006, 07:04:37 PM
Since this mod doesn't work on SMF 1.0.6 Can someone give me guidance for hand coding this into my forum?

Any help would be appreciated.
Thanks in advance.

i made a 1.06 version..attached give it a try, i tested on a fresh 1.06 install (http://www.phantasyposters.com/smf106/index.php) installed/uninstalled

test/test
Title: Re: PaypalDonations
Post by: northwestfreewheelers on March 07, 2006, 08:16:38 PM
thanks man. Im gonan try it out right now
Title: Re: PaypalDonations
Post by: northwestfreewheelers on March 07, 2006, 08:22:51 PM
I got this werror with it.

2: copy(/home/northwes/public_html/Themes/default/images/english/donate.gif) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied
File: /home/northwes/public_html/Sources/Subs-Package.php
Line: 814
Title: Re: PaypalDonations
Post by: snork13 on March 09, 2006, 02:40:42 PM
well, just an update. I have improved the paypal donation mod by leaps and bounds. i have added to the admin panel, giving the donations it's own tab in the features and option section. I also added an on/off, plus the standard view permissions. This is 98% done, just need to get the moddsetting textarea figured out :D



-snork

Title: Re: PaypalDonations
Post by: northwestfreewheelers on March 09, 2006, 06:17:04 PM
Can you send it to me via e-mail? Everyone i try deems not t work. Soinds awesome what your doing. Can't wait to use it.

O e-mail is [email protected]
Title: Re: PaypalDonations
Post by: ohmygod on March 09, 2006, 09:59:35 PM
Great, works perfectly!!
I think you should post the link for the 1.0.6 version instead of in the sig.  It will be easier to see.
Title: Re: PaypalDonations
Post by: snork13 on March 10, 2006, 12:22:16 AM
SMF 1.1RC2 ONLY complete change, please uninstall old version first. Updated to version 1.5

This mod will add a "Donation" link in the top menu, which will take you to your static Paypal Donation page.
I also added the linktree function so you will have donations in your linktree

On the admin side, under "features and options" I added a tab "Donations", there you have two textareas for entering the Paypal info, along with a checkbox to enable the donation page. Membergroup permission also will need to be set for each group, so you can allow some to donate and other not too. I'm open to suggestion.

-snork
Title: Re: PaypalDonations
Post by: balzizras on March 10, 2006, 05:54:41 AM
I'm getting this error during install: 3.   Execute Modification   ./Sources/ModSettings.php   Test failed

I have the following mods installed:

   Ad Managment   1.4.1     
   Googlebot & Spiders Mod   1.0.5     
   PJIRC Integrated Chat Mod   2.0 
   SMF Arcade   1.2.4b        
   MessagePreview   1.0 
   SMFShop   2.0     
   Enchanced post template   1.0     
   Shop Item: Change Display Name CSS   0.1

Any idea what I can do to make it work?
Title: Re: PaypalDonations
Post by: ohmygod on March 10, 2006, 11:05:25 PM
Only bad thing is most themes that i have seen doesn't have the donate button avaliable.
Title: Re: PaypalDonations
Post by: Bigguy on March 11, 2006, 12:23:15 AM
You have to add it to any theme other than the default.
Title: Re: PaypalDonations
Post by: ohmygod on March 11, 2006, 02:50:19 PM
Yes but don't you need a button already made for the theme?
Title: Re: PaypalDonations
Post by: snork13 on March 11, 2006, 02:59:43 PM
Quote from: ohmygod on March 11, 2006, 02:50:19 PM
Yes but don't you need a button already made for the theme?

yes, if a custom theme. You will need to make a new button for donations.
Title: Re: PaypalDonations
Post by: ArkServer on March 11, 2006, 04:05:22 PM
Quote from: balzizras on March 10, 2006, 05:54:41 AM
I'm getting this error during install: 3.   Execute Modification   ./Sources/ModSettings.php   Test failed

I have the following mods installed:

   Ad Managment   1.4.1     
   Googlebot & Spiders Mod   1.0.5     
   PJIRC Integrated Chat Mod   2.0 
   SMF Arcade   1.2.4b        
   MessagePreview   1.0 
   SMFShop   2.0     
   Enchanced post template   1.0     
   Shop Item: Change Display Name CSS   0.1

Any idea what I can do to make it work?

try edit modsetting manually?
Title: Re: PaypalDonations
Post by: ohmygod on March 11, 2006, 04:48:12 PM
Quote from: snork13 on March 11, 2006, 02:59:43 PM
Quote from: ohmygod on March 11, 2006, 02:50:19 PM
Yes but don't you need a button already made for the theme?

yes, if a custom theme. You will need to make a new button for donations.

Im kind of new here but what code do you use to add the button?  I made the add on buttons I think you upload it to index.template.php but what code do you use?
Title: Re: PaypalDonations
Post by: HaxXxoR on March 16, 2006, 02:34:05 PM
i feel really dumb in asking this but i dont know how or where to get the paypal code from their site to add it to mine to set this up...... please help
Title: Re: PaypalDonations
Post by: ivo2296 on March 16, 2006, 02:45:22 PM
Quote from: snork13 on March 04, 2006, 12:53:18 PM

i made a 1.06 version..attached give it a try, i tested on a fresh 1.06 install (http://www.phantasyposters.com/smf106/index.php) installed/uninstalled

test/test

Can i use it with smf 1.0.5 with classic theme?
Title: Re: PaypalDonations
Post by: snork13 on March 16, 2006, 04:34:37 PM
Quote from: ivo2296 on March 16, 2006, 02:45:22 PM
Quote from: snork13 on March 04, 2006, 12:53:18 PM

i made a 1.06 version..attached give it a try, i tested on a fresh 1.06 install (http://www.phantasyposters.com/smf106/index.php) installed/uninstalled

test/test

Can i use it with smf 1.0.5 with classic theme?

not sure, but i would think about upgrade anyway...now if you don't wish to upgrade...

You could look at the modification.xml file and try by hand, and let me know. It is just for the default theme, but I'm sure if it work with default, then it would work with classic theme!
Title: Re: PaypalDonations
Post by: ivo2296 on March 17, 2006, 10:54:49 AM
Quote from: snork13 on March 16, 2006, 04:34:37 PM
Quote from: ivo2296 on March 16, 2006, 02:45:22 PM
Quote from: snork13 on March 04, 2006, 12:53:18 PM

i made a 1.06 version..attached give it a try, i tested on a fresh 1.06 install (http://www.phantasyposters.com/smf106/index.php) installed/uninstalled

test/test

Can i use it with smf 1.0.5 with classic theme?

not sure, but i would think about upgrade anyway...now if you don't wish to upgrade...

You could look at the modification.xml file and try by hand, and let me know. It is just for the default theme, but I'm sure if it work with default, then it would work with classic theme!

Thanks i won't update to 1.0.6 - it is not good for mine current modification.
Title: Re: PaypalDonations
Post by: Bronwyn Mawr on April 09, 2006, 12:51:08 AM
OK..  How can I get this to work in the Classic Theme?  it seems to work in Default...

I have tried pasting the paypal code from the index.template.php fi le to the Classic php file and it messed up the gui...

I have created a classic donation button. 

Can someone please give me the php edit that will work in the classic theme?  Seems to be a popular issue here.

Would love to be able to use this on my forum.

TIA!
Title: Re: PaypalDonations
Post by: Bronwyn Mawr on April 09, 2006, 02:19:57 AM
Here is the code i used for the Classic Theme and it worked...

// Paypal Mod
   if (!$context['user']['is_guest'])
      echo '
            <a href="', $scripturl, '?action=paypal" target="_blank">', ($settings['use_image_buttons'] ? ' <img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/donations.gif" alt="' . $txt['payPal'] . '" target="_blank" style="margin: 1px 0;" border="0" />' : $txt['payPal']), '</a>', $context['menu_separator'];

you will have to make your own button though.  I did... or... you can use mine if you like.  or this one I just made:



name your button 'donations.gif' and stick it in your Themes/Classic/images/english folder.

---

How to make the PayPal Image centered...  Make the beginning of your PayPal generated code look like this... My edits in red.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<P align=center><input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"></P>
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="

---

Enjoy!
            
Title: Re: PaypalDonations
Post by: Bronwyn Mawr on April 09, 2006, 03:51:15 PM
Wow looked at my log and this error is repeating itself every few minutes.  Please help me fix it.

Is there something missing from my classic theme that I need to transfer over from the default?

A line of code in the ManageAttachments.template.php ?  seemsodd that the PayPal is referenced in an attachment issue...

Error message '8: Undefined index: payPal
File: /vservers/melioris/htdocs/artgalleries/Themes/default/ManageAttachments.template.php (eval?)
Line: 323'  
Title: Re: PaypalDonations
Post by: Viceroy on April 11, 2006, 12:06:15 AM
There are several things that would help to have in the reviews and mod description. A link to a website using this mod would be a great start. Also I would like to have the ability to display the amounts in which people have donated to the website. Maybe below the user post count? Anyhow, here is a great website for reference to get some idea's of what I would like to see maybe incorporate into the SMF mod for this PayPal feature somewhere as seen at : http://www.eve-radio.com/forums/alldonors.php . Anyhow, I am wanting to use something like this for a website of mine over at http://www.uoradio.com . Thanks! :)
Title: Re: PaypalDonations
Post by: Wise Justine on April 11, 2006, 12:08:10 PM
So I'm running the 1.07 version of SMF and while trying to launch the intallation of you 1.06 version I got :

Type Action Description
1. Execute Modification ./index.php Failure  
2. Execute Modification ./Sources/ManagePermissions.php Failure  
3. Execute Modification ./Sources/ModSettings.php Failure  
4. Execute Modification ./Themes/default/index.template.php Failure  
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Success
7. Execute Modification ./Themes/default/languages/Who.english.php Success
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php

I changed permissions of all the files but still I got the same errors.
Title: Re: PaypalDonations
Post by: Sheepdog360 on April 11, 2006, 12:52:32 PM
I nstalled this mod and now need help. I dont see the donate button anywhere
except in the admincp. Installed it from the package handler..does it need ot be done
manually?
Title: Re: PaypalDonations
Post by: snork13 on April 11, 2006, 01:20:57 PM
Quote from: jarhead9952 on April 11, 2006, 12:52:32 PM
I nstalled this mod and now need help. I dont see the donate button anywhere
except in the admincp. Installed it from the package handler..does it need ot be done
manually?

are you using a custom theme? If so you will need to add the donation button manually.

-snork13
Title: Re: PaypalDonations
Post by: Sheepdog360 on April 13, 2006, 11:56:30 AM
Quote from: snork13 on April 11, 2006, 01:20:57 PM
Quote from: jarhead9952 on April 11, 2006, 12:52:32 PM
I nstalled this mod and now need help. I dont see the donate button anywhere
except in the admincp. Installed it from the package handler..does it need ot be done
manually?

are you using a custom theme? If so you will need to add the donation button manually.

-snork13

custom theme..sort of. All the theme is, is a reskinned version of the default
GJ Forum (http://www.geisterjager-pb.org/forum/)
Title: Re: PaypalDonations
Post by: yellow1912 on April 13, 2006, 04:29:09 PM
Somehow I cant save the options (form, reason,....) at all, I had to modifed the database manually *_*

(Using 1.1RC2, paypal mod ver 1.6 )
Title: Re: PaypalDonations
Post by: Sheepdog360 on April 14, 2006, 10:55:48 AM
Quote from: yellow1912 on April 13, 2006, 04:29:09 PM
Somehow I cant save the options (form, reason,....) at all, I had to modifed the database manually *_*

(Using 1.1RC2, paypal mod ver 1.6 )

did you want to post the changes, step bystep? to show us?
Title: Re: PaypalDonations
Post by: yellow1912 on April 14, 2006, 12:44:26 PM
You mean the changes I made to install this mod?
Well I just used package to installed it, but there were 2 errors with 2 files, so I had to change the code in those 2 files manually (dont remember the name now).
Anyway, at the end, everything turns out ok, I saw the mod in ACP, and on the navigation bar. It's just that I cant update anything using ACP, I can click "Save" but the new changes wont be saved. So I had to use phpmyadmin to fill in the 3 options (Enable the Donation, Reason For Donation, Paypal Form (html))
Title: Re: PaypalDonations
Post by: irvol on April 22, 2006, 12:04:38 PM
I have just installed the mod through package manager on a fresh install of 1.1RC2. I have the default theme active but the donate button is not there. Package manager said it installed successfully. No errors at all.

www.sunlizardstudios.com/forum

Any suggestions?

This is only a temporary home for the forum until we getting working and then we will have to move it to someplace else.

Any help would be appreciated.
Title: Re: PaypalDonations
Post by: Bigguy on April 22, 2006, 12:05:41 PM
I think you have to add the button image. I`m pretty sure anyway, unless you have already.
Title: Re: PaypalDonations
Post by: irvol on April 22, 2006, 05:01:50 PM
Actually I had to go in and manually add all the code for the index.template.php page. Even though the package manager said it was installed correctly and I am using the default template, it did not put the code that page. I did manage to get it working though. Thanks for making me look in the right direction.
Title: Re: PaypalDonations
Post by: Sheepdog360 on April 25, 2006, 10:42:19 AM
Quote from: irvol on April 22, 2006, 05:01:50 PM
Actually I had to go in and manually add all the code for the index.template.php page. Even though the package manager said it was installed correctly and I am using the default template, it did not put the code that page. I did manage to get it working though. Thanks for making me look in the right direction.

whats the code, as I have the same issue as you
Title: Re: PaypalDonations
Post by: Captain_Morrigan on April 26, 2006, 02:26:15 AM
Does this automatically add them to a group after donation or no?
Title: Re: PaypalDonations
Post by: Søren Bjerg on April 26, 2006, 02:39:33 AM
Quote from: Captain_Morrigan on April 26, 2006, 02:26:15 AM
Does this automatically add them to a group after donation or no?
I think you're looking for the Paid subscriptions (http://www.simplemachines.org/community/index.php?topic=13737.0) mod for that functionality :).
Title: Re: PaypalDonations
Post by: Captain_Morrigan on April 26, 2006, 03:14:54 PM
Thank you very much.
Title: Re: PaypalDonations
Post by: Elegant John on May 20, 2006, 01:35:20 PM
Using the info provided earlier in the thread, I was able to get the DONATE button to appear on the menu but when it is clicked on, it sends one to a blank page. You can check it out at http://www.ladiesofnuevolaredo.com (http://www.ladiesofnuevolaredo.com)

Permissions are set for anyone to donate. However, there is no donations tab under FEATURES AND OPTIONS. The modtext area is under current theme but there is no check bx there to enable donations.

I am sure this is a small manual mod needed, but what it is escapes me. Anybody can help?

Also, I am assuming that the call would be to the paypaltemplate.php? Is that correct?
Title: Re: PaypalDonations
Post by: snork13 on May 20, 2006, 02:20:33 PM
yes, there is a source file, and a theme file, along will database changes added. Along with 7 files that are modified. If you have any other mods installed it may cause a problem on install. I base all mods off the "default" freshly downloaded install. I suggest looking at the modification.xml file in the package.There you will be able to find what the package manager missed, however you should have gotten error notifying you code could not be found. If you do apply the mod manually, I would uninstall via package manager first.

-Snork13
Title: Re: PaypalDonations
Post by: Elegant John on May 20, 2006, 03:37:56 PM
Okay, I manually change all 7 files and all seems to be working except when I click the donations tab in the admin section, I get this
Quote
Fatal error: Call to undefined function: modifypaypalsettings() in /home/fronter/public_html/lg/Sources/ModSettings.php on line 185

This is line 185 they are referring to
// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();


Removing this line results in a fatal error on line 665 which is blank.

Also, I am now showing two donation buttons in the menu bar. One says DONATE and the one next to is DONATIONS. All with the same call to "paypal"

Anyone? Ideas? Solutions?
Title: Re: PaypalDonations
Post by: Wise Justine on May 21, 2006, 08:33:35 AM
Could someone reply to my question one page above ? I really need help.
Title: Re: PaypalDonations
Post by: Bigguy on May 21, 2006, 10:50:38 AM
Everything the mod failed on you will have to do those modifications yourself manually.
Title: Re: PaypalDonations
Post by: HvyMtalMama on June 05, 2006, 01:10:44 PM
I am getting this error.
Quote1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php
Title: Re: PaypalDonations
Post by: Moddy on June 07, 2006, 07:56:18 AM
I'm getting this error:-

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php


I have the following installed:-
1. SMF 1.0.7 / 1.1 RC2 Update 1.0     
2. Member Specific Permissions 1.32     
3. Googlebot & Spiders Mod 1.0.5     
4. Board Notes 1.0.4     
5. Group Moderators 1.3d     
6. Karma Description Mod 1.9.7     
7. Users Online Today Mod 1.4.0 Beta 2     
8. Sticky First Post (extends sticky topic) 1.2.2     
9. AutoSig 1.1     
10. Unreplied Questions 0.2     
11. SMF Staff Page 1.2     
12. nwsw.nwswAdminAttachAnything 1.0     
13. Attachments Mod 1.1     
14. Search Topic 1.0     
15. Reason For Editing Mod 1.11     
16. Location Mod 1.2     
17. Coar's Skype Mod 1.4     
18. Simple ImageShack 1.2.1     
19. PagesToGo12 1.2     


My forum version is 1.1 RC2.
Any suggestions?

Thanks in advance!
Moddy
Title: Re: PaypalDonations
Post by: PrizeLive.com on June 09, 2006, 12:23:54 PM
Installations actions for "PaypalDonations":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php
Title: Re: PaypalDonations
Post by: snork13 on June 09, 2006, 02:47:19 PM
If a test fails the mod will not install fine. I test my mods on default installs without any other mod being installed, so I would guess another mod is conflicting, and the package manager can not find the code to change. If you look at the .xml modification file, it will show what code needs to be added, and where to add it.

-Snork13
Title: Re: PaypalDonations
Post by: PrizeLive.com on June 09, 2006, 02:53:06 PM
Quote from: snork13 on June 09, 2006, 02:47:19 PM
If a test fails the mod will not install fine. I test my mods on default installs without any other mod being installed, so I would guess another mod is conflicting, and the package manager can not find the code to change. If you look at the .xml modification file, it will show what code needs to be added, and where to add it.

-Snork13

Thanks, but if I install it manually will it work fine or will it still conflict with another mod?
Title: Re: PaypalDonations
Post by: Elegant John on June 09, 2006, 03:01:07 PM
I am glad this thread is active because I have been intending to further my comments on this mod.

I installed it and got the same errors the rest of you are getting. I then went to mod.xml and manually installed the mod following the procedure exactly, but going one step further. I put the calls for the mod at the top of the rest of the other mods in the various files.

The result? I now have two donation buttons on my front page. One "Donate" the other "Donations", both with the same function.

The text area shows up in the default theme as it should but without the check box to activate it. In the "Features and Options" the "Donation" link is there to configure but here is where it all goes to hell. Click the link and I get a white screen with this error message

Fatal error: Call to undefined function: modifypaypalsettings() in /home/fronter/public_html/lg/Sources/ModSettings.php on line 186

Line 186 is a call to the mod. // Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();


Anyone have any further suggestions? At this point, I am close to reporting this as unusable which I hate to do because it has fantastic potential if the author would help us solve the issues.
Title: Re: PaypalDonations
Post by: GwE¬ØЯΐĠîŋ™ on June 26, 2006, 09:20:21 PM
Ok, I tried to apply this mod myself, but I suck with php  :-[
Could you make the mod so it works for SMF 1.0.7? I, and many others would like it if you did.

Thanks.
Title: Re: PaypalDonations
Post by: PrizeLive.com on June 28, 2006, 10:10:00 AM
Installations actions for "PaypalDonations":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

What should I do to fix this?
Title: Re: PaypalDonations
Post by: snork13 on June 28, 2006, 10:16:21 AM
Quote from: SurfExcelerator.com on June 28, 2006, 10:10:00 AM
Installations actions for "PaypalDonations":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

What should I do to fix this?

what other mods do you have installed? You could take a look at the modification file and change the code by hand, but remember to always make backups first!

-Snork13
Title: Re: PaypalDonations
Post by: PrizeLive.com on June 28, 2006, 10:19:00 AM
Quote from: snork13 on June 28, 2006, 10:16:21 AM
what other mods do you have installed? You could take a look at the modification file and change the code by hand, but remember to always make backups first!

-Snork13

Other mods installed:

Title: Re: PaypalDonations
Post by: PrizeLive.com on June 29, 2006, 02:50:29 PM
any update?
Title: Re: PaypalDonations
Post by: snork13 on June 29, 2006, 10:50:16 PM
Quote from: SurfExcelerator.com on June 29, 2006, 02:50:29 PM
any update?


I suspect one of the other mods you have installed is conflicting with the xml file, meaning it can't find the code which needs to be changed. I based my mods on a "default" install with NO mods. So I might suggest making the changes by hand by looking at the xml modification file. Make sure you make a backup of your current files.

-Snork13
Title: Re: PaypalDonations
Post by: K_4_kelly on July 09, 2006, 04:24:17 PM
Hi,

Everytime I key in the reason for donation and the paypal form in the donation panel and save it, the information is not there when I go in to the panel again. Also the donation is not shown in the menu.

any idea??

thanks!

Kel
Title: Re: PaypalDonations
Post by: snork13 on July 10, 2006, 06:18:43 PM
Quote from: ukwalker on July 09, 2006, 04:24:17 PM
Hi,

Everytime I key in the reason for donation and the paypal form in the donation panel and save it, the information is not there when I go in to the panel again. Also the donation is not shown in the menu.

any idea??

thanks!

Kel

I would check the database to see if the values for the mod where added. You can check via phpMyAdmin. Are you using the default smf theme?

-Snork13
Title: Re: PaypalDonations
Post by: Pat26 on July 11, 2006, 04:54:58 PM
Execute Modification     ./Sources/ManagePermissions.php     Test failed
Title: Re: PaypalDonations
Post by: Bigguy on July 11, 2006, 07:11:36 PM
You can manually add those edits to the ManagePermissions.php First go ahead with the install then edit that file and add the appropriate edits.
Title: Re: PaypalDonations
Post by: PrizeLive.com on July 13, 2006, 03:58:40 PM
Whenever I check the box to "enable the donation" and click save, it doesnt work..... i know because when i go back into it... its unchecked again... wahts going on?
Title: Re: PaypalDonations
Post by: snork13 on July 14, 2006, 11:21:00 AM
Quote from: SurfExcelerator.com on July 13, 2006, 03:58:40 PM
Whenever I check the box to "enable the donation" and click save, it doesnt work..... i know because when i go back into it... its unchecked again... wahts going on?

it would seem that add_settings.php was not run, did you install via the package manager or by hand. You should have in the database,

'payPalEnable' => '0',
   'payPalKey' => '',
   'payPalReason' => '',

you could run the add_settings.php by http://yoursite/forum/add_settings.php . Additionally you could check the database using phpMyAdmin to make sure they are getting into your database.

-Snork13
Title: Re: PaypalDonations
Post by: ArkServer on July 20, 2006, 10:21:46 AM
Quote from: snork13 on July 14, 2006, 11:21:00 AM
Quote from: SurfExcelerator.com on July 13, 2006, 03:58:40 PM
Whenever I check the box to "enable the donation" and click save, it doesnt work..... i know because when i go back into it... its unchecked again... wahts going on?

it would seem that add_settings.php was not run, did you install via the package manager or by hand. You should have in the database,

'payPalEnable' => '0',
   'payPalKey' => '',
   'payPalReason' => '',

you could run the add_settings.php by http://yoursite/forum/add_settings.php . Additionally you could check the database using phpMyAdmin to make sure they are getting into your database.

-Snork13

When using add_settings.php i get: Notice: Use of undefined constant online - assumed 'online' in /home/arksvr/public_html/forum/Sources/Load.php(1635) : eval()'d code on line 105

Can you tell me how to add this manually in phpmyadmin?
Title: Re: PaypalDonations
Post by: PrizeLive.com on July 20, 2006, 10:33:00 AM
Quote from: snork13 on July 14, 2006, 11:21:00 AM
Quote from: SurfExcelerator.com on July 13, 2006, 03:58:40 PM
Whenever I check the box to "enable the donation" and click save, it doesnt work..... i know because when i go back into it... its unchecked again... wahts going on?

it would seem that add_settings.php was not run, did you install via the package manager or by hand. You should have in the database,

'payPalEnable' => '0',
   'payPalKey' => '',
   'payPalReason' => '',

you could run the add_settings.php by http://yoursite/forum/add_settings.php . Additionally you could check the database using phpMyAdmin to make sure they are getting into your database.

-Snork13

What do I check in the database....?

I found this is ModSettings.php:


function ModifypayPalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Paypal Donations - On or off?
array('check', 'payPalEnable'),
'',
// Paypal key and Reason
array('large_text', 'payPalReason','10'),
array('large_text', 'payPalKey','8'),
           
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=paypal');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
$context['settings_title'] = $txt['payPalFO'];

prepareDBSettingContext($config_vars);
}


Is that the right area to edit?
Title: Re: PaypalDonations
Post by: ShadowStriker on July 20, 2006, 05:14:03 PM
does it work on v1.0.7?
Title: Re: PaypalDonations
Post by: Bigguy on July 20, 2006, 05:50:11 PM
No I don`t believe it does
Title: Re: PaypalDonations
Post by: ArkServer on July 22, 2006, 08:58:31 AM
Quote from: ArkServer on July 20, 2006, 10:21:46 AM
Quote from: snork13 on July 14, 2006, 11:21:00 AM
Quote from: SurfExcelerator.com on July 13, 2006, 03:58:40 PM
Whenever I check the box to "enable the donation" and click save, it doesnt work..... i know because when i go back into it... its unchecked again... wahts going on?

it would seem that add_settings.php was not run, did you install via the package manager or by hand. You should have in the database,

'payPalEnable' => '0',
   'payPalKey' => '',
   'payPalReason' => '',

you could run the add_settings.php by http://yoursite/forum/add_settings.php . Additionally you could check the database using phpMyAdmin to make sure they are getting into your database.

-Snork13

When using add_settings.php i get: Notice: Use of undefined constant online - assumed 'online' in /home/arksvr/public_html/forum/Sources/Load.php(1635) : eval()'d code on line 105

Can you tell me how to add this manually in phpmyadmin?

Anyone? If anyone can give me to sql code so i can put it in phpmyadmin it would be great!
Title: Re: PaypalDonations
Post by: Parijs on August 15, 2006, 10:06:18 AM
Can I get this fixed at all?  If so, how can I correct this?

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php
Title: Re: PaypalDonations
Post by: Bigguy on August 15, 2006, 11:18:23 AM
You could do those edits manually. All the edits should be in the .xml file thats packaged with the mod.
Title: Re: PaypalDonations
Post by: mickyd2006 on August 16, 2006, 09:28:37 AM
Does This Work For SMF 1.0.7? If Not That Would Explain This Lot looooool

1.  Execute Modification  ./index.php  Failure
2. Execute Modification ./Sources/ManagePermissions.php Failure
3. Execute Modification ./Sources/ModSettings.php Failure
4. Execute Modification ./Themes/default/index.template.php Failure
5. Execute Modification ./Themes/default/languages/Modifications.english.php Success
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Success
7. Execute Modification ./Themes/default/languages/Who.english.php Success
8. Extract File ./Themes/default/Paypal.template.php
9. Extract File ./Sources/Paypal.php
10. Execute Code add_settings.php
Title: Re: PaypalDonations
Post by: Bigguy on August 16, 2006, 11:00:03 AM
This mod is only available with SMF1.1 rc2
Title: Re: PaypalDonations
Post by: mickyd2006 on August 17, 2006, 02:39:45 PM
Oh Ok Then.. That's fine.. not a problem.

Probably a silly question but doesnt anyone like smf 1.0.7? Cos There isn't much available for it or no one  seems to modify packages to work with 1.0.7 like they do the other versions. Yet its the latest release :S Not a complaint just an observation.
Title: Re: PaypalDonations
Post by: Bigguy on August 17, 2006, 02:46:49 PM
I think more ppl are using SMF1.1rc2 for a couple reasons. 1.1rc3 will be out soon and rc2 has alot better layout (IMHO) Alot of people still use SMF1.0.7 because it is a stable realease. However from what I have seen of SMF1.1rc2 it is just as stable. (IMHO)
Title: Re: PaypalDonations
Post by: mickyd2006 on August 17, 2006, 02:53:26 PM
ok thanks Bigguy..
so how hard would it be to replace my current forums which are version 1.0.7 with SMF1.1rc2 with no losses. would it be possible? I have a cron job which auto backs up my complete database every 6 hours using mysql dump so I have a good DB backup to use.
Title: Re: PaypalDonations
Post by: Bigguy on August 17, 2006, 03:13:38 PM
It shouldn`t be to hard at all really. Have a look at this guide it should have all the answers you need.

http://docs.simplemachines.org/index.php?board=3.0;sort=subject
Title: Re: PaypalDonations
Post by: mickyd2006 on August 17, 2006, 04:09:14 PM
Thanx buddy... I'll give it a try  ;D :D
Title: Re: PaypalDonations
Post by: Bigguy on August 17, 2006, 04:26:36 PM
Anytime. :)
Title: Re: PaypalDonations
Post by: littleone on August 27, 2006, 03:58:12 PM
I am using the newest version, and I got everything installed and running, however when i go to save my paypal code and my text it just clears out the boxes again.
Title: Re: PaypalDonations
Post by: Jay T on August 28, 2006, 12:54:29 AM
The add_settings.php is not working.
Title: Re: PaypalDonations
Post by: littleone on August 28, 2006, 01:23:25 AM
Quote from: Jay T on August 28, 2006, 12:54:29 AM
The add_settings.php is not working.

As in its like that from the install package(the mod author needs to fix it)? or I need to reinstall it again?
Title: Re: PaypalDonations
Post by: Jay T on August 28, 2006, 11:36:21 AM
It isn't working from the install package.
Title: Re: PaypalDonations
Post by: snork13 on August 28, 2006, 06:12:35 PM
Quote from: Jay T on August 28, 2006, 11:36:21 AM
It isn't working from the install package.

I just installed on a fresh install of 1.1 RC3 without any problems, worked like a charm. I suspect you have another mod installed that is conflicting with mine, if this is the case you will need to install manually by looking at the modification file, and run add_settings...or use phpmyadmin to add the values need to the database.

-Snork13
Title: Re: PaypalDonations
Post by: littleone on August 28, 2006, 06:22:57 PM
Well it was like the second or third mod i added and it installed clean so idk.  Its not all that important I guess, but would have been nice ;)
Title: Re: PaypalDonations
Post by: snork13 on August 28, 2006, 06:41:49 PM
Quote from: littleone on August 28, 2006, 06:22:57 PM
Well it was like the second or third mod i added and it installed clean so idk.  Its not all that important I guess, but would have been nice ;)

what are the other mods you have installed, i'll be able to tell what the package manager has problems with then.
Title: Re: PaypalDonations
Post by: littleone on August 28, 2006, 07:32:25 PM
Well I have almost 40 now, but I do not remember which ones I had installed before then.  It was like the second or third mod I had installed...but here is my current list.

REMOVED
Title: Re: PaypalDonations
Post by: Jay T on August 30, 2006, 02:16:04 PM
Quote from: snork13 on August 28, 2006, 06:12:35 PM
Quote from: Jay T on August 28, 2006, 11:36:21 AM
It isn't working from the install package.

I just installed on a fresh install of 1.1 RC3 without any problems, worked like a charm. I suspect you have another mod installed that is conflicting with mine, if this is the case you will need to install manually by looking at the modification file, and run add_settings...or use phpmyadmin to add the values need to the database.

-Snork13

When the add_settings is ran from a url it goes to a blank page.
Title: Re: PaypalDonations
Post by: snork13 on August 30, 2006, 10:45:32 PM
Quote from: Jay T on August 30, 2006, 02:16:04 PM
Quote from: snork13 on August 28, 2006, 06:12:35 PM
Quote from: Jay T on August 28, 2006, 11:36:21 AM
It isn't working from the install package.

I just installed on a fresh install of 1.1 RC3 without any problems, worked like a charm. I suspect you have another mod installed that is conflicting with mine, if this is the case you will need to install manually by looking at the modification file, and run add_settings...or use phpmyadmin to add the values need to the database.

-Snork13

When the add_settings is ran from a url it goes to a blank page.

ok, i didn't add any "the setting where added" which i will on the next release, but if you have phpmyadmin you could check if the tables were altered.

-snork13
Title: Re: PaypalDonations
Post by: Lew Cipher on September 01, 2006, 01:58:09 PM
Quote from: littleone on August 27, 2006, 03:58:12 PM
I am using the newest version, and I got everything installed and running, however when i go to save my paypal code and my text it just clears out the boxes again.

This is what happened to me also.
Title: Re: PaypalDonations
Post by: codenut on September 16, 2006, 05:16:59 PM
I really like this mod but it would be nice to have more then one donation / recurring payment on the donation page. I had it installed and working fine but I need something with the above functionality so it's been removed until something else comes along or this one adds this option.
Title: Re: PaypalDonations
Post by: Drunken Clam on September 21, 2006, 05:20:13 PM
Great mod snork - works like a dream, thanks  ;D
Title: Re: PaypalDonations
Post by: devnet on October 05, 2006, 10:11:10 AM
How does one go about integrating this into a theme other than default?  Is there a thread that shows how to do this?
Title: Re: PaypalDonations
Post by: snork13 on October 06, 2006, 03:20:04 PM
Quote from: devnet on October 05, 2006, 10:11:10 AM
How does one go about integrating this into a theme other than default?  Is there a thread that shows how to do this?

A simple search of the doc site returns...

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

-Snork13
Title: Re: PaypalDonations
Post by: devnet on October 09, 2006, 04:25:35 PM
Quote from: snork13 on October 06, 2006, 03:20:04 PM
Quote from: devnet on October 05, 2006, 10:11:10 AM
How does one go about integrating this into a theme other than default?  Is there a thread that shows how to do this?



A simple search of the doc site returns...

http://docs.simplemachines.org/index.php?topic=402 (http://docs.simplemachines.org/index.php?topic=402)

-Snork13

That 'sort of' answers questions.  But I'm using 1.1 RC3 and there's quite a bit of difference in the .xml file...I'm not sure what the $boarddir and $sourcedir are looking at...I'm not sure how to proceed on it. 
Title: Re: PaypalDonations
Post by: devnet on October 14, 2006, 01:01:34 PM
Well, I got it working for pn-pn...it took many trials and errors to do so...I switched members back to default while I troubleshot it and things were fine.  After a few weeks research and 3 tries...I finally go this thing working with a tab in pn-pn. :D  Thanks for the help snork...even though the link to the doc is outdated for RC3 I was able to apply the info there to solve this.
Title: Re: PaypalDonations
Post by: Chad on October 14, 2006, 02:59:39 PM
Isn't there a mod for SMF that works more like the other forums for paypal donations?  Something that you can set a monthly goal in and shows who's donated, who hasn't and how much has been donated (minus the paypal fees) etc., ?  That worked really well for my site before I switched to SMF but now with SMF I'm finding that I have to maintain a donation status page manually so people know how much is left to donate for the month.
Title: Re: PaypalDonations
Post by: shapeshifter on November 27, 2006, 11:59:24 AM
Apparently does not work with the Dilbert theme, as I have everything looks to have gone fine with the the install, but there's no sign of the paypal button in the theme....
Title: Re: PaypalDonations
Post by: snork13 on November 27, 2006, 02:24:55 PM
Quote from: shapeshifter on November 27, 2006, 11:59:24 AM
Apparently does not work with the Dilbert theme, as I have everything looks to have gone fine with the the install, but there's no sign of the paypal button in the theme....

that is true, it only works with the default theme. You would need to modify your custom theme to work with mod.
Title: Re: PaypalDonations
Post by: shapeshifter on November 27, 2006, 03:06:17 PM
Are the instructions for doing so in this thread? I'll take a look....
Title: Re: PaypalDonations
Post by: snork13 on November 27, 2006, 03:29:27 PM
Quote from: shapeshifter on November 27, 2006, 03:06:17 PM
Are the instructions for doing so in this thread? I'll take a look....

Have a look here (http://docs.simplemachines.org/index.php?topic=402). It should help explain.

-Snork13
Title: Re: PaypalDonations
Post by: shapeshifter on November 28, 2006, 12:24:03 AM
Quote from: snork13 on November 27, 2006, 03:29:27 PM
Quote from: shapeshifter on November 27, 2006, 03:06:17 PM
Are the instructions for doing so in this thread? I'll take a look....

Have a look here (http://docs.simplemachines.org/index.php?topic=402). It should help explain.

-Snork13


Thanks. I edited the template's index.template.php file and got a donate button showing but the button's text is off-centered (yes, I did center it) and dark, so hopefully I'll have better luck with this way. Thanks again.
Title: Re: PaypalDonations
Post by: HEB XI 1 on December 15, 2006, 08:56:38 AM
Has anyone tested this on 1.1?
Title: Re: PaypalDonations
Post by: Bigguy on December 15, 2006, 04:21:56 PM
Mine seems to be working fine.
Title: Re: PaypalDonations
Post by: Tanks on December 16, 2006, 02:45:48 AM
hey snork. great mod.. if i could just get it to save the settings lol  :D

Is there any solution to that bug ?
Title: Re: PaypalDonations
Post by: snork13 on December 18, 2006, 08:43:48 AM
Quote from: Knat on December 16, 2006, 02:45:48 AM
hey snork. great mod.. if i could just get it to save the settings lol  :D

Is there any solution to that bug ?

are you using 1.1 final?
Title: Re: PaypalDonations
Post by: Tanks on December 18, 2006, 12:27:44 PM
Quote from: snork13 on December 18, 2006, 08:43:48 AM
Quote from: Knat on December 16, 2006, 02:45:48 AM
hey snork. great mod.. if i could just get it to save the settings lol  :D

Is there any solution to that bug ?

are you using 1.1 final?

No actually im using RC3 ! Please dont tell me thats a problem because im unable to upgrade  :o
Title: Re: PaypalDonations
Post by: snork13 on December 18, 2006, 12:53:44 PM
Quote from: Knat on December 18, 2006, 12:27:44 PM
Quote from: snork13 on December 18, 2006, 08:43:48 AM
Quote from: Knat on December 16, 2006, 02:45:48 AM
hey snork. great mod.. if i could just get it to save the settings lol  :D

Is there any solution to that bug ?

are you using 1.1 final?

No actually im using RC3 ! Please dont tell me thats a problem because im unable to upgrade  :o

so, it would seem the problem is:
In sources/ModSettings.php

find:

'karma' => 'ModifyKarmaSettings',

add after;

'paypal' => 'ModifypayPalSettings',

-snork13
Title: Re: PaypalDonations
Post by: Tanks on December 19, 2006, 01:33:59 AM
But thats already in there  :o

$subActions = array(
'basic' => 'ModifyBasicSettings',
'paypal' => 'ModifypayPalSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'ThankYou' => 'ModifyThankYouSettings',
'karma' => 'ModifyKarmaSettings',
);


Do you have any idea what else can cause SMF to not save the settings ?
Title: Re: PaypalDonations
Post by: snork13 on December 19, 2006, 10:40:53 AM
Quote from: Knat on December 19, 2006, 01:33:59 AM
But thats already in there  :o

$subActions = array(
'basic' => 'ModifyBasicSettings',
'paypal' => 'ModifypayPalSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'ThankYou' => 'ModifyThankYouSettings',
'karma' => 'ModifyKarmaSettings',
);


Do you have any idea what else can cause SMF to not save the settings ?

are you looking in the correct area? Search for ''karma' => 'ModifyKarmaSettings'," there is more then one...
Title: Re: PaypalDonations
Post by: Tanks on December 19, 2006, 01:43:07 PM
/me feels like a complete jerk for not searching for that second one. it works now. Thanks alot  ;)
Title: Re: PaypalDonations
Post by: swampy on December 19, 2006, 08:24:48 PM
I am getting this response with I try to install it on 1.1.1  Any suggestings?

1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php
Title: Re: PaypalDonations
Post by: snork13 on December 19, 2006, 08:28:44 PM
Quote from: swampy on December 19, 2006, 08:24:48 PM
I am getting this response with I try to install it on 1.1.1  Any suggestings?

1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php


I'm guessing it from another mod you have installed? If you view the modification .xml file it will tell you what to change in Sources/ModSettings.php.
Title: Re: PaypalDonations
Post by: swampy on December 19, 2006, 09:06:41 PM
modification .xml file <?xml version="1.0"?>
<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
   <id>snork13:PaypalDonations</id>
   <version>1.7</version>

   <file name="$boarddir/index.php">
      <operation>
         <search position="before"><![CDATA[
      'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),]]></search>
         <add><![CDATA[
      'paypal' => array('Paypal.php', 'Paypal'),]]></add>
      </operation>

   </file>

   

   <file name="$sourcedir/ManagePermissions.php">
      <operation>
         <search position="before"><![CDATA[
            'view_mlist' => false,
            'who_view' => false,
            'search_posts' => false,
            'karma_edit' => false,]]></search>
         <add><![CDATA[
            'payPal_view' => false,]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
      'profile_server_avatar',
      'profile_upload_avatar',
      'profile_remote_avatar',
      'profile_remove_own',]]></search>
         <add><![CDATA[
      'payPal_view',]]></add>
      </operation>
   </file>

   <file name="$sourcedir/ModSettings.php">
   
   <operation>
         <search position="replace"><![CDATA[require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
   );]]></search>
         <add><![CDATA[require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',
   );]]></add>
      </operation>
      
      <operation>
         <search position="replace"><![CDATA[function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}]]></search>
         <add><![CDATA[function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}]]></add>
      </operation>

      <operation>
         <search position="replace"><![CDATA[
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),]]></search>
         <add><![CDATA[
         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
         ),
         'paypal' => array(
            'title' => $txt['payPalFO'],
            'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
            'is_last' => true,
         ),]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}
]]></search>
         <add><![CDATA[
function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}
]]></add>
      </operation>
   </file>

   
   <file name="$themedir/index.template.php">
      <operation>
         <search position="replace"><![CDATA[
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt;
]]></search>
         <add><![CDATA[
function template_menu()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings;
]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
   if ($context['current_action'] == 'search2')
      $current_action = 'search';
]]></search>
         <add><![CDATA[
   if ($context['current_action'] == 'paypal')
      $current_action = 'paypal';
]]></add>
      </operation>

      <operation>
         <search position="before"><![CDATA[
   // The [calendar]!
   if ($context['allow_calendar'])
      echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a>
            </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
]]></search>
         <add><![CDATA[
   // Paypal Mod
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
      echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
            </td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
]]></add>
      </operation>
   </file>


   <file name="$themedir/languages/Modifications.english.php">
      <operation>
         <search position="after"><![CDATA[?>]]></search>
         <add><![CDATA[
$txt['payPal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
]]></add>
      </operation>
   </file>

   <file name="$themedir/languages/ModSettings.english.php">
      <operation>
         <search position="before"><![CDATA[
$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';
]]></search>
         <add><![CDATA[
$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';
]]></add>
      </operation>
   </file>

   <file name="$themedir/languages/Who.english.php">
      <operation>
         <search position="before"><![CDATA[
$txt['whoall_.xml'] = 'Viewing an XML feed.';
]]></search>
         <add><![CDATA[
$txt['whoall_paypal'] = 'Viewing the <a href="' . $scripturl . '?action=paypal">Donations</a>.';
]]></add>
      </operation>
   </file>

</modification>
Title: Re: PaypalDonations
Post by: swampy on December 20, 2006, 03:38:57 PM
?? Snork I am not much of a code reader, could you please have a look at the above and let me know what is needed please.

Much thanks and Merry Christmas.
Title: Re: PaypalDonations
Post by: snork13 on December 20, 2006, 03:56:13 PM
in file sources/ModSettings.php
   
  find:

   require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',


  replace with:


require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',

 

find:

function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}


   replace with:

function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}

find:


         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),


replace with:


         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
         ),
         'paypal' => array(
            'title' => $txt['payPalFO'],
            'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
            'is_last' => true,
         ),

find:

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}


add after:


function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}


-snork13
Title: Re: PaypalDonations
Post by: swampy on December 20, 2006, 04:25:17 PM
much thanks!

:D
Title: Re: PaypalDonations
Post by: Poppet on January 03, 2007, 09:49:47 PM
I've done all the above edits to the ModsSettings.php but it's still coming up with Test Failed when I apply the mod, am I safe to proceed?
Title: Re: PaypalDonations
Post by: Bigguy on January 04, 2007, 12:21:13 AM
If you have done all the edits to the ModSettings.php file and uploaded it (After making a backup of the file of course) All you should have to do is ignore the error and install the mod through the package manager.
Title: Re: PaypalDonations
Post by: albsat on January 04, 2007, 03:11:40 AM
@snork

Hi. thnx for your Paypal donation mod. i tried to install it but after the modificatioan and running the script add_settings.php and trying to change the settings in Paypal I get this error:
Fatal error: Call to undefined function: modifypaypalsettings() in /home/httpd/vhosts/????"/httpdocs/tingulli/Sources/ModSettings.php on line 157

any help man?
Regards
P.s. By the way this is my first post and my first install of SMF. Hello to everyone.
Title: Re: PaypalDonations
Post by: HEB XI 1 on January 07, 2007, 12:48:13 AM
I seem to have found some kind of incompatibility between Simple Blog and PayPal donations mod.  Each mod will install fine by itself, but neither will install WITH the other as they both edit ./Sources/ModSettings.php and installing one seems to throw things off.  I've also posted on the Simple Blog thread (http://www.smfhacks.com/index.php/topic,97.0.html) to see if there is something either author can do to make them play nice together.

I'd rather avoid editing things by hand a that tends to get me into trouble.  The blog mod is less important to me so I'm willing to wait and see.

FWIW, I'm running 1.1.1 on the default theme.

http://www.raven-flight.com/community
Title: Re: PaypalDonations
Post by: fasterthanyours on January 13, 2007, 01:35:07 PM
I download this and attempted to install it.

It will not install because I have The Google Maps Mod install.

Nor will the Google Maps install if I have your mod installed.

It Fails on ModSettings.php and sometimes on Modifications.english.php
Title: Re: PaypalDonations
Post by: Bigguy on January 14, 2007, 12:12:06 AM
It does install. I have all of those mods installed and did not have to do any manual editing. Maybe it is another mod that is conflicting. Those edits aren't very hard to do manually though if you need to.
Title: Re: PaypalDonations
Post by: LooseCannon17 on January 16, 2007, 01:50:36 AM
Hi there,

Uninstalled and deleted the previous version of Paypal Donations, and installed version 1.7 on SMF 1.1.1.  This is the error message that I receive when I go to my Features and Options via the Admin:

Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/mltdownl/public_html/home/Sources/ModSettings.php:406) in /home/mltdownl/public_html/home/Sources/ModSettings.php on line 708

From what I can tell - both the entries into the modsettings/php are exactly the same on both the old (backup file) and the new install, just on different lines.

My forums are heavily modified, and will continue to run even with this error, although members mention that there is no donations tab at the top of the screen anymore.

Any help would be greatly appreciated,
Title: Re: PaypalDonations
Post by: neskiairti on January 23, 2007, 03:24:17 AM
this mod doesnt work with any theme but the default theme.. and where is the options button in the admin section? there is no link to eddit it! only when you first install the mod is it at the top of the screen (turning everything twice as big as it should be as well, damn html..) but anyhow.. kindof a sucky mod.. -shrugs- thanks for the effort though.
Title: Re: PaypalDonations
Post by: Bigguy on January 23, 2007, 06:58:24 PM
Almost every mod doesn't install on custom themes. They are made to install only on the default. Sorry you had problems with it but thats no reason to put down someone's efforts. I have it installed and it works great.
Title: Re: PaypalDonations
Post by: neskiairti on January 24, 2007, 03:41:12 AM
i was refering to the default theme... thank you very much.
Title: Re: PaypalDonations
Post by: mohoganybrwn on January 27, 2007, 04:46:32 PM
Where can I find the manual edits for this mod?  I tried to install with the package manager..but got an error...so I would like to install it manually.
Title: Re: PaypalDonations
Post by: Bigguy on January 27, 2007, 04:52:45 PM
Look in 1 of the 2 .xml files in the .zip package you downloaded. All the edits should be in there. I am not sure if it would be called install.xml or modification.xml
Title: Re: PaypalDonations
Post by: look up on February 06, 2007, 04:44:09 PM
i'm trying to get this to work in a theme other than the smf default.  anyone had success with trying this?

i have 1.1.1, using the musiconica theme, which is based off the slickpro graphite theme.
i tried to copy and paste the paypal generated html code into a new <tr> directly above my link tree.  however, i get the following error:

Quoteparse error, unexpected T_STRING, expecting ',' or ';'

any suggestions?
Title: Re: PaypalDonations
Post by: snork13 on February 06, 2007, 04:48:41 PM
Quote from: look up on February 06, 2007, 04:44:09 PM
i'm trying to get this to work in a theme other than the smf default.  anyone had success with trying this?

i have 1.1.1, using the musiconica theme, which is based off the slickpro graphite theme.
i tried to copy and paste the paypal generated html code into a new <tr> directly above my link tree.  however, i get the following error:

Quoteparse error, unexpected T_STRING, expecting ',' or ';'

any suggestions?

can you post the lines of code where it's going bad
Title: Re: PaypalDonations
Post by: look up on February 06, 2007, 05:44:16 PM
sure.

i know i'm about to post more than you need, but i don't want to leave out anything important that you may need to see.
also, as you'll see, i've put in a row of links to other sites.

from index.template.php...

   // display user name
   echo '
     
      <table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0">
           
           <tr>
                     <td align="center">
                          <font size="1"><a href="http://www.widespreadpanic.com/" target="_blank">WP.com</a> | <a href="http://www.everydaycompanion.com/asp/default.asp" target="_blank">EC.com</a> | <a href="http://www.panicstream.com/" target="_blank">pstream.com</a> | <a href="http://www.allmanbrothersband.com/" target="_blank">ABB.com</a> | <a href="http://www.discobiscuits.com/main_flashsite.asp" target="_blank">bisco.com</a> | <a href="http://www.drivebytruckers.com/" target="_blank">DBT.com</a> | <a href="http://www.dead.net/" target="_blank">dead.net</a> | <a href="http://www.moe.org/index2.htm" target="_blank">moe.org</a> | <a href="http://www.mymorningjacket.com/" target="_blank">MMJ.com</a> | <a href="http://www.mule.net/" target="_blank">mule.net</a> | <a href="http://www.nmallstars.com/index.shtml" target="_blank">NMAS.com</a> | <a href="http://www.foryouroutformation.com/test3/" target="_blank">out411.com</a> | <a href="http://www.pgroove.com/quicknews/pgroove.php" target="_blank">pgroove.com</a> | <a href="http://www.tealeafgreen.com/" target="_blank">TLG.com</a></font>
                     
                     </td>
           </tr>
       </table>

      <table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0">
             
         <tr>';
         
   echo '
                     <td class="windowbg2" width="100%" valign="middle" align="left" style="background-color:#aaaaaa;">
                     ', theme_linktree2(), '
                     </td>';

   echo '
                     <td style="background-color:#aaaaaa;" width="250" valign="top" align="right" class="windowbg"><span class="middletext" style="display:block;width:250px;">';
                     
   if($context['user']['is_logged'])
   {
      echo '
            <strong>Welcome, ', $context['user']['name'] , '.</strong><br />';
   }
           
   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
   {
      echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' : '' , '
               <a href="', $scripturl, '?action=pm">Private Messages</a>: ', $context['user']['unread_messages'], ' Unread, ', $context['user']['messages'], ' Total.<br />';
   }
           
   // Now, onto our second set of info, are they logged in again?
   if ($context['user']['is_logged'])
   {
      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                        <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                        ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
                        ', $txt['totalTimeLogged1'], '<br />';

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                        <table border="0" cellpadding="1" cellspacing="0" bgcolor=#aaaaaa>
                           <tr>
                              <td>Username:</td>
                              <td><input type="text" name="user" size="10" /></td>
                              <td><select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="43200">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select></td>
                           </tr>
                           <tr>
                              <td>Password:</td>
                              <td><input type="password" name="passwrd" size="10" /></td>
                              <td><input type="submit" value="', $txt[34], '" /></td>
                           </tr>
                        </table>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }

   echo '
               </span>
            </td>
         </tr>
      </table>';

   echo '
      <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style=""', ' width="100%" cellpadding="4" cellspacing="0" border="0">
         <tr>';


   echo '
            <td width="90%" class="column-title">
               ', template_menu(), '
            </td>';

   echo '
         </tr>
      </table>
   </div>';



and i'm trying to insert the following:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC7Nd7FRdiICBbg4rKV27nGvBOyu4aZTEMyZzfadYVmeOTuBaSIgM9l6Ggjz0fdre+X8DQnnMRxQ3X3clBa41GZNoHlLzLa4elzeE31kTEiWKeaZ/O/d3b+5xb8hh/MZT7ZcYQr5ttCzAeoPCznRoDDDk6Zkbo9mJDXEBdAF/F6ADELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIq+LTUbBKI7WAgYgp2yCg3oqSzedrDcqFxQKtjsohPp9WRu0Lfee5elUhRg0lCbn7LOhUy9olA+JRFDmjd4uoN+A3n3zQiyWc2b6rPXM1xm5/ihgu16AzrMcylcZ4UMMw5wHFGurdONW43rteo2cgm/QktzY1E+/hUBSsHhYVohSNlw1HEZZPagX7umf9pQpddFlPoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwMjA2MjIzOTE2WjAjBgkqhkiG9w0BCQQxFgQUgsrtfDGqTUprRgCpxtTOh7WeOmMwDQYJKoZIhvcNAQEBBQAEgYBUcdkYjK03jV9zbu54YpyuqUb5YbKCklU3O6zaGLkXafCoCZWba5OcSyKdSbClfHAF/kBmZF3z/QgaV38Ml+UPNZM85UN21MzFrDUph2Tg2PgZkyD11kaAKoFg6DXILQRkLh+H31SR8dvEtl4S4rHtMDzs8oTtpTf3DnwaPI1tYQ==-----END PKCS7-----
">
</form>


i've tried to insert it as a couple of different ways, including as:
1) a <table>...after the  first <table> (with the row of links; wp.com etc.)
2) a <tr>...within the <table> with the row of links

i get the same error each time.
Title: Re: PaypalDonations
Post by: snork13 on February 06, 2007, 11:10:05 PM
Quote from: look up on February 06, 2007, 05:44:16 PM
sure.

i know i'm about to post more than you need, but i don't want to leave out anything important that you may need to see.
also, as you'll see, i've put in a row of links to other sites.

from index.template.php...

   // display user name
   echo '
     
      <table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0">
          
           <tr>
                     <td align="center">
                          <font size="1"><a href="http://www.widespreadpanic.com/" target="_blank">WP.com</a> | <a href="http://www.everydaycompanion.com/asp/default.asp" target="_blank">EC.com</a> | <a href="http://www.panicstream.com/" target="_blank">pstream.com</a> | <a href="http://www.allmanbrothersband.com/" target="_blank">ABB.com</a> | <a href="http://www.discobiscuits.com/main_flashsite.asp" target="_blank">bisco.com</a> | <a href="http://www.drivebytruckers.com/" target="_blank">DBT.com</a> | <a href="http://www.dead.net/" target="_blank">dead.net</a> | <a href="http://www.moe.org/index2.htm" target="_blank">moe.org</a> | <a href="http://www.mymorningjacket.com/" target="_blank">MMJ.com</a> | <a href="http://www.mule.net/" target="_blank">mule.net</a> | <a href="http://www.nmallstars.com/index.shtml" target="_blank">NMAS.com</a> | <a href="http://www.foryouroutformation.com/test3/" target="_blank">out411.com</a> | <a href="http://www.pgroove.com/quicknews/pgroove.php" target="_blank">pgroove.com</a> | <a href="http://www.tealeafgreen.com/" target="_blank">TLG.com</a></font>
                    
                     </td>
           </tr>
       </table>

      <table width="100%" cellspacing="1" cellpadding="5" class="bordercolor" border="0">
            
         <tr>';
        
   echo '
                     <td class="windowbg2" width="100%" valign="middle" align="left" style="background-color:#aaaaaa;">
                     ', theme_linktree2(), '
                     </td>';

   echo '
                     <td style="background-color:#aaaaaa;" width="250" valign="top" align="right" class="windowbg"><span class="middletext" style="display:block;width:250px;">';
                    
   if($context['user']['is_logged'])
   {
      echo '
            <strong>Welcome, ', $context['user']['name'] , '.</strong><br />';
   }
           
   // Go to PM center... [pm]
   if ($context['user']['is_logged'] && $context['allow_pm'])
   {
      echo ((isset($current_action) && $curent_action == 'pm') || $context['browser']['is_ie4']) ? '' : '' , '
               <a href="', $scripturl, '?action=pm">Private Messages</a>: ', $context['user']['unread_messages'], ' Unread, ', $context['user']['messages'], ' Total.<br />';
   }
           
   // Now, onto our second set of info, are they logged in again?
   if ($context['user']['is_logged'])
   {
      // Is the forum in maintenance mode?
      if ($context['in_maintenance'] && $context['user']['is_admin'])
         echo '
                        <b>', $txt[616], '</b><br />';

      // Are there any members waiting for approval?
      if (!empty($context['unapproved_members']))
         echo '
                        ', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';

      // Show the total time logged in?
      if (!empty($context['user']['total_time_logged_in']))
      {
         echo '
                        ', $txt['totalTimeLogged1'], '<br />';

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
      }
   }
   // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
   else
   {
      echo '            </span>
                        <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>

                        <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
                        <table border="0" cellpadding="1" cellspacing="0" bgcolor=#aaaaaa>
                           <tr>
                              <td>Username:</td>
                              <td><input type="text" name="user" size="10" /></td>
                              <td><select name="cookielength">
                              <option value="60">', $txt['smf53'], '</option>
                              <option value="1440">', $txt['smf47'], '</option>
                              <option value="10080">', $txt['smf48'], '</option>
                              <option value="43200">', $txt['smf49'], '</option>
                              <option value="-1" selected="selected">', $txt['smf50'], '</option>
                           </select></td>
                           </tr>
                           <tr>
                              <td>Password:</td>
                              <td><input type="password" name="passwrd" size="10" /></td>
                              <td><input type="submit" value="', $txt[34], '" /></td>
                           </tr>
                        </table>
                           <input type="hidden" name="hash_passwrd" value="" />
                        </form>';
   }

   echo '
               </span>
            </td>
         </tr>
      </table>';

   echo '
      <table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style=""', ' width="100%" cellpadding="4" cellspacing="0" border="0">
         <tr>';


   echo '
            <td width="90%" class="column-title">
               ', template_menu(), '
            </td>';

   echo '
         </tr>
      </table>
   </div>';



and i'm trying to insert the following:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC7Nd7FRdiICBbg4rKV27nGvBOyu4aZTEMyZzfadYVmeOTuBaSIgM9l6Ggjz0fdre+X8DQnnMRxQ3X3clBa41GZNoHlLzLa4elzeE31kTEiWKeaZ/O/d3b+5xb8hh/MZT7ZcYQr5ttCzAeoPCznRoDDDk6Zkbo9mJDXEBdAF/F6ADELMAkGBSsOAwIaBQAwgawGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIq+LTUbBKI7WAgYgp2yCg3oqSzedrDcqFxQKtjsohPp9WRu0Lfee5elUhRg0lCbn7LOhUy9olA+JRFDmjd4uoN+A3n3zQiyWc2b6rPXM1xm5/ihgu16AzrMcylcZ4UMMw5wHFGurdONW43rteo2cgm/QktzY1E+/hUBSsHhYVohSNlw1HEZZPagX7umf9pQpddFlPoIIDhzCCA4MwggLsoAMCAQICAQAwDQYJKoZIhvcNAQEFBQAwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMB4XDTA0MDIxMzEwMTMxNVoXDTM1MDIxMzEwMTMxNVowgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDBR07d/ETMS1ycjtkpkvjXZe9k+6CieLuLsPumsJ7QC1odNz3sJiCbs2wC0nLE0uLGaEtXynIgRqIddYCHx88pb5HTXv4SZeuv0Rqq4+axW9PLAAATU8w04qqjaSXgbGLP3NmohqM6bV9kZZwZLR/klDaQGo1u9uDb9lr4Yn+rBQIDAQABo4HuMIHrMB0GA1UdDgQWBBSWn3y7xm8XvVk/UtcKG+wQ1mSUazCBuwYDVR0jBIGzMIGwgBSWn3y7xm8XvVk/UtcKG+wQ1mSUa6GBlKSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwMjA2MjIzOTE2WjAjBgkqhkiG9w0BCQQxFgQUgsrtfDGqTUprRgCpxtTOh7WeOmMwDQYJKoZIhvcNAQEBBQAEgYBUcdkYjK03jV9zbu54YpyuqUb5YbKCklU3O6zaGLkXafCoCZWba5OcSyKdSbClfHAF/kBmZF3z/QgaV38Ml+UPNZM85UN21MzFrDUph2Tg2PgZkyD11kaAKoFg6DXILQRkLh+H31SR8dvEtl4S4rHtMDzs8oTtpTf3DnwaPI1tYQ==-----END PKCS7-----
">
</form>


i've tried to insert it as a couple of different ways, including as:
1) a <table>...after the  first <table> (with the row of links; wp.com etc.)
2) a <tr>...within the <table> with the row of links

i get the same error each time.
Hello,


PM sent.... I am a long time spreadhead, and friend of the band  :D, I haven't seen them in years, well about 10 years :P

-snork13
Title: Re: PaypalDonations
Post by: look up on February 06, 2007, 11:44:03 PM
cool.  pm on the way.

please feel free to join the forum.  it can get kind of hairy in there, but overall, it's a good group of folks.

you should jump back on tour soon.  jimmy herring is doing good things for them.
Title: Re: PaypalDonations
Post by: look up on February 09, 2007, 12:03:38 AM
thanks for your help, snork.

this guy is good people, folks.
Title: Re: PaypalDonations
Post by: starz on February 10, 2007, 11:35:56 AM
How do I get the donation button to work on other themes?  Can someone please help me?
Title: Re: PaypalDonations
Post by: Bigguy on February 10, 2007, 08:08:25 PM
You will have to add the button code to that theme. In the index.template.php file of the theme you use find all of the button codes near the bottom of the file. The button code for the default theme is this:

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'help' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=help">' , $txt[119] , '</a>
</td>' , $current_action == 'help' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


In this example you would change everything that says help to donate. This button code might not work for your theme though as this is for the default theme.
Title: Re: PaypalDonations
Post by: thegpg on February 13, 2007, 11:11:23 PM
Ugh.

I just tried to install this mod on 1.1.2

Nuffin happens.  Helpeth please?  Purdy please?

With sugar on top?!

=)
Title: Re: PaypalDonations
Post by: Bigguy on February 14, 2007, 12:16:21 AM
How do you mean nothin happens. Does it not get installed or you just can't see it at all. If you are using a custom theme then you will have to add parts of it manually.
Title: Re: PaypalDonations
Post by: thegpg on February 14, 2007, 01:31:32 AM
I am using the default theme...and I mean it installs but I don't show the "donations" section in features and options, or the paypal donation area itself.
Title: Re: PaypalDonations
Post by: Bigguy on February 14, 2007, 11:47:28 AM
Do all your files have the right permissions. They should be either 777 or 755 These can be changed by going into the Packages area in the admin panel and then to options. If youscroll down there is a place to make all files writtable.
Title: Re: PaypalDonations
Post by: snork13 on February 14, 2007, 12:10:01 PM
it may also be because I need to update it for 1.1.2 ;D
Title: Re: PaypalDonations
Post by: Bigguy on February 14, 2007, 12:35:21 PM
Oh, yeah, that could be it to, lol. :)

Quote from: snork13 on February 14, 2007, 12:10:01 PM
it may also be because I need to update it for 1.1.2 ;D
Title: Re: PaypalDonations
Post by: thegpg on February 14, 2007, 03:42:39 PM
Quote from: snork13 on February 14, 2007, 12:10:01 PM
it may also be because I need to update it for 1.1.2 ;D

if you did you would be my very best friend in the whole SMF world!
Title: Re: PaypalDonations
Post by: snork13 on February 14, 2007, 04:17:52 PM
Quote from: thegpg on February 14, 2007, 03:42:39 PM
Quote from: snork13 on February 14, 2007, 12:10:01 PM
it may also be because I need to update it for 1.1.2 ;D

if you did you would be my very best friend in the whole SMF world!

Sweet :P Mod updated :)
Title: Re: PaypalDonations
Post by: thegpg on February 14, 2007, 05:45:22 PM
i am lovin you!!!  You know this, right?

Lizzy
The GPG Goddess
Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 03:22:58 AM
getting this error can someone help

Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php
Title: Re: PaypalDonations
Post by: Sinan-Trr on February 15, 2007, 10:03:16 AM
I Have the same Problem :-(
Title: Re: PaypalDonations
Post by: snork13 on February 15, 2007, 10:28:46 AM
do you have other mods installed? If so which ones.
Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 10:43:21 AM
 Mod Name Version 
1. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
2. Hide Board 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. cbi, 1.0 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
4. Enhanced Calendar 1.0  [ List Files ] [ Delete ] 
5. AvatarSelect 1.1.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. FontandSizeDropdown1.1 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Simple_Mood 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Googlebot & Spiders Mod 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
9. PaypalDonations 1.7  [ Apply Mod ] [ List Files ] [ Delete ] 

Avatar Packages
Mod Name Version 
1. Futurama Avatars 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. The Simpsons Avatars 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. Actor Avatar Extras 1.0   [ Uninstall ] [ List Files ] [ Delete 

Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 10:44:06 AM
also i am using smf 1.1.2 fresh install
Title: Re: PaypalDonations
Post by: snork13 on February 15, 2007, 11:11:32 AM
Quote from: frost4225 on February 15, 2007, 10:43:21 AM
Mod Name Version 
1. Ad Managment 2.3   [ Uninstall ] [ List Files ] [ Delete ] 
2. Hide Board 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
3. cbi, 1.0 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
4. Enhanced Calendar 1.0  [ List Files ] [ Delete ] 
5. AvatarSelect 1.1.2   [ Uninstall ] [ List Files ] [ Delete ] 
6. FontandSizeDropdown1.1 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
7. Simple_Mood 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. Googlebot & Spiders Mod 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
9. PaypalDonations 1.7  [ Apply Mod ] [ List Files ] [ Delete ] 

Avatar Packages
Mod Name Version 
1. Futurama Avatars 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. The Simpsons Avatars 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. Actor Avatar Extras 1.0   [ Uninstall ] [ List Files ] [ Delete 



It's one of the other mods, and the xml can't find the code to edit. Have a look at this doc.

http://docs.simplemachines.org/index.php?topic=402

-Snork13
Title: Re: PaypalDonations
Post by: Sinan-Trr on February 15, 2007, 11:21:05 AM
1.     Integrated Chat      2.7      [ Uygula ]  [ Dosyaları Listele ]  [ Sil ]
2.    Google Member Map    0.55    [ Dosyaları Listele ] [ Sil ]
3.    Googlebot & Spiders Mod    1.0.5    [ Dosyaları Listele ] [ Sil ]
4.    InfoBar    1.00    [ Dosyaları Listele ] [ Sil ]
5.    Location Mod    1.2    [ Dosyaları Listele ] [ Sil ]
6.    FlashChat Integration    0.1 Beta    [ Uygula ] [ Dosyaları Listele ] [ Sil ]
7.    PaypalDonations    1.7    [ Uygula ] [ Dosyaları Listele ] [ Sil ]
8.    Ad Managment    2.3    [ Uygula ] [ Dosyaları Listele ] [ Sil ]

I have removed all Mods, But Still It says Modification error
Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 11:24:36 AM
but i am not using a custom theme.  is ther anyway to see what mod is doing it.  and is that the reason that i am only failing the current test.

3. Execute Modification ./Sources/ModSettings.php Test failed

it just tells me warning do not proceed so i didn't.  should I?
Title: Re: PaypalDonations
Post by: snork13 on February 15, 2007, 11:36:41 AM
Quote from: frost4225 on February 15, 2007, 11:24:36 AM
but i am not using a custom theme.  is ther anyway to see what mod is doing it.  and is that the reason that i am only failing the current test.

3. Execute Modification ./Sources/ModSettings.php Test failed

it just tells me warning do not proceed so i didn't.  should I?

I understand, you will need to edit the files manually even for the default theme. The more modifications you have the harder it is for the xml to find the code to modify.
Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 12:25:34 PM
ok one more stupid question.  is it possible for me to let the package manager install the package and then i just do the one that is failing.  modsettings.php?   sorry for being such a newbie but this is my first manual mod.  i look at the source xml for paypal donations and looked at the modsettings.php and alot of the replace and add's dont exist on the modsettings.php like it says on the source.xml.   can you help me with this one so i can see how to do it. 

sorry for the inconvience.

i am including a copy of my modsettings.php file
Title: Re: PaypalDonations
Post by: snork13 on February 15, 2007, 02:14:23 PM
yes, and then try this after removing the .txt ;)
Title: Re: PaypalDonations
Post by: thegpg on February 15, 2007, 02:30:11 PM
snork, i love you

i just needed you to know ;)
Title: Re: PaypalDonations
Post by: Daggers on February 15, 2007, 03:49:42 PM
This mod does work in 1.1.2...

To use the package installer you need to alter the package-info.xml file and add 1.1.2 to install and to the unistall.

This worked for me on the default theme only..... I take no responsibility if it doesnt work for you  :o :o :o :o

Title: Re: PaypalDonations
Post by: frost4225 on February 15, 2007, 05:27:33 PM
snork that worked bad a** thank you very much for all your help.
Title: Re: PaypalDonations
Post by: Paracelsus on February 16, 2007, 05:03:39 AM
Hi,

I just wondered about the donation thing... does anybody have experience with Chipin fundraising widget?

I think it would be a better way to do donations, since it´s much more detailed than a simple PayPal button.
The link: http://www.chipin.com (http://www.chipin.com)
The widget that show up in your website:


Title: Re: PaypalDonations
Post by: Mick. on February 17, 2007, 10:39:36 AM
Hey snorkl,i get this 2 errors.  Any ideas?

2. Execute Modification ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test failed
Title: Re: PaypalDonations
Post by: snork13 on February 17, 2007, 11:17:24 AM
Quote from: BlueDevil on February 17, 2007, 10:39:36 AM
Hey snorkl,i get this 2 errors.  Any ideas?

2. Execute Modification ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test failed


the modSetting and permissions get change alot from other mods. the xml just can't find the code, it was changed by another mod. Try a manual adjustment of the source files.
Title: Re: PaypalDonations
Post by: gemsdb on February 18, 2007, 01:55:58 AM
I have Added this to My forum http://gemsdb.com/forum/index.php

I use bluBlur Skin, hbSkins .. I think that does not allow to show the Donation button ... How do i get it to work ??

The set up was fine, Even added the paypal code and made the permisson to see the donate button.

Where do I have to add the code on my  index.template.php , If you can send me the code I can Add it.

please help

Ahmed Shareek

Title: Re: PaypalDonations
Post by: snork13 on February 18, 2007, 10:42:32 AM
Quote from: gemsdb on February 18, 2007, 01:55:58 AM
I have Added this to My forum http://gemsdb.com/forum/index.php

I use bluBlur Skin, hbSkins .. I think that does not allow to show the Donation button ... How do i get it to work ??

The set up was fine, Even added the paypal code and made the permisson to see the donate button.

Where do I have to add the code on my  index.template.php , If you can send me the code I can Add it.

please help

Ahmed Shareek



this doc should explain it:

http://docs.simplemachines.org/index.php?topic=402

-Snork13
Title: Re: PaypalDonations
Post by: Rocketta on February 20, 2007, 07:59:40 PM
I keep getting these errors...

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php
Title: Re: PaypalDonations
Post by: snork13 on February 21, 2007, 08:53:04 AM
Quote from: Rocketta on February 20, 2007, 07:59:40 PM
I keep getting these errors...

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

do you have mods installed, if so you will need to edit the file manually.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: Rocketta on February 21, 2007, 06:59:12 PM
Quote from: snork13 on February 21, 2007, 08:53:04 AM

do you have mods installed, if so you will need to edit the file manually.

http://docs.simplemachines.org/index.php?topic=402

yes I have mods installed but I don't know enough to take that generic example of how to manually install a mod and apply it to the Paypal mod???

I don't know what code to install, when it says Operation tag are they talking about in the paypal xml file or the default theme??
Title: Re: PaypalDonations
Post by: TheDarkie on February 26, 2007, 08:01:01 PM
I am also having problems on getting this mod to work under a non-standard template, i even tried the ad management mod, alas, to no avail.
Title: Re: PaypalDonations
Post by: devnet on February 27, 2007, 09:13:57 PM
It's a bit tricky all...you have to read the XML installation file and do what it says step-by-step to manually install this.

One thing I also did is install it...then went into my default template and compared it to the one I wanted customized...then I copied and pasted the stuff that was altered into the closest place I could find on the non-standard template.

It's hit and miss I'm afraid.
Title: Re: PaypalDonations
Post by: shapeshifter on March 14, 2007, 09:40:13 PM
Okay, thanks to pheasant_plucker for making this simple!  ;D

Maybe this code instead, though, for the actual menu in index.template.php:

// the [paypal] !
echo ($current_action=='paypal' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
<td align="center" class="menubg' , $current_action == 'paypal' ? '2' : '' , '">
<a href="', $scripturl, '?action=paypal">Donate</a>
</td>' , $current_action == 'paypal' ? '<td class="menubg' . $last . '">&nbsp;</td>' : ''
Title: Re: PaypalDonations
Post by: shapeshifter on March 14, 2007, 10:09:50 PM
Quote from: Paracelsus on February 16, 2007, 05:03:39 AM
Hi,

I just wondered about the donation thing... does anybody have experience with Chipin fundraising widget?

I think it would be a better way to do donations, since it´s much more detailed than a simple PayPal button.
The link: http://www.chipin.com (http://www.chipin.com)
The widget that show up in your website:


Looked interesting, but I don't like the thought of giving a third party so much personal info.
Title: Re: PaypalDonations
Post by: hitman on March 16, 2007, 10:15:22 PM
I tried to add this to my site but it did not work.  I have a custom theme, so I added everything manually and followed the directions.  The link tab came up in the amdin profile, but when you clicked on it, it did nothing.  So, the link was there, but it did not take you to the configuration page.
Title: Re: PaypalDonations
Post by: 78tahitman on March 16, 2007, 10:22:01 PM
I tried to add this to my site but it did not work.  I have a custom theme, so I added everything manually and followed the directions.  The link tab came up in the amdin profile, but when you clicked on it, it did nothing.  So, the link was there, but it did not take you to the configuration page.
Title: Re: PaypalDonations
Post by: snork13 on March 17, 2007, 10:12:34 AM
Double check you made all the code changes, and that you ran the changes to the database?

-Snork13
Title: Re: PaypalDonations
Post by: Bigguy on March 17, 2007, 12:49:59 PM
Would you have an idea on how I could fix this error:

Fatal error: Call to undefined function: modifypaypalsettings() in /home/*****/public_html/smfhelper/Sources/ModSettings.php on line 190
Title: Re: PaypalDonations
Post by: snork13 on March 17, 2007, 03:10:03 PM
Quote from: Bigguy on March 17, 2007, 12:49:59 PM
Would you have an idea on how I could fix this error:

Fatal error: Call to undefined function: modifypaypalsettings() in /home/*****/public_html/smfhelper/Sources/ModSettings.php on line 190

yes, your missing the function in the modsetting source file
Title: Re: PaypalDonations
Post by: Bigguy on March 17, 2007, 04:52:04 PM
I have checked the modsettings.php file and all the edits are there.
Title: Re: PaypalDonations
Post by: tigergal on March 21, 2007, 06:38:22 PM
I installed this and everything went fine but the donate tab isn't showing up?
Title: Re: PaypalDonations
Post by: tigergal on March 22, 2007, 08:28:27 AM
I just wanted to reply to anybody who had the stupid problem that I did in not being able to find the donation options tab...it's under features and options>donations.

I'm all set. Thanks great mod!
Title: Re: PaypalDonations
Post by: ovno on April 04, 2007, 06:59:19 PM
Quote from: tigergal on March 22, 2007, 08:28:27 AM
I just wanted to reply to anybody who had the stupid problem that I did in not being able to find the donation options tab...it's under features and options>donations.

I'm all set. Thanks great mod!
Well, mine installed fine just like yours, and the tab does not exist. I checked features and options, and there is no tab. Anyone know a fix?
Title: Re: PaypalDonations
Post by: GPGrieco on April 04, 2007, 08:46:39 PM
I tried to install this package and I got this error:

3. Execute Modification ./Sources/ModSettings.php


I went to the package phraser and it said to find



'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),


and



$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}


They are just not there. I was able to find the other ones. another mod modified them so it was not able to find them. these, on the other hand are just not there.

I attached the file if you want to look at it.

Thanks I appricate it.
Title: Re: PaypalDonations
Post by: GPGrieco on April 05, 2007, 03:08:43 PM
I was able to find them. So the mod is installed, but when I activate it and fill out the reason for donation and the html code for the button, it does not show up. Why is this?
Title: Re: PaypalDonations
Post by: snork13 on April 05, 2007, 05:23:46 PM
Quote from: GPGrieco on April 05, 2007, 03:08:43 PM
I was able to find them. So the mod is installed, but when I activate it and fill out the reason for donation and the html code for the button, it does not show up. Why is this?
check both instances in the modSettings, also check the database as the rows added?
Title: Re: PaypalDonations
Post by: GPGrieco on April 05, 2007, 06:20:00 PM
 ???
Title: Re: PaypalDonations
Post by: snork13 on April 05, 2007, 08:50:36 PM
Quote from: snork13 on December 20, 2006, 03:56:13 PM
in file sources/ModSettings.php
   
  find:

   require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',


  replace with:


require_once($sourcedir . '/ManageServer.php');

   $context['page_title'] = $txt['modSettings_title'];
   $context['sub_template'] = 'show_settings';

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',

 

find:

function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}


   replace with:

function ModifyFeatureSettings2()
{
   global $context, $txt, $scripturl, $modSettings, $sourcedir;

   isAllowedTo('admin_forum');
   loadLanguage('ModSettings');

   // Quick session check...
   checkSession();

   require_once($sourcedir . '/ManageServer.php');

   $subActions = array(
      'basic' => 'ModifyBasicSettings',
      'layout' => 'ModifyLayoutSettings',
      'karma' => 'ModifyKarmaSettings',
      'paypal' => 'ModifypayPalSettings',
   );

   // Default to core (I assume)
   $_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   // Actually call the saving function.
   $subActions[$_REQUEST['sa']]();
}

find:


         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
            'is_last' => true,
         ),


replace with:


         'karma' => array(
            'title' => $txt['smf293'],
            'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
         ),
         'paypal' => array(
            'title' => $txt['payPalFO'],
            'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
            'is_last' => true,
         ),

find:

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}


add after:


function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}


-snork13

Title: Re: PaypalDonations
Post by: GPGrieco on April 05, 2007, 09:50:15 PM
all of the "replace with" and "add after" was already done. I had to manually edit it to get the mod to work. as seen in the original post I was getting errors, that was because other mods already edited those files. What now?
Title: Re: PaypalDonations
Post by: snork13 on April 05, 2007, 10:42:03 PM
Quote from: GPGrieco on April 05, 2007, 09:50:15 PM
all of the "replace with" and "add after" was already done. I had to manually edit it to get the mod to work. as seen in the original post I was getting errors, that was because other mods already edited those files. What now?

Did you run through the package manager and then make the manual edits? Do you have access to check the database has been populated?
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 12:08:48 AM
when you say to check if the database has been populated, do you mean ftp access? If so yes. What would I be looking for?
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 09:24:27 AM
Quote from: GPGrieco on April 06, 2007, 12:08:48 AM
when you say to check if the database has been populated, do you mean ftp access? If so yes. What would I be looking for?

You would need access to the database maybe via phpmyadmin if your host offers such a program?

Your looking for the database entrys that hold the info that is missing.  If you ran through the package manager then it should have run the querys needed. If you edited manually then you'll need to run add_settings.php from the package.
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 12:25:24 PM
I ran it through the package manager, then manually made the modifications to the ones that had a problem.
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 02:01:12 PM
Quote from: GPGrieco on April 06, 2007, 12:25:24 PM
I ran it through the package manager, then manually made the modifications to the ones that had a problem.


ok, that should have added the database settings. Can you post your modSettings.php file with the changes made. I'll take a look.
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 02:03:19 PM
Ok, I attached the file for you.
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 02:38:07 PM
Quote from: GPGrieco on April 06, 2007, 02:03:19 PM
Ok, I attached the file for you.
ok, the file looks good. do you have access to the database? Can you check smf_settings for the modsetting array:

$mod_settings = array(
   'payPalEnable'
   'payPalKey'
   'payPalReason'
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 02:50:00 PM
when I go into the database it is showing them as variables and the values are

paypalenable          0
paypalkey              the string of code that I got from paypal for the button
paypalreason          the reason that I entered in the settings for this mod.


   
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 03:09:20 PM
Quote from: GPGrieco on April 06, 2007, 02:50:00 PM
when I go into the database it is showing them as variables and the values are

paypalenable          0
paypalkey              the string of code that I got from paypal for the button
paypalreason          the reason that I entered in the settings for this mod.


  

enable the mod in the admin panel and make sure you are using the default theme.
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 03:13:55 PM
OK I enabled it, now I see it. I am not sure if it was there before, but I didn't realize that it just put a button on the menu. Is there any way to get it to display below the menu on the homepage?
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 03:26:31 PM
Quote from: GPGrieco on April 06, 2007, 03:13:55 PM
OK I enabled it, now I see it. I am not sure if it was there before, but I didn't realize that it just put a button on the menu. Is there any way to get it to display below the menu on the homepage?

homepage? you could you the ssi function?
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 03:30:14 PM
what do you mean ssi function. I have used that before, but when I go to the ssi_examples page, there is no code for the paypal donations. Is there a code for it?
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 04:37:06 PM
Quote from: GPGrieco on April 06, 2007, 03:30:14 PM
what do you mean ssi function. I have used that before, but when I go to the ssi_examples page, there is no code for the paypal donations. Is there a code for it?


no, but you can call the menu
Title: Re: PaypalDonations
Post by: GPGrieco on April 06, 2007, 04:39:18 PM
oh, no thats not what I was thinking of. I was thinking of having the button on the homepage. I guess this is ok.


Thank you for your help. I really appriacate it.
Title: Re: PaypalDonations
Post by: snork13 on April 06, 2007, 05:56:08 PM
Quote from: GPGrieco on April 06, 2007, 04:39:18 PM
oh, no thats not what I was thinking of. I was thinking of having the button on the homepage. I guess this is ok.


Thank you for your help. I really appriacate it.

you could always use <a href="link to your donation">Donate</a>

hope you get the idea :)
Title: Re: PaypalDonations
Post by: Benan on April 10, 2007, 05:41:50 AM
I installed this mod sucessfully (as SMF said) but i dont get no Donate thing any where and i dont get the 2 text boxes,



im using... SMF 1.1.2
Title: Re: PaypalDonations
Post by: snork13 on April 10, 2007, 08:20:52 AM
Quote from: Benan on April 10, 2007, 05:41:50 AM
I installed this mod sucessfully (as SMF said) but i dont get no Donate thing any where and i dont get the 2 text boxes,



im using... SMF 1.1.2

Can you check the default theme?
Title: Re: PaypalDonations
Post by: Benan on April 10, 2007, 08:31:59 AM
I reset theme to default, still no textboxes or donation related stuff.
Title: Re: PaypalDonations
Post by: Sirius on April 10, 2007, 08:42:30 AM
i don't know why there is 17 pages for this thing  , it is SO easy to do..

on the paypal site, you can get a script ( button generator) then you copy this script in the news box and you will have a paypal button on top.

same thing can be done with your signature, get an e-mail script from paypal , then write this script down in your signature, note that when you write such a long line in your signature it will look messy, so you have to edit the line to read only Donation: click HERE 

it will look something like this ( i had to edit this line to show you, because if i post it as it should be it will show my donation line ) :

[url  =https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=x%2ecom&item_name=Sirius%20Forum&item_number=xx
no_shipping=0&no_note=1&tax=0&currency_code=USD2dDonationsBF&charset=UTF%2d8]Donations  click HERE  [/url]

note the DONATION click here at the end of the URL , with the ] so they will only see : donation click here.  So you only write ]Donations  click HERE before the last [/url]  no empty spaces like I've done up here, before and after URL
as to the paypal button, it will install itself in the newsbox, nothing special to do. no mods required.
Title: Re: PaypalDonations
Post by: Sirius on April 10, 2007, 08:52:40 AM

you get all these scripts in the merchant tools of the paypal website

the problem with the button script in the newsbox is to make it appear at the right place, most of the time it will be ok, if it is not at the right place,
i'll let someone else explain how to fix it !
Title: Re: PaypalDonations
Post by: snork13 on April 10, 2007, 10:58:34 AM
Quote from: Benan on April 10, 2007, 08:31:59 AM
I reset theme to default, still no textboxes or donation related stuff.

If you had success installing via the package manager, did you enable the mod in the admin section. You won't see anything until you do.

Title: Re: PaypalDonations
Post by: Benan on April 10, 2007, 12:50:21 PM


^ That doesnt look like your screenshots.

And i tried filling text boxes dont notice anything different in forum index.
Title: Re: PaypalDonations
Post by: Cool999 on April 16, 2007, 01:38:14 PM
Hi everyone, i need paypal donation Mod for smf 1.1.2

Thanks
Title: Re: PaypalDonations
Post by: Kindred on April 16, 2007, 01:39:28 PM
try using search?
http://custom.simplemachines.org/mods/index.php?mod=273
Title: Re: PaypalDonations
Post by: Cool999 on April 17, 2007, 04:24:52 AM
ya, i know about that, but doesnt work with Smf 1.1.2

Its shows error.
Title: Re: PaypalDonations
Post by: calm_smile on April 17, 2007, 04:47:55 AM
Hmm. The mod page says it was tested on a fresh install of 1.1.2 and worked. Maybe it's not compatible with your theme or one of your other mods? Or maybe it's not linking properly to your PayPal account?

What error are you getting?
Title: Re: PaypalDonations
Post by: Cool999 on April 17, 2007, 05:36:15 AM
i am using the default theme.


When i click on Apply Mod, i get this error-

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Install Actions
Installations actions for "PaypalDonations":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

Please tell should i continue by clicking on Install Now or not.
Title: Re: PaypalDonations
Post by: Kindred on April 17, 2007, 08:13:46 AM
Cool...


I asked this also in your other thread.

PLEASE ask mod specific questions in the mod specific thread! That's what it is there for. Do not start new threads for every single question you have, try using search and put your questions in the correct location.

(I have moved/merged the entire cool999 thread into the correct support thread for this mod)
Title: Re: PaypalDonations
Post by: illstabu on April 17, 2007, 10:30:44 AM
im getting the same error message cool999 is getting.. i hope this is the right place to put it.. sorry if its not.. here is a link to a screenshot of the error message

http://i3.photobucket.com/albums/y84/illstabu/Untitled_1.png

how do i fix it..thanks
Title: Re: PaypalDonations
Post by: Kindred on April 17, 2007, 11:22:52 AM
well, I would say, you should look in the mod to see what it is trying to do to ModSettings.php.

Possibly a previous mod that you installed has already changed the code it is looking for...
Title: Re: PaypalDonations
Post by: - danny on April 19, 2007, 10:08:08 PM
I'm using SMF 1.1.2 with TP v0.9.8 and just changed to the Dilber theme.

The mod was working fine on the Default theme.

Can you advise on how to correct this?
Title: Re: PaypalDonations
Post by: Kindred on April 20, 2007, 08:23:44 AM
you will have to manually apply the mod to any template files in the Dilber theme...
Title: Re: PaypalDonations
Post by: - danny on April 20, 2007, 10:22:13 AM
Quote from: Kindred on April 20, 2007, 08:23:44 AM
you will have to manually apply the mod to any template files in the Dilber theme...

Do you have a walk-through on this?
Title: Re: PaypalDonations
Post by: del_piero_3 on April 20, 2007, 10:53:23 AM
I've got this working, well almost. Getting the following error in the forum error log each time the donation link is clicked.

8: Undefined variable: first
File: /mnt/w0000/d19/s25/b028cdfb/www/********/Themes/default/Paypal.template.php (eval?)
Line: 646


I am using dilbermc theme and trying to edit the code to fit the donation link in with the theme. Anyway I think the code below is causing the problem but I am not good with php, so could do with your help please.

// Paypal Mod
if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="menubg' . $first . '">&nbsp;</td>' : '' , '
<td align="center" class="menubg' , $current_action == 'paypal' ? '2' : '' , '">
<a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
</td>';
Title: Re: PaypalDonations
Post by: A_Lua on April 21, 2007, 05:09:33 AM
I instal pay pal mod, i have to make some parts manual because i have others thinks instald

now wen i try to configure pay pal via Admin he give me this erro

Fatal error: Call to undefined function ModifypayPalSettings() in /www/sites/1/M/I/microluso.com/site/Forum/Sources/ModSettings.php on line 185


In modesettings.php in that line i have

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();


Any help?

ty

kiss
Title: Re: PaypalDonations
Post by: snork13 on April 23, 2007, 09:46:39 AM
Quote from: A_Lua on April 21, 2007, 05:09:33 AM
I instal pay pal mod, i have to make some parts manual because i have others thinks instald

now wen i try to configure pay pal via Admin he give me this erro

Fatal error: Call to undefined function ModifypayPalSettings() in /www/sites/1/M/I/microluso.com/site/Forum/Sources/ModSettings.php on line 185


In modesettings.php in that line i have

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();


Any help?

ty

kiss

your missing the function ModifypayPalSettings() in ModSetting
Title: Re: PaypalDonations
Post by: Aiman on May 07, 2007, 12:56:52 AM
i hav installed the mod but its not showing any links on my forum. i have pasted the link from the paypal but it doesnt work, sum 1 plz help.
Title: Re: PaypalDonations
Post by: calicojackal on May 07, 2007, 06:10:27 PM
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    modification.xml    Modification parse error
2.    Execute Modification    -    Modification parse error
3.    Extract File    ./Themes/default/Paypal.template.php    
4.    Extract File    ./Sources/Paypal.php    
5.    Execute Code    add_settings.php


This is what I get when I try to install this mod on a clean install of smf 1.1.2
Title: Re: PaypalDonations
Post by: snork13 on May 07, 2007, 10:45:01 PM
Quote from: Aiman on May 07, 2007, 12:56:52 AM
i hav installed the mod but its not showing any links on my forum. i have pasted the link from the paypal but it doesnt work, sum 1 plz help.
are you using the default theme?
Title: Re: PaypalDonations
Post by: Aiman on May 08, 2007, 02:35:19 AM
Quote from: snork13 on May 07, 2007, 10:45:01 PM
Quote from: Aiman on May 07, 2007, 12:56:52 AM
i hav installed the mod but its not showing any links on my forum. i have pasted the link from the paypal but it doesnt work, sum 1 plz help.
are you using the default theme?

yes
Title: Re: PaypalDonations
Post by: nightshack on May 14, 2007, 05:49:10 PM
I get:  Im using SMF 1.1.2 (Newest Version

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

ModSettings.php  Test failed

How can I fix it..im using Default Theme
Title: Re: PaypalDonations
Post by: IVY420 on May 16, 2007, 11:54:23 PM
Quote from: snork13 on February 06, 2006, 11:36:58 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=273)

This mod will add a "Donate" link in the top menu, which will take you to your static Paypal Donation page.
On the admin side, under "current theme" you have two textareas for entering the Paypal info.


Ive been having some issues trying to get this mod to work at all.  Maybe someone could help or point me in the right direction.  I installed the zip through the package manager in smf and everything went fine.  It shows it as being installed as well.  However, I got no donations button, nothing in the admin side under current theme or in the permissions area. 

I read through this entire thread and followed directions to get the button working by editing a template file(btw im using the default template on smf 1.1.2) and then i also took the premade paypal form script and added it where it says to in the comments on Paypal.template.php

Im not sure what else to do...Im new at this so be gentle ;)
www.clanofsin.com/forums is my site so far.
Title: Re: PaypalDonations
Post by: Ruthiness on May 18, 2007, 05:09:15 PM
Ok I have read through most of this forum and here is where I am stuck. I am NOT using the default template. If I switch to the Core/Default I can see the Donations button. I cannot figure out how to get it to show in my non-default template. I have tried to add the files and code manually without luck. I have the ability to configure it in Features and Options - I am ONLY missing the Donations button on the menu!  Maddening!
Title: Re: PaypalDonations
Post by: snork13 on May 21, 2007, 12:46:44 PM
Quote from: Ruthiness on May 18, 2007, 05:09:15 PM
Ok I have read through most of this forum and here is where I am stuck. I am NOT using the default template. If I switch to the Core/Default I can see the Donations button. I cannot figure out how to get it to show in my non-default template. I have tried to add the files and code manually without luck. I have the ability to configure it in Features and Options - I am ONLY missing the Donations button on the menu!  Maddening!

you'll need to make the modificaton maually to your custom theme
Title: Re: PaypalDonations
Post by: thunderhost on May 24, 2007, 06:28:34 PM
Has anyone added the PaypalDonations mod to the Babylon Template.  I would love to know how.
Title: Re: PaypalDonations
Post by: bigbob66 on May 31, 2007, 02:28:08 AM
Quote from: snork13 on February 06, 2006, 11:36:58 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=273)

A Paypal Merchant account is required, for more information visit: https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside (https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside)
Paypal generates the html form code you will need for one of the textareas, the other textarea is for maybe a reason why the members should donate, or get fancy like the examples on the Paypal site.

This mod will add a "Donate" link in the top menu, which will take you to your static Paypal Donation page.
On the admin side, under "current theme" you have two textareas for entering the Paypal info.

Special thanks to Bloc for the textarea code ;)

Tested on 1.1RC2 fresh install.

Version 1.2 - added permissions setting and an error in the language







I am using SMF 1.1.2 and the default theme, I have a very hard time making the paypal mod work on my site.I am getting the following message while installing it.It seems to be fine.The problem is that I don't find the donations tab in the top menu and On the admin side I don't have "Donations" under "features and options".

1. Execute Modification ./index.php Test successful  
2. Execute Modification ./Sources/ManagePermissions.php Test successful  
3. Execute Modification ./Sources/ModSettings.php Test successful  
4. Execute Modification ./Themes/default/index.template.php Test successful  
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful  
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful  
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful  
8. Extract File ./Themes/default/Paypal.template.php&nbsp;
9. Extract File ./Sources/Paypal.php&nbsp;
10. Execute Code add_settings.php

Plz Plz help me I am not very good at SMF.Help appreciated a lot.
Title: Re: PaypalDonations
Post by: hetrp on June 08, 2007, 08:56:23 PM
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.


Any Idea how to fix this? I'm using Babylon Template.
Title: Re: PaypalDonations
Post by: ShadowStriker on June 14, 2007, 11:46:20 AM
I installed without any errors, but the button doesnt show up, and thepaypal administration doesnt show up, but if I go into it via link it will just be boxes without text
Title: Re: PaypalDonations
Post by: ShadowStriker on June 14, 2007, 11:48:51 AM
I have these mods installed:

Avatar on Member List
SMFShop
Reg Bar
YouTube BBC Tag (XHTML Compliant)
SMF Poll Mod
Profile Comments
Title: Re: PaypalDonations
Post by: snork13 on June 14, 2007, 10:30:47 PM
Quote from: ShadowStriker on June 14, 2007, 11:48:51 AM
I have these mods installed:

Avatar on Member List
SMFShop
Reg Bar
YouTube BBC Tag (XHTML Compliant)
SMF Poll Mod
Profile Comments

are you using the default theme?
Title: Re: PaypalDonations
Post by: ShadowStriker on June 15, 2007, 07:55:41 AM
yes
Title: Re: PaypalDonations
Post by: snork13 on June 15, 2007, 12:06:41 PM
Quote from: ShadowStriker on June 15, 2007, 07:55:41 AM
yes

if you can check the files, see if all the modification are there. You should get 2 boxes, you can enter the text and save it.
Title: Re: PaypalDonations
Post by: bklynjay on June 16, 2007, 12:40:24 AM
 Execute Modification ./Sources/ModSettings.php   ?? anyone
Title: Re: PaypalDonations
Post by: snork13 on June 16, 2007, 11:32:38 PM
Quote from: bklynjay on June 16, 2007, 12:40:24 AM
Execute Modification ./Sources/ModSettings.php   ?? anyone

i would guess you have other mods installed, you may need to install manually
Title: Re: PaypalDonations
Post by: woobang on June 16, 2007, 11:39:56 PM
Quote from: Ruthiness on May 18, 2007, 05:09:15 PM
Ok I have read through most of this forum and here is where I am stuck. I am NOT using the default template. If I switch to the Core/Default I can see the Donations button. I cannot figure out how to get it to show in my non-default template. I have tried to add the files and code manually without luck. I have the ability to configure it in Features and Options - I am ONLY missing the Donations button on the menu!  Maddening!

Quote from: snork13 on May 21, 2007, 12:46:44 PM
you'll need to make the modificaton maually to your custom theme

I'm having this same problem .... How do you "make the modificaton maually to your custom theme" ???

Thanks Snork13
Title: Re: PaypalDonations
Post by: snork13 on June 17, 2007, 11:56:49 AM
Quote from: woobang on June 16, 2007, 11:39:56 PM
Quote from: Ruthiness on May 18, 2007, 05:09:15 PM
Ok I have read through most of this forum and here is where I am stuck. I am NOT using the default template. If I switch to the Core/Default I can see the Donations button. I cannot figure out how to get it to show in my non-default template. I have tried to add the files and code manually without luck. I have the ability to configure it in Features and Options - I am ONLY missing the Donations button on the menu!  Maddening!

Quote from: snork13 on May 21, 2007, 12:46:44 PM
you'll need to make the modificaton maually to your custom theme

I'm having this same problem .... How do you "make the modificaton maually to your custom theme" ???

Thanks Snork13

this should help
http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: GUN Kindbud on June 26, 2007, 08:28:40 PM
Hi, I have installed this on a fresh SMF 1.1.2 and I have the donations button on the admin panel but when i click it i get a blank page.

The package manager doesnt work correctly on my server but I did a manual install and followed the xml file word for word, extracted all files to their directories and run add_settings.php. Am I doing something wrong here?

thanks
Title: Re: PaypalDonations
Post by: hadesflames on June 28, 2007, 06:01:05 PM
make for 1.1.3 soon lol.
Title: Re: PaypalDonations
Post by: MinasC on June 28, 2007, 07:15:02 PM
Quote from: hadesflames on June 28, 2007, 06:01:05 PM
make for 1.1.3 soon lol.

that would be nice
Title: Re: PaypalDonations
Post by: RiderRaghav on June 29, 2007, 12:20:13 AM
I'm also waiting for it (1.1.3) .....
Let us know by when would it be available ..... 
Title: Re: PaypalDonations
Post by: JOSHSKORN on June 29, 2007, 04:05:52 AM
Yeah hmm I was wondering why I was receiving the following message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Maybe it's an SMF 1.1.3 incompatibility issue??  Sorry I don't know any better.

I've never used this mod, either.  Does it allow me to track who is sending money?  Does it generate a Post in a specific forum if the donor wishes to be thanked?  Can we have options giving the donors specified dollar values to donate?  Again, not sure if this does any of it at all.
Title: Re: PaypalDonations
Post by: RiderRaghav on June 29, 2007, 12:41:05 PM
Quote from: JOSHSKORN on June 29, 2007, 04:05:52 AM
Yeah hmm I was wondering why I was receiving the following message:

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Maybe it's an SMF 1.1.3 incompatibility issue??  Sorry I don't know any better.

I've never used this mod, either.  Does it allow me to track who is sending money?  Does it generate a Post in a specific forum if the donor wishes to be thanked?  Can we have options giving the donors specified dollar values to donate?  Again, not sure if this does any of it at all.

I'm also getting the same error message :( ......



@snork13 ......
When will you release the version compatible with smf 1.1.3 ... ??? 

Title: Re: PaypalDonations
Post by: JOSHSKORN on June 29, 2007, 06:54:38 PM
Have any SMF 1.1.2 users with the mod already installed tested the functionality after the upgrade to SMF 1.1.3?  Just wondering.  Would it definitely not work?
Title: Re: PaypalDonations
Post by: RiderRaghav on June 29, 2007, 07:03:31 PM
Quote from: JOSHSKORN on June 29, 2007, 06:54:38 PM
Have any SMF 1.1.2 users with the mod already installed tested the functionality after the upgrade to SMF 1.1.3?  Just wondering.  Would it definitely not work?

Well I don't know anything about the 1.1.2 version .....
I know only about 1.1.3 version coz I installed it yesterday only and this mod dint work on it :(
Title: Re: PaypalDonations
Post by: tumbleweed on June 29, 2007, 07:05:11 PM
i was runnng the Mod on 1.1 RC3.  Then updated to 1.1.3  It works fine.
Title: Re: PaypalDonations
Post by: JOSHSKORN on June 29, 2007, 07:10:55 PM
Quote from: riderraghav on June 29, 2007, 07:03:31 PM
Quote from: JOSHSKORN on June 29, 2007, 06:54:38 PM
Have any SMF 1.1.2 users with the mod already installed tested the functionality after the upgrade to SMF 1.1.3?  Just wondering.  Would it definitely not work?

My host uses Fantastico.  It has the installer for 1.1.2, only.  I haven't looked into upgrading it, nor do I have interest in doing that at the moment.  I'm sure there's a pretty easy way.

Well I don't know anything about the 1.1.2 version .....
I know only about 1.1.3 version coz I installed it yesterday only and this mod dint work on it :(
Title: Re: PaypalDonations
Post by: RiderRaghav on June 29, 2007, 10:25:28 PM
Quote from: tumbleweed on June 29, 2007, 07:05:11 PM
i was runnng the Mod on 1.1 RC3.  Then updated to 1.1.3  It works fine.

Your case is a bit different from mine coz you updated your version it may work on it but in my case I've installed a fresh copy of the newer version smf 1.1.3 ...

I guess there would be some way to make it work on 1.1.3 ........
Title: Re: PaypalDonations
Post by: tumbleweed on June 29, 2007, 10:28:44 PM
Quote from: riderraghav on June 29, 2007, 10:25:28 PM
Quote from: tumbleweed on June 29, 2007, 07:05:11 PM
i was runnng the Mod on 1.1 RC3.  Then updated to 1.1.3  It works fine.

Your case is a bit different from mine coz you updated your version it may work on it but in my case I've installed a fresh copy of the newer version smf 1.1.3 ...

I guess there would be some way to make it work on 1.1.3 ........

Not true to a certain extend. FOr one to do such a upgrade as mine. I had to copy over all the orginal source files. Including all those in sources ect.

Do you get some sort of error code when trying to make it work?
Title: Re: PaypalDonations
Post by: tumbleweed on June 29, 2007, 10:46:58 PM
After re-thinkng i did not go str8t to 1.1.3 i went to 1.1 RC3 to 1.1.2.

So yea it was already installed in 1.1.2 DOH!!!!
Title: Re: PaypalDonations
Post by: RiderRaghav on June 29, 2007, 11:46:16 PM
Quote from: tumbleweed on June 29, 2007, 10:28:44 PM
Quote from: riderraghav on June 29, 2007, 10:25:28 PM
Quote from: tumbleweed on June 29, 2007, 07:05:11 PM
i was runnng the Mod on 1.1 RC3.  Then updated to 1.1.3  It works fine.

Your case is a bit different from mine coz you updated your version it may work on it but in my case I've installed a fresh copy of the newer version smf 1.1.3 ...

I guess there would be some way to make it work on 1.1.3 ........

Not true to a certain extend. FOr one to do such a upgrade as mine. I had to copy over all the orginal source files. Including all those in sources ect.

Do you get some sort of error code when trying to make it work?

I'm getting this error :
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: PaypalDonations
Post by: tumbleweed on June 30, 2007, 12:03:03 AM
Quote from: tumbleweed on June 29, 2007, 10:46:58 PM
After re-thinkng i did not go str8t to 1.1.3 i went to 1.1 RC3 to 1.1.2.

So yea it was already installed in 1.1.2 DOH!!!!

Yep you are going to have to wait until the mod is reworked for 1.1.3 :(
Title: Re: PaypalDonations
Post by: snork13 on June 30, 2007, 01:49:00 PM
I have updated the mod for use with 1.1.3. I tested on a clean install. All works well. No errors.

Link to mod (http://custom.simplemachines.org/mods/index.php?mod=273)

-Snork13
Title: Re: PaypalDonations
Post by: RiderRaghav on June 30, 2007, 02:13:39 PM
Quote from: snork13 on June 30, 2007, 01:49:00 PM
I have updated the mod for use with 1.1.3. I tested on a clean install. All works well. No errors.

Link to mod (http://custom.simplemachines.org/mods/index.php?mod=273)

-Snork13

Thanks allot mate .... :)
I was waiting for this .... ;)
Title: Re: PaypalDonations
Post by: MinasC on July 01, 2007, 04:05:32 AM
couldn't wait for the 1.1.3-compatible update , but when i tried to install i got "test failed" in ManagePermissions.php and ModSettings.php ! any ideas why ?

thnx a lot !
Title: Re: PaypalDonations
Post by: snork13 on July 01, 2007, 10:30:56 AM
Quote from: MinasC on July 01, 2007, 04:05:32 AM
couldn't wait for the 1.1.3-compatible update , but when i tried to install i got "test failed" in ManagePermissions.php and ModSettings.php ! any ideas why ?

thnx a lot !

sure, another mod has edited what my mod is looking for. you will need to edit those file manually.
Title: Re: PaypalDonations
Post by: jjstrade on July 01, 2007, 07:42:32 PM
I installed this mod on a fresh 1.1.3 version using the default template (texasdaylease.com)

Everything seemed to work fine (no errors). I even got the two textboxes where I entered my PayPal info and donation reason.  BUT...

There is no link under Configuration < Features and Settings. Nor is there a donation button on the forum.

I've read this entire thread and cannot figure it out.

The mod is activated. Permissions are all set to 777. I checked the database and it is filled with the PayPal info I entered... the only thing different is that the payPalEnable field has a '1' in it instead of '0' like the other person had.

What on earth could be wrong?

Any info would be greatly appreciated.
Title: Re: PaypalDonations
Post by: MinasC on July 03, 2007, 05:49:34 PM
Quote from: snork13 on July 01, 2007, 10:30:56 AM
Quote from: MinasC on July 01, 2007, 04:05:32 AM
couldn't wait for the 1.1.3-compatible update , but when i tried to install i got "test failed" in ManagePermissions.php and ModSettings.php ! any ideas why ?

thnx a lot !

sure, another mod has edited what my mod is looking for. you will need to edit those file manually.

wow , i think i'm gonna need instructions for that , couldn't possibly do it myself ! would that be possible for you ?

thnx a lot !
Title: Re: PaypalDonations
Post by: TikkA on July 04, 2007, 01:44:42 PM
I also have the same problem with ./Sources/ModSettings.php     Test failed
What  file to i need to edit manually?
Title: Re: PaypalDonations
Post by: TikkA on July 05, 2007, 01:55:37 PM
Anyone? Im using Metallic-Abyss-1.1
www.gfx-genie.co.uk
Title: Re: PaypalDonations
Post by: snork13 on July 06, 2007, 11:00:34 AM


<file name="$sourcedir/ModSettings.php">

<operation>
<search position="replace"><![CDATA[require_once($sourcedir . '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);]]></search>
<add><![CDATA[require_once($sourcedir . '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'paypal' => 'ModifypayPalSettings',
);]]></add>
</operation>

<operation>
<search position="replace"><![CDATA[function ModifyFeatureSettings2()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}]]></search>
<add><![CDATA[function ModifyFeatureSettings2()
{
global $context, $txt, $scripturl, $modSettings, $sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir . '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'karma' => 'ModifyKarmaSettings',
'paypal' => 'ModifypayPalSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}]]></add>
</operation>

<operation>
<search position="replace"><![CDATA[
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
'is_last' => true,
),]]></search>
<add><![CDATA[
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'paypal' => array(
'title' => $txt['payPalFO'],
'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
'is_last' => true,
),]]></add>
</operation>

<operation>
<search position="before"><![CDATA[
$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}
]]></search>
<add><![CDATA[
function ModifypayPalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Paypal Donations - On or off?
array('check', 'payPalEnable'),
'',
// Paypal key and Reason
array('large_text', 'payPalReason','10'),
array('large_text', 'payPalKey','8'),
           
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=paypal');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
$context['settings_title'] = $txt['payPalFO'];

prepareDBSettingContext($config_vars);
}
]]></add>
</operation>
</file>
Title: Re: PaypalDonations
Post by: TikkA on July 07, 2007, 07:35:35 AM
Could you please put where this goes i think in the modification.xml? I have replaced it still have the same error.
Title: Re: PaypalDonations
Post by: snork13 on July 07, 2007, 11:33:59 AM
Quote from: TikkA on July 07, 2007, 07:35:35 AM
Could you please put where this goes i think in the modification.xml? I have replaced it still have the same error.

What you need to do is follow the changes to Modsetting in your source file. make a backup of the file first.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: TikkA on July 07, 2007, 01:38:37 PM
That makes no sense to me.
In that link, that was .mod or .xml.
You said changes in the Modsetting which is php.
Title: Re: PaypalDonations
Post by: snork13 on July 08, 2007, 10:59:38 AM
Quote from: TikkA on July 07, 2007, 01:38:37 PM
That makes no sense to me.
In that link, that was .mod or .xml.
You said changes in the Modsetting which is php.

What I posted is the changes in an xml format. If you unzip the mod check out the file modification.xml.
Title: Re: PaypalDonations
Post by: TikkA on July 08, 2007, 12:29:07 PM
Nevermind ill leave it.
Title: Re: PaypalDonations
Post by: MinasC on July 09, 2007, 06:50:12 AM
Quote from: MinasC on July 03, 2007, 05:49:34 PM
Quote from: snork13 on July 01, 2007, 10:30:56 AM
Quote from: MinasC on July 01, 2007, 04:05:32 AM
couldn't wait for the 1.1.3-compatible update , but when i tried to install i got "test failed" in ManagePermissions.php and ModSettings.php ! any ideas why ?

thnx a lot !

sure, another mod has edited what my mod is looking for. you will need to edit those file manually.

wow , i think i'm gonna need instructions for that , couldn't possibly do it myself ! would that be possible for you ?

thnx a lot !

how do i modify manually and what do i need to modify ?
thnx a lot !
Title: Re: PaypalDonations
Post by: snork13 on July 09, 2007, 08:56:10 AM
Quote from: MinasC on July 09, 2007, 06:50:12 AM
Quote from: MinasC on July 03, 2007, 05:49:34 PM
Quote from: snork13 on July 01, 2007, 10:30:56 AM
Quote from: MinasC on July 01, 2007, 04:05:32 AM
couldn't wait for the 1.1.3-compatible update , but when i tried to install i got "test failed" in ManagePermissions.php and ModSettings.php ! any ideas why ?

thnx a lot !

sure, another mod has edited what my mod is looking for. you will need to edit those file manually.

wow , i think i'm gonna need instructions for that , couldn't possibly do it myself ! would that be possible for you ?

thnx a lot !

how do i modify manually and what do i need to modify ?
thnx a lot !

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: MinasC on July 10, 2007, 01:25:05 AM
ok , thnx .
Title: Re: PaypalDonations
Post by: Muse on July 17, 2007, 09:37:51 PM
I have SMF 1.1.3, and the current, updated version of this mod.

Now, I am getting the fail on Mod.settings.php also so I went in to edit manually, and some of the code I am trying to find to add or replace just isn't there.

So I am assuming that's why the auto install is failing. It also means I can't manually install.

I uninstalled my two other mods, and it is the same error.

Suggestions?

Should I post my mod.settings.php code for help? :)
Title: Re: PaypalDonations
Post by: snork13 on July 17, 2007, 10:49:47 PM
Quote from: Muse on July 17, 2007, 09:37:51 PM
I have SMF 1.1.3, and the current, updated version of this mod.

Now, I am getting the fail on Mod.settings.php also so I went in to edit manually, and some of the code I am trying to find to add or replace just isn't there.

So I am assuming that's why the auto install is failing. It also means I can't manually install.

I uninstalled my two other mods, and it is the same error.

Suggestions?

Should I post my mod.settings.php code for help? :)


sure, i can take a look for ya :)
Title: Re: PaypalDonations
Post by: Muse on July 17, 2007, 11:46:07 PM
Thank you! :)

I'm thinking that maybe something got changed somewhere down the line that didn't get undone on an uninstall and I'm just missing it when I'm combing through it all.


Also, I reinstalled the other mods - let me know if you need me to uninstall everything again and repost :)

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl '?action=featuresettings;sa=MemberColorLinks;sesc=' $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'chat' => 'ModifyChatSettings',

'profile' => 'ModifyProfileSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableSinglePM'),

array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check''SimpleImageShack_enable'),
array('check''SimpleImageShack_permis'),
array('int''SimpleImageShack_width'),
array('int''SimpleImageShack_height'),
array('text''SimpleImageShack_txtclr'),
array('int''SimpleImageShack_uplfld'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyChatSettings(){
global $txt$scripturl$context$settings$sc;

// Integrated Chat 2.7 Settings
$config_vars = array(
array('text''chatLanguage'),
array('text''chatRoomName'),
array('text''chatAppend'),
array('text''chatWidth'),
array('text''chatHeight'),
array('text''chatPassword'),
array('text''chatUpdateInterval'),
array('check''chatRoomsTab'),
array('check''chatAds'),
array('check''chatShowUsers'),
array('check''chatShowTop'),

);

// Saving?
if (isset($_GET['save'])){
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=chat');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=chat';
$context['settings_title'] = &$txt['chatTitle'];

prepareDBSettingContext($config_vars);
}



function 
ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomProfile.php');
CustomFieldSettings();
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}
function 
ModifyMemberColorLinksSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Standard Membercolor?
array('check''MemberColorLink'),
'',
//Some Stat Settings
array('check''MemberColorLatestMember'),
array('check''MemberColorStats'),
array('check''MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check''MemberColorThreadOwner'),
array('check''MemberColorThreadLastPost'),
array('check''MemberColorThreadChild'),
'',
//Birthday and Calendar 
array('check''MemberColorBoardindex'),
array('check''MemberColorBirthday'),
'',
//Some Recent Things
array('check''MemberColorRecentOwner'),
array('check''MemberColorRecentLastPost'),
'',
// PM Colors
array('check''MemberColorInbox'),
array('check''MemberColorOutbox'),
'',
//Guest Color
array('text''MemberColorGuests'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}

?>
Title: Re: PaypalDonations
Post by: snork13 on July 18, 2007, 10:55:43 AM
try this, backup your old file before uploading.


<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
die('Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
and options.  It uses the following functions:

void ModifyFeatureSettings()
// !!!

void ModifyFeatureSettings2()
// !!!

void ModifyBasicSettings()
// !!!

void ModifyLayoutSettings()
// !!!

void ModifyKarmaSettings()
// !!!

Adding new settings to the $modSettings array:
---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
array('check', 'nameInModSettingsAndSQL'),

   And for a text box:
array('text', 'nameInModSettingsAndSQL')
   (NOTE: You have to add an entry for this at the bottom!)

   In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
   and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

Here's a quick explanation of how to add a new item:

 * A text input box.  For textual values.
ie. array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For numerical values.
ie. array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A text input box.  For floating point values.
ie. array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
ie. array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
&$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

 * A check box.  Either one or zero. (boolean)
ie. array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
'OptionalReferenceToHelpAdmin'),

 * A selection box.  Used for the selection of something from a list.
ie. array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

 * A password input box. Used for passwords, no less!
ie. array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
&$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

For each option:
type (see above), variable name, size/possible values, description, helptext.
OR make type 'rule' for an empty string for a horizontal rule.
OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
global $context$txt$scripturl$modSettings$sourcedir;

// You need to be an admin to edit settings!
isAllowedTo('admin_forum');

// All the admin bar, to make it right.
adminIndex('edit_mods_settings');
loadLanguage('Help');
loadLanguage('ModSettings');

// Will need the utility functions from here.
require_once($sourcedir '/ManageServer.php');

$context['page_title'] = $txt['modSettings_title'];
$context['sub_template'] = 'show_settings';

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'profile' => 'ModifyProfileSettings',
'paypal' => 'ModifypayPalSettings',
);

// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
$context['sub_action'] = $_REQUEST['sa'];

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl '?action=featuresettings;sa=profile;sesc=' $context['session_id'],
),
'MemberColorLinks' => array(
'title' => $txt['MemberColorLinkHeadline'],
'href' => $scripturl '?action=featuresettings;sa=MemberColorLinks;sesc=' $context['session_id'],
),
'paypal' => array(
'title' => $txt['payPalFO'],
'href' => $scripturl '?action=featuresettings;sa=paypal;sesc=' $context['session_id'],
'is_last' => true,
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
'is_last' => true,
),
),
);

// Select the right tab based on the sub action.
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

// Call the right function for this sub-acton.
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
global $context$txt$scripturl$modSettings$sourcedir;

isAllowedTo('admin_forum');
loadLanguage('ModSettings');

// Quick session check...
checkSession();

require_once($sourcedir '/ManageServer.php');

$subActions = array(
'basic' => 'ModifyBasicSettings',
'layout' => 'ModifyLayoutSettings',
'MemberColorLinks' => 'ModifyMemberColorLinksSettings',
'karma' => 'ModifyKarmaSettings',
'chat' => 'ModifyChatSettings',
'profile' => 'ModifyProfileSettings',
'paypal' => 'ModifypayPalSettings',
);

// Default to core (I assume)
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

// Actually call the saving function.
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
global $txt$scripturl$context$settings$sc$modSettings;

$config_vars = array(
// Big Options... polls, sticky, bbc....
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
'',
// Basic stuff, user languages, titles, flash, permissions...
array('check''allow_guestAccess'),
array('check''userLanguage'),
array('check''allow_editDisplayName'),
array('check''allow_hideOnline'),
array('check''allow_hideEmail'),
array('check''guest_hideContacts'),
array('check''titlesEnable'),
array('check''enable_buddylist'),
array('text''default_personalText'),
array('int''max_signatureLength'),
'',
// Stats, compression, cookies.... server type stuff.
array('text''time_format'),
array('select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
array('float''time_offset'),
array('int''failed_login_threshold'),
array('int''lastActive'),
array('check''trackStats'),
array('check''hitStats'),
array('check''enableErrorLogging'),
array('check''securityDisable'),
'',
// Reactive on email, and approve on delete
array('check''send_validation_onChange'),
array('check''approveAccountDeletion'),
'',
// Option-ish things... miscellaneous sorta.
array('check''allow_disableAnnounce'),
array('check''disallow_sendBody'),
array('check''modlog_enabled'),
array('check''queryless_urls'),
'',
// Width/Height image reduction.
array('int''max_image_width'),
array('int''max_image_height'),
'',
// Reporting of personal messages?
array('check''enableSinglePM'),

array('check''enableReportPM'),
);

// Saving?
if (isset($_GET['save']))
{
// Fix PM settings.
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
$save_vars $config_vars;
$save_vars[] = array('text''pm_spam_settings');

saveDBSettings($save_vars);

writeLog();
redirectexit('action=featuresettings;sa=basic');
}

// Hack for PM spam settings.
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
$config_vars[] = array('int''max_pm_recipients');
$config_vars[] = array('int''pm_posts_verification');
$config_vars[] = array('int''pm_posts_per_hour');

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
$context['settings_title'] = $txt['mods_cat_features'];

prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Compact pages?
array('check''compactTopicPagesEnable'),
array('int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
array('check''topbottomEnable'),
array('check''onlineEnable'),
array('check''enableVBStyleLogin'),
'',
// Pagination stuff.
array('int''defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check''timeLoadPageEnable'),
array('check''disableHostnameLookup'),
'',
// Who's online.
array('check''who_enabled'),
'',
// SimpleImageshack mod - SimpleTweaks.co.nr
array('check''SimpleImageShack_enable'),
array('check''SimpleImageShack_permis'),
array('int''SimpleImageShack_width'),
array('int''SimpleImageShack_height'),
array('text''SimpleImageShack_txtclr'),
array('int''SimpleImageShack_uplfld'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=layout');

loadUserSettings();
writeLog();
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}

function 
ModifyChatSettings(){
global $txt$scripturl$context$settings$sc;

// Integrated Chat 2.7 Settings
$config_vars = array(
array('text''chatLanguage'),
array('text''chatRoomName'),
array('text''chatAppend'),
array('text''chatWidth'),
array('text''chatHeight'),
array('text''chatPassword'),
array('text''chatUpdateInterval'),
array('check''chatRoomsTab'),
array('check''chatAds'),
array('check''chatShowUsers'),
array('check''chatShowTop'),

);

// Saving?
if (isset($_GET['save'])){
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=chat');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=chat';
$context['settings_title'] = &$txt['chatTitle'];

prepareDBSettingContext($config_vars);
}



function 
ModifyProfileSettings()
{
global $sourcedir;
require_once($sourcedir '/CustomProfile.php');
CustomFieldSettings();
}

function 
ModifyKarmaSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Karma - On or off?
array('select''karmaMode'explode('|'$txt['smf64'])),
'',
// Who can do it.... and who is restricted by time limits?
array('int''karmaMinPosts'),
array('float''karmaWaitTime'),
array('check''karmaTimeRestrictAdmins'),
'',
// What does it look like?  [smite]?
array('text''karmaLabel'),
array('text''karmaApplaudLabel'),
array('text''karmaSmiteLabel'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=karma');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
$context['settings_title'] = $txt['smf293'];

prepareDBSettingContext($config_vars);
}


function 
ModifypayPalSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Paypal Donations - On or off?
array('check''payPalEnable'),
'',
// Paypal key and Reason
array('large_text''payPalReason','10'),
array('large_text''payPalKey','8'),
            
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=paypal');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=paypal';
$context['settings_title'] = $txt['payPalFO'];

prepareDBSettingContext($config_vars);
}

function 
ModifyMemberColorLinksSettings()
{
global $txt$scripturl$context$settings$sc;

$config_vars = array(
// Standard Membercolor?
array('check''MemberColorLink'),
'',
//Some Stat Settings
array('check''MemberColorLatestMember'),
array('check''MemberColorStats'),
array('check''MemberColorWhoIsOnline'),
'',
//Thread and Boardsettings
array('check''MemberColorThreadOwner'),
array('check''MemberColorThreadLastPost'),
array('check''MemberColorThreadChild'),
'',
//Birthday and Calendar 
array('check''MemberColorBoardindex'),
array('check''MemberColorBirthday'),
'',
//Some Recent Things
array('check''MemberColorRecentOwner'),
array('check''MemberColorRecentLastPost'),
'',
// PM Colors
array('check''MemberColorInbox'),
array('check''MemberColorOutbox'),
'',
//Guest Color
array('text''MemberColorGuests'),
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=MemberColorLinks');
}

$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=MemberColorLinks';
$context['settings_title'] = $txt['MemberColorLinkHeadline'];

prepareDBSettingContext($config_vars);
}

?>


Title: Re: PaypalDonations
Post by: tracie on July 19, 2007, 06:25:55 AM
Hi I am coding a friends forum

using the default template the core...version smf 1.1.3

I had to hand code 3 of the files for this modification..2 things...when I click on the modification link in the admin section I get

QuoteFatal error: Call to undefined function: modifypaypalsettings() in /home/pammie/public_html/holdenbarina/Forums/Sources/ModSettings.php on line 190

this is the line

  $subActions[$_REQUEST['sa']]();

The second thing is...a link does not appear on the main index page...can anyone help please? many thanks.
Title: Re: PaypalDonations
Post by: snork13 on July 19, 2007, 09:19:57 AM
Quote from: tracie on July 19, 2007, 06:25:55 AM
Hi I am coding a friends forum

using the default template the core...version smf 1.1.3

I had to hand code 3 of the files for this modification..2 things...when I click on the modification link in the admin section I get

QuoteFatal error: Call to undefined function: modifypaypalsettings() in /home/pammie/public_html/holdenbarina/Forums/Sources/ModSettings.php on line 190

this is the line

  $subActions[$_REQUEST['sa']]();

The second thing is...a link does not appear on the main index page...can anyone help please? many thanks.

your missing the function

function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}

for the second check the index.template file, your missing the link.

Take another look at the modification.xml file and make sure all the changes have been made.

-snork13
Title: Re: PaypalDonations
Post by: tracie on July 19, 2007, 10:24:20 AM
Hello...I just double checked my files and I do have the coding given in  both files...

here is the ModSettings.php 

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die(
'Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
   and options.  It uses the following functions:

   void ModifyFeatureSettings()
      // !!!

   void ModifyFeatureSettings2()
      // !!!

   void ModifyBasicSettings()
      // !!!

   void ModifyLayoutSettings()
      // !!!

   void ModifyKarmaSettings()
      // !!!

   Adding new settings to the $modSettings array:
   ---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
      array('check', 'nameInModSettingsAndSQL'),

      And for a text box:
      array('text', 'nameInModSettingsAndSQL')
      (NOTE: You have to add an entry for this at the bottom!)

      In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
      and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

   Here's a quick explanation of how to add a new item:

    * A text input box.  For textual values.
   ie.   array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For numerical values.
   ie.   array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For floating point values.
   ie.   array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
   ie.   array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A check box.  Either one or zero. (boolean)
   ie.   array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
         'OptionalReferenceToHelpAdmin'),

    * A selection box.  Used for the selection of something from a list.
   ie.   array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
   Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

    * A password input box. Used for passwords, no less!
   ie.   array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

   For each option:
      type (see above), variable name, size/possible values, description, helptext.
   OR make type 'rule' for an empty string for a horizontal rule.
   OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
   global 
$context$txt$scripturl$modSettings$sourcedir;

   
// You need to be an admin to edit settings!
   
isAllowedTo('admin_forum');

   
// All the admin bar, to make it right.
   
adminIndex('edit_mods_settings');
   
loadLanguage('Help');
   
loadLanguage('ModSettings');

   
// Will need the utility functions from here.
   
require_once($sourcedir '/ManageServer.php');

   
$context['page_title'] = $txt['modSettings_title'];
   
$context['sub_template'] = 'show_settings';

   
$subActions = array(
      
'custombbc' => 'ModifyCustomBBCodeSettings',
      
'invite' => 'ModifyInviteSettings',
      
'basic' => 'ModifyBasicSettings',
      
'layout' => 'ModifyLayoutSettings',
      
'thankyoupost' => 'ModifyThankYouPostSettings',
      
'karma' => 'ModifyKarmaSettings',
      
'paypal' => 'ModifypayPalSettings',
      
'sbox' => 'ModifySboxSettings',

      
'websiteButton' => 'ModifyWebsiteButtonSettings',

   );

   
// By default do the basic settings.
   
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   
$context['sub_action'] = $_REQUEST['sa'];

   
// Load up all the tabs...
   
$context['admin_tabs'] = array(
      
'title' => &$txt['modSettings_title'],
      
'help' => 'modsettings',
      
'description' => $txt['smf3'],
      
'tabs' => array(
         
'basic' => array(
            
'title' => $txt['mods_cat_features'],
            
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
         ),
         
'layout' => array(
            
'title' => $txt['mods_cat_layout'],
            
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
         ),

         
'custombbc' => array(
            
'title' => $txt['customBBCode_tabtitle'],
            
'href' => $scripturl '?action=featuresettings;sa=custombbc;sesc=' $context['session_id'],
         ),
         
'thankyoupost' => array(
            
'title' => $txt['thankyouposttitle'],
            
'href' => $scripturl '?action=featuresettings;sa=thankyoupost;sesc=' $context['session_id'],
         ),

         
'invite' => array(
            
'title' => $txt['invite_title'],
            
'href' => $scripturl '?action=featuresettings;sa=invite;sesc=' $context['session_id'],
         ),

         
'sbox' => array(
            
'title' => $txt['sbox_ModTitle'],
            
'href' => $scripturl '?action=featuresettings;sa=sbox;sesc=' $context['session_id'],
         ),
                        
'websiteButton' => array(
                                
'title' => $txt['websiteButton_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=websiteButton;sesc=' $context['session_id'],
),
         
'paypal' => array(
            
'title' => $txt['payPalFO'],
            
'href' => $scripturl '?action=featuresettings;sa=paypal;sesc=' $context['session_id'],
            
'is_last' => true,
         ),
         
'karma' => array(
            
'title' => $txt['smf293'],
            
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
            
'is_last' => true,


         ),
      ),
   );

   
// Select the right tab based on the sub action.
   
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
      
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

   
// Call the right function for this sub-acton.
   
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
   global 
$context$txt$scripturl$modSettings$sourcedir;

   
isAllowedTo('admin_forum');
   
loadLanguage('ModSettings');

   
// Quick session check...
   
checkSession();

   require_once(
$sourcedir '/ManageServer.php');

   
$subActions = array(
      
'custombbc' => 'ModifyCustomBBCodeSettings',
      
'invite' => 'ModifyInviteSettings',
      
'basic' => 'ModifyBasicSettings',
      
'layout' => 'ModifyLayoutSettings',
      
'thankyoupost' => 'ModifyThankYouPostSettings',
      
'karma' => 'ModifyKarmaSettings',
      
'paypal' => 'ModifypayPalSettings',
      
'sbox' => 'ModifySboxSettings',

      
'websiteButton' => 'ModifyWebsiteButtonSettings',

   );

   
// Default to core (I assume)
   
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   
// Actually call the saving function.
   
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
   global 
$txt$scripturl$context$settings$sc$modSettings;

   
$config_vars = array(
         
// Big Options... polls, sticky, bbc....
         
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
      
'',
         
// Basic stuff, user languages, titles, flash, permissions...
         
array('check''allow_guestAccess'),
         array(
'check''userLanguage'),
         array(
'check''allow_editDisplayName'),
         array(
'check''allow_hideOnline'),
         array(
'check''allow_hideEmail'),
         array(
'check''guest_hideContacts'),
         array(
'check''titlesEnable'),
         array(
'check''enable_buddylist'),
         array(
'text''default_personalText'),
         array(
'int''max_signatureLength'),
      
'',
         
// Stats, compression, cookies.... server type stuff.
         
array('text''time_format'),
         array(
'select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
         array(
'float''time_offset'),
         array(
'int''failed_login_threshold'),
         array(
'int''lastActive'),
         array(
'check''trackStats'),
         array(
'check''hitStats'),
         array(
'check''enableErrorLogging'),
         array(
'check''securityDisable'),
      
'',
         
// Reactive on email, and approve on delete
         
array('check''send_validation_onChange'),
         array(
'check''approveAccountDeletion'),
      
'',
         
// Option-ish things... miscellaneous sorta.
         
array('check''allow_disableAnnounce'),
         array(
'check''disallow_sendBody'),
         array(
'check''modlog_enabled'),
         array(
'check''queryless_urls'),
      
'',
         array(
'check''sitemap_xml'),
         array(
'int''sitemap_topic_count'),
         array(
'check''sitemap_collapsible'),
      
'',
         
// Width/Height image reduction.
         
array('int''max_image_width'),
         array(
'int''max_image_height'),
      
'',
         
// Topic Member Count Settings.
         
array('check''topiccountAllowGuests'),
         array(
'check''topiccountMemberColorLink'),
         array(
'int''topiccountMaxRepliesLimit'),
      
'',
         
// Reporting of personal messages?
         
array('check''enableReportPM'),
         array(
'int''report_board'),

      
'',
         
// Show flags
         
array('select''country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
         array(
'check''country_flag_required'),
         array(
'check''country_flag_show'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
// Fix PM settings.
      
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
      
$save_vars $config_vars;
      
$save_vars[] = array('text''pm_spam_settings');

      
saveDBSettings($save_vars);

      
writeLog();
      
redirectexit('action=featuresettings;sa=basic');
   }

   
// Hack for PM spam settings.
   
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
   
$config_vars[] = array('int''max_pm_recipients');
   
$config_vars[] = array('int''pm_posts_verification');
   
$config_vars[] = array('int''pm_posts_per_hour');

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
   
$context['settings_title'] = $txt['mods_cat_features'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Compact pages?
         
array('check''compactTopicPagesEnable'),
         array(
'int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
      
'',
         
// Stuff that just is everywhere - today, search, online, etc.
         
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
         array(
'check''topbottomEnable'),
         array(
'check''onlineEnable'),
         array(
'check''enableVBStyleLogin'),
      
'',
         
// Pagination stuff.
         
array('int''defaultMaxMembers'),
      
'',
         
// This is like debugging sorta.
         
array('check''timeLoadPageEnable'),
         array(
'check''disableHostnameLookup'),
      
'',
         
// Who's online.
         
array('check''who_enabled'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=layout');

      
loadUserSettings();
      
writeLog();
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
   
$context['settings_title'] = $txt['mods_cat_layout'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyWebsiteButtonSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
// WebsiteButton 1.0 Settings
      
$config_vars = array(
         array(
'text''websiteButton_url'),
      );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=websiteButton');
   }

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=websiteButton';
        
$context['settings_title'] = isset($txt['websiteButton_title']) ? $txt['websiteButton_title'] : 'Website';

   
prepareDBSettingContext($config_vars);
}
// Invite MOD
function ModifyInviteSettings()
{
   global 
$sourcedir;
   require_once(
$sourcedir '/Invite.php');
   
InviteSettings();
}


function 
ModifyKarmaSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Karma - On or off?
         
array('select''karmaMode'explode('|'$txt['smf64'])),
      
'',
         
// Who can do it.... and who is restricted by time limits?
         
array('int''karmaMinPosts'),
         array(
'float''karmaWaitTime'),
         array(
'check''karmaTimeRestrictAdmins'),
      
'',
         
// What does it look like?  [smite]?
         
array('text''karmaLabel'),
         array(
'text''karmaApplaudLabel'),
         array(
'text''karmaSmiteLabel'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=karma');
   }
function 
ModifypayPalSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Paypal Donations - On or off?
         
array('check''payPalEnable'),
      
'',
         
// Paypal key and Reason
         
array('large_text''payPalReason','10'),
         array(
'large_text''payPalKey','8'),

   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=paypal');
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=paypal';
   
$context['settings_title'] = $txt['payPalFO'];

   
prepareDBSettingContext($config_vars);
}
   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
   
$context['settings_title'] = $txt['smf293'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyThankYouPostSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Thank You Post, some Stanadard settings :)
         
array('check''thankYouPostOnePerPost'),
         array(
'check''thankYouPostColors'),
         array(
'check''thankYouPostDisplayPage'),
      
'',
         
// Okay only the preview settings :)
         
array('check''thankYouPostPreview'),
         array(
'int''thankYouPostPreviewHM'),
         array(
'select''thankYouPostPreviewOrder'explode('|'$txt['thankYouPostPreviewOrderSelect'])),
      
'',
         
// Okay only the Full List settings :)
         
array('select''thankYouPostFullOrder'explode('|'$txt['thankYouPostFullOrderSelect'])),
      
'',
         
//Hmm it'S compatible to my Hide Mod... and have two options xD
         
array('check''thankYouPostUnhidePost'),
         array(
'check''thankYouPostThxUnhideAll'),
         array(
'check''thankYouPostDisableUnhide'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=thankyoupost');
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=thankyoupost';
   
$context['settings_title'] = $txt['thankyouposttitle'];

   
prepareDBSettingContext($config_vars);
}

loadLanguage('sbox');

function 
ModifySboxSettings() {
  global 
$txt$scripturl$context$settings$sc;

  
$config_vars = array(
    
// Generic stuff
    
array('check''sbox_Visible'),
    array(
'check''sbox_ModsRule'),
    array(
'check''sbox_DoHistory'),
    
'',
    
// Guest stuff
    
array('check''sbox_GuestVisible'),
    array(
'check''sbox_GuestAllowed'),
    array(
'check''sbox_GuestBBC'),
    
'',
    
// Visual
    
array('check''sbox_SmiliesVisible'),
    array(
'check''sbox_UserLinksVisible'),
    array(
'check''sbox_AllowBBC'),
    array(
'check''sbox_NewShoutsBar'),
    array(
'int''sbox_MaxLines'),
    array(
'int''sbox_Height'),
    
'',
    
// Miscellaneous
    
array('int''sbox_RefreshTime'),
    array(
'check''sbox_BlockRefresh'),
    array(
'check''sbox_EnableSounds'),
    
'',
    
// Font stuff
    
array('select''sbox_FontFamily', array(
        
'Garamond, serif' => 'Garamond, serif',
        
'Times, serif' => 'Times, serif',
        
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
        
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
        
'Verdana, sans-serif' => 'Verdana, sans-serif',
        
'cursive' => 'cursive',
        
'Palatino, fantasy' => 'Palatino, fantasy',
        
'Courier, monospace' => 'Courier, monospace'
      
),
    ),
    array(
'select''sbox_TextSize', array(
        
'6pt' => '6pt',
        
'7pt' => '7pt',
        
'8pt' => '8pt',
        
'9pt' => '9pt',
        
'10pt' => '10pt',
        
'11pt' => '11pt',
        
'12pt' => '12pt',
        
'13pt' => '13pt',
        
'14pt' => '14pt',
        
'15pt' => '15pt',
        
'16pt' => '16pt',
        
'xx-small' => 'xx-small',
        
'x-small' => 'x-small',
        
'small' => 'small',
        
'medium' => 'medium',
        
'large' => 'large',
        
'x-large' => 'x-large',
        
'xx-large' => 'xx-large'
      
),
    ),
    array(
'text''sbox_TextColor1'),
    array(
'text''sbox_DarkThemes'),
    array(
'text''sbox_TextColor2'),
  );

  
// Saving?
  
if (isset($_GET['save'])) {
    
saveDBSettings($config_vars);
    
redirectexit('action=featuresettings;sa=sbox');
  }

  
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=sbox';
  
$context['settings_title'] = $txt['sbox_ModTitle'];

  
prepareDBSettingContext($config_vars);
}


function 
ModifyCustomBBCodeSettings()
{
   global 
$sourcedir;

   require_once 
$sourcedir '/CustomBBCode.php';

   if (!empty(
$_GET['tag']))
      
EditCustomTag($_GET['tag']);
   else
      
BrowseCustomTags();
}

?>




in the index.template I have

   if ($context['current_action'] == 'usercp')
      $current_action = 'profile';
      if ($context['current_action'] == 'paypal')
      $current_action = 'paypal';
      if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';


and


// Paypal Mod
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
      echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
            </td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: PaypalDonations
Post by: snork13 on July 19, 2007, 10:47:23 AM
Quote from: tracie on July 19, 2007, 10:24:20 AM
Hello...I just double checked my files and I do have the coding given in  both files...

here is the ModSettings.php 

<?php
/**********************************************************************************
* ModSettings.php                                                                 *
***********************************************************************************
* SMF: Simple Machines Forum                                                      *
* Open-Source Project Inspired by Zef Hemel ([email protected])                    *
* =============================================================================== *
* Software Version:           SMF 1.1                                             *
* Software by:                Simple Machines (http://www.simplemachines.org)     *
* Copyright 2006 by:          Simple Machines LLC (http://www.simplemachines.org) *
*           2001-2006 by:     Lewis Media (http://www.lewismedia.com)             *
* Support, News, Updates at:  http://www.simplemachines.org                       *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under   *
* the terms of the provided license as published by Simple Machines LLC.          *
*                                                                                 *
* This program is distributed in the hope that it is and will be useful, but      *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY    *
* or FITNESS FOR A PARTICULAR PURPOSE.                                            *
*                                                                                 *
* See the "license.txt" file for details of the Simple Machines license.          *
* The latest version can always be found at http://www.simplemachines.org.        *
**********************************************************************************/
if (!defined('SMF'))
   die(
'Hacking attempt...');

/* This file is here to make it easier for installed mods to have settings
   and options.  It uses the following functions:

   void ModifyFeatureSettings()
      // !!!

   void ModifyFeatureSettings2()
      // !!!

   void ModifyBasicSettings()
      // !!!

   void ModifyLayoutSettings()
      // !!!

   void ModifyKarmaSettings()
      // !!!

   Adding new settings to the $modSettings array:
   ---------------------------------------------------------------------------
// !!!
*/

/* Adding options to one of the setting screens isn't hard.  The basic format for a checkbox is:
      array('check', 'nameInModSettingsAndSQL'),

      And for a text box:
      array('text', 'nameInModSettingsAndSQL')
      (NOTE: You have to add an entry for this at the bottom!)

      In these cases, it will look for $txt['nameInModSettingsAndSQL'] as the description,
      and $helptxt['nameInModSettingsAndSQL'] as the help popup description.

   Here's a quick explanation of how to add a new item:

    * A text input box.  For textual values.
   ie.   array('text', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For numerical values.
   ie.   array('int', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A text input box.  For floating point values.
   ie.   array('float', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

         * A large text input box. Used for textual values spanning multiple lines.
   ie.   array('large_text', 'nameInModSettingsAndSQL', 'OptionalNumberOfRows',
         &$txt['OptionalDescriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

    * A check box.  Either one or zero. (boolean)
   ie.   array('check', 'nameInModSettingsAndSQL', null, &$txt['descriptionOfTheOption'],
         'OptionalReferenceToHelpAdmin'),

    * A selection box.  Used for the selection of something from a list.
   ie.   array('select', 'nameInModSettingsAndSQL', array('valueForSQL' => &$txt['displayedValue']),
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),
   Note that just saying array('first', 'second') will put 0 in the SQL for 'first'.

    * A password input box. Used for passwords, no less!
   ie.   array('password', 'nameInModSettingsAndSQL', 'OptionalInputBoxWidth',
         &$txt['descriptionOfTheOption'], 'OptionalReferenceToHelpAdmin'),

   For each option:
      type (see above), variable name, size/possible values, description, helptext.
   OR make type 'rule' for an empty string for a horizontal rule.
   OR make type 'heading' with a string for a titled section. */

// This function passes control through to the relevant tab.
function ModifyFeatureSettings()
{
   global 
$context$txt$scripturl$modSettings$sourcedir;

   
// You need to be an admin to edit settings!
   
isAllowedTo('admin_forum');

   
// All the admin bar, to make it right.
   
adminIndex('edit_mods_settings');
   
loadLanguage('Help');
   
loadLanguage('ModSettings');

   
// Will need the utility functions from here.
   
require_once($sourcedir '/ManageServer.php');

   
$context['page_title'] = $txt['modSettings_title'];
   
$context['sub_template'] = 'show_settings';

   
$subActions = array(
      
'custombbc' => 'ModifyCustomBBCodeSettings',
      
'invite' => 'ModifyInviteSettings',
      
'basic' => 'ModifyBasicSettings',
      
'layout' => 'ModifyLayoutSettings',
      
'thankyoupost' => 'ModifyThankYouPostSettings',
      
'karma' => 'ModifyKarmaSettings',
      
'paypal' => 'ModifypayPalSettings',
      
'sbox' => 'ModifySboxSettings',

      
'websiteButton' => 'ModifyWebsiteButtonSettings',

   );

   
// By default do the basic settings.
   
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';
   
$context['sub_action'] = $_REQUEST['sa'];

   
// Load up all the tabs...
   
$context['admin_tabs'] = array(
      
'title' => &$txt['modSettings_title'],
      
'help' => 'modsettings',
      
'description' => $txt['smf3'],
      
'tabs' => array(
         
'basic' => array(
            
'title' => $txt['mods_cat_features'],
            
'href' => $scripturl '?action=featuresettings;sa=basic;sesc=' $context['session_id'],
         ),
         
'layout' => array(
            
'title' => $txt['mods_cat_layout'],
            
'href' => $scripturl '?action=featuresettings;sa=layout;sesc=' $context['session_id'],
         ),

         
'custombbc' => array(
            
'title' => $txt['customBBCode_tabtitle'],
            
'href' => $scripturl '?action=featuresettings;sa=custombbc;sesc=' $context['session_id'],
         ),
         
'thankyoupost' => array(
            
'title' => $txt['thankyouposttitle'],
            
'href' => $scripturl '?action=featuresettings;sa=thankyoupost;sesc=' $context['session_id'],
         ),

         
'invite' => array(
            
'title' => $txt['invite_title'],
            
'href' => $scripturl '?action=featuresettings;sa=invite;sesc=' $context['session_id'],
         ),

         
'sbox' => array(
            
'title' => $txt['sbox_ModTitle'],
            
'href' => $scripturl '?action=featuresettings;sa=sbox;sesc=' $context['session_id'],
         ),
                        
'websiteButton' => array(
                                
'title' => $txt['websiteButton_title'],
                                
'href' => $scripturl '?action=featuresettings;sa=websiteButton;sesc=' $context['session_id'],
),
         
'paypal' => array(
            
'title' => $txt['payPalFO'],
            
'href' => $scripturl '?action=featuresettings;sa=paypal;sesc=' $context['session_id'],
            
'is_last' => true,
         ),
         
'karma' => array(
            
'title' => $txt['smf293'],
            
'href' => $scripturl '?action=featuresettings;sa=karma;sesc=' $context['session_id'],
            
'is_last' => true,


         ),
      ),
   );

   
// Select the right tab based on the sub action.
   
if (isset($context['admin_tabs']['tabs'][$context['sub_action']]))
      
$context['admin_tabs']['tabs'][$context['sub_action']]['is_selected'] = true;

   
// Call the right function for this sub-acton.
   
$subActions[$_REQUEST['sa']]();
}

// This function basically just redirects to the right save function.
function ModifyFeatureSettings2()
{
   global 
$context$txt$scripturl$modSettings$sourcedir;

   
isAllowedTo('admin_forum');
   
loadLanguage('ModSettings');

   
// Quick session check...
   
checkSession();

   require_once(
$sourcedir '/ManageServer.php');

   
$subActions = array(
      
'custombbc' => 'ModifyCustomBBCodeSettings',
      
'invite' => 'ModifyInviteSettings',
      
'basic' => 'ModifyBasicSettings',
      
'layout' => 'ModifyLayoutSettings',
      
'thankyoupost' => 'ModifyThankYouPostSettings',
      
'karma' => 'ModifyKarmaSettings',
      
'paypal' => 'ModifypayPalSettings',
      
'sbox' => 'ModifySboxSettings',

      
'websiteButton' => 'ModifyWebsiteButtonSettings',

   );

   
// Default to core (I assume)
   
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : 'basic';

   
// Actually call the saving function.
   
$subActions[$_REQUEST['sa']]();
}

function 
ModifyBasicSettings()
{
   global 
$txt$scripturl$context$settings$sc$modSettings;

   
$config_vars = array(
         
// Big Options... polls, sticky, bbc....
         
array('select''pollMode', array(&$txt['smf34'], &$txt['smf32'], &$txt['smf33'])),
      
'',
         
// Basic stuff, user languages, titles, flash, permissions...
         
array('check''allow_guestAccess'),
         array(
'check''userLanguage'),
         array(
'check''allow_editDisplayName'),
         array(
'check''allow_hideOnline'),
         array(
'check''allow_hideEmail'),
         array(
'check''guest_hideContacts'),
         array(
'check''titlesEnable'),
         array(
'check''enable_buddylist'),
         array(
'text''default_personalText'),
         array(
'int''max_signatureLength'),
      
'',
         
// Stats, compression, cookies.... server type stuff.
         
array('text''time_format'),
         array(
'select''number_format', array('1234.00' => '1234.00''1,234.00' => '1,234.00''1.234,00' => '1.234,00''1 234,00' => '1 234,00''1234,00' => '1234,00')),
         array(
'float''time_offset'),
         array(
'int''failed_login_threshold'),
         array(
'int''lastActive'),
         array(
'check''trackStats'),
         array(
'check''hitStats'),
         array(
'check''enableErrorLogging'),
         array(
'check''securityDisable'),
      
'',
         
// Reactive on email, and approve on delete
         
array('check''send_validation_onChange'),
         array(
'check''approveAccountDeletion'),
      
'',
         
// Option-ish things... miscellaneous sorta.
         
array('check''allow_disableAnnounce'),
         array(
'check''disallow_sendBody'),
         array(
'check''modlog_enabled'),
         array(
'check''queryless_urls'),
      
'',
         array(
'check''sitemap_xml'),
         array(
'int''sitemap_topic_count'),
         array(
'check''sitemap_collapsible'),
      
'',
         
// Width/Height image reduction.
         
array('int''max_image_width'),
         array(
'int''max_image_height'),
      
'',
         
// Topic Member Count Settings.
         
array('check''topiccountAllowGuests'),
         array(
'check''topiccountMemberColorLink'),
         array(
'int''topiccountMaxRepliesLimit'),
      
'',
         
// Reporting of personal messages?
         
array('check''enableReportPM'),
         array(
'int''report_board'),

      
'',
         
// Show flags
         
array('select''country_flag_ask', array($txt['country_flag_disabled'], $txt['country_flag_profile'], $txt['country_flag_registration'], $txt['country_flag_both'])),
         array(
'check''country_flag_required'),
         array(
'check''country_flag_show'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
// Fix PM settings.
      
$_POST['pm_spam_settings'] = (int) $_POST['max_pm_recipients'] . ',' . (int) $_POST['pm_posts_verification'] . ',' . (int) $_POST['pm_posts_per_hour'];
      
$save_vars $config_vars;
      
$save_vars[] = array('text''pm_spam_settings');

      
saveDBSettings($save_vars);

      
writeLog();
      
redirectexit('action=featuresettings;sa=basic');
   }

   
// Hack for PM spam settings.
   
list ($modSettings['max_pm_recipients'], $modSettings['pm_posts_verification'], $modSettings['pm_posts_per_hour']) = explode(','$modSettings['pm_spam_settings']);
   
$config_vars[] = array('int''max_pm_recipients');
   
$config_vars[] = array('int''pm_posts_verification');
   
$config_vars[] = array('int''pm_posts_per_hour');

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=basic';
   
$context['settings_title'] = $txt['mods_cat_features'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyLayoutSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Compact pages?
         
array('check''compactTopicPagesEnable'),
         array(
'int''compactTopicPagesContiguous'null$txt['smf235'] . '<div class="smalltext">' str_replace(' ''&nbsp;''"3" ' $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' str_replace(' ''&nbsp;''"5" ' $txt['smf236'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
      
'',
         
// Stuff that just is everywhere - today, search, online, etc.
         
array('select''todayMod', array(&$txt['smf290'], &$txt['smf291'], &$txt['smf292'])),
         array(
'check''topbottomEnable'),
         array(
'check''onlineEnable'),
         array(
'check''enableVBStyleLogin'),
      
'',
         
// Pagination stuff.
         
array('int''defaultMaxMembers'),
      
'',
         
// This is like debugging sorta.
         
array('check''timeLoadPageEnable'),
         array(
'check''disableHostnameLookup'),
      
'',
         
// Who's online.
         
array('check''who_enabled'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=layout');

      
loadUserSettings();
      
writeLog();
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=layout';
   
$context['settings_title'] = $txt['mods_cat_layout'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyWebsiteButtonSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
// WebsiteButton 1.0 Settings
      
$config_vars = array(
         array(
'text''websiteButton_url'),
      );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=websiteButton');
   }

        
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=websiteButton';
        
$context['settings_title'] = isset($txt['websiteButton_title']) ? $txt['websiteButton_title'] : 'Website';

   
prepareDBSettingContext($config_vars);
}
// Invite MOD
function ModifyInviteSettings()
{
   global 
$sourcedir;
   require_once(
$sourcedir '/Invite.php');
   
InviteSettings();
}


function 
ModifyKarmaSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Karma - On or off?
         
array('select''karmaMode'explode('|'$txt['smf64'])),
      
'',
         
// Who can do it.... and who is restricted by time limits?
         
array('int''karmaMinPosts'),
         array(
'float''karmaWaitTime'),
         array(
'check''karmaTimeRestrictAdmins'),
      
'',
         
// What does it look like?  [smite]?
         
array('text''karmaLabel'),
         array(
'text''karmaApplaudLabel'),
         array(
'text''karmaSmiteLabel'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=karma');
   }
function 
ModifypayPalSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Paypal Donations - On or off?
         
array('check''payPalEnable'),
      
'',
         
// Paypal key and Reason
         
array('large_text''payPalReason','10'),
         array(
'large_text''payPalKey','8'),

   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=paypal');
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=paypal';
   
$context['settings_title'] = $txt['payPalFO'];

   
prepareDBSettingContext($config_vars);
}
   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=karma';
   
$context['settings_title'] = $txt['smf293'];

   
prepareDBSettingContext($config_vars);
}

function 
ModifyThankYouPostSettings()
{
   global 
$txt$scripturl$context$settings$sc;

   
$config_vars = array(
         
// Thank You Post, some Stanadard settings :)
         
array('check''thankYouPostOnePerPost'),
         array(
'check''thankYouPostColors'),
         array(
'check''thankYouPostDisplayPage'),
      
'',
         
// Okay only the preview settings :)
         
array('check''thankYouPostPreview'),
         array(
'int''thankYouPostPreviewHM'),
         array(
'select''thankYouPostPreviewOrder'explode('|'$txt['thankYouPostPreviewOrderSelect'])),
      
'',
         
// Okay only the Full List settings :)
         
array('select''thankYouPostFullOrder'explode('|'$txt['thankYouPostFullOrderSelect'])),
      
'',
         
//Hmm it'S compatible to my Hide Mod... and have two options xD
         
array('check''thankYouPostUnhidePost'),
         array(
'check''thankYouPostThxUnhideAll'),
         array(
'check''thankYouPostDisableUnhide'),
   );

   
// Saving?
   
if (isset($_GET['save']))
   {
      
saveDBSettings($config_vars);
      
redirectexit('action=featuresettings;sa=thankyoupost');
   }

   
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=thankyoupost';
   
$context['settings_title'] = $txt['thankyouposttitle'];

   
prepareDBSettingContext($config_vars);
}

loadLanguage('sbox');

function 
ModifySboxSettings() {
  global 
$txt$scripturl$context$settings$sc;

  
$config_vars = array(
    
// Generic stuff
    
array('check''sbox_Visible'),
    array(
'check''sbox_ModsRule'),
    array(
'check''sbox_DoHistory'),
    
'',
    
// Guest stuff
    
array('check''sbox_GuestVisible'),
    array(
'check''sbox_GuestAllowed'),
    array(
'check''sbox_GuestBBC'),
    
'',
    
// Visual
    
array('check''sbox_SmiliesVisible'),
    array(
'check''sbox_UserLinksVisible'),
    array(
'check''sbox_AllowBBC'),
    array(
'check''sbox_NewShoutsBar'),
    array(
'int''sbox_MaxLines'),
    array(
'int''sbox_Height'),
    
'',
    
// Miscellaneous
    
array('int''sbox_RefreshTime'),
    array(
'check''sbox_BlockRefresh'),
    array(
'check''sbox_EnableSounds'),
    
'',
    
// Font stuff
    
array('select''sbox_FontFamily', array(
        
'Garamond, serif' => 'Garamond, serif',
        
'Times, serif' => 'Times, serif',
        
'Arial, Helvetica, sans-serif' => 'Arial, Helvetica, sans-serif',
        
'Tahoma, Helvetica, sans-sarif' => 'Tahoma, Helvetica, sans-sarif',
        
'Verdana, sans-serif' => 'Verdana, sans-serif',
        
'cursive' => 'cursive',
        
'Palatino, fantasy' => 'Palatino, fantasy',
        
'Courier, monospace' => 'Courier, monospace'
      
),
    ),
    array(
'select''sbox_TextSize', array(
        
'6pt' => '6pt',
        
'7pt' => '7pt',
        
'8pt' => '8pt',
        
'9pt' => '9pt',
        
'10pt' => '10pt',
        
'11pt' => '11pt',
        
'12pt' => '12pt',
        
'13pt' => '13pt',
        
'14pt' => '14pt',
        
'15pt' => '15pt',
        
'16pt' => '16pt',
        
'xx-small' => 'xx-small',
        
'x-small' => 'x-small',
        
'small' => 'small',
        
'medium' => 'medium',
        
'large' => 'large',
        
'x-large' => 'x-large',
        
'xx-large' => 'xx-large'
      
),
    ),
    array(
'text''sbox_TextColor1'),
    array(
'text''sbox_DarkThemes'),
    array(
'text''sbox_TextColor2'),
  );

  
// Saving?
  
if (isset($_GET['save'])) {
    
saveDBSettings($config_vars);
    
redirectexit('action=featuresettings;sa=sbox');
  }

  
$context['post_url'] = $scripturl '?action=featuresettings2;save;sa=sbox';
  
$context['settings_title'] = $txt['sbox_ModTitle'];

  
prepareDBSettingContext($config_vars);
}


function 
ModifyCustomBBCodeSettings()
{
   global 
$sourcedir;

   require_once 
$sourcedir '/CustomBBCode.php';

   if (!empty(
$_GET['tag']))
      
EditCustomTag($_GET['tag']);
   else
      
BrowseCustomTags();
}

?>




in the index.template I have

   if ($context['current_action'] == 'usercp')
      $current_action = 'profile';
      if ($context['current_action'] == 'paypal')
      $current_action = 'paypal';
      if ($context['current_action'] == 'search2')
      $current_action = 'search';
   if ($context['current_action'] == 'theme')
      $current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';


and


// Paypal Mod
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
      echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
            </td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


ok, check the language file as well if it's not working in index.template.

and you place the paypal function within the karma function, which is why it won't work as shown here.

function ModifyKarmaSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Karma - On or off?
         array('select', 'karmaMode', explode('|', $txt['smf64'])),
      '',
         // Who can do it.... and who is restricted by time limits?
         array('int', 'karmaMinPosts'),
         array('float', 'karmaWaitTime'),
         array('check', 'karmaTimeRestrictAdmins'),
      '',
         // What does it look like?  [smite]?
         array('text', 'karmaLabel'),
         array('text', 'karmaApplaudLabel'),
         array('text', 'karmaSmiteLabel'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=karma');
   }
function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),

   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}
   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}
Title: Re: PaypalDonations
Post by: snork13 on July 19, 2007, 10:48:17 AM
it should be

function ModifyKarmaSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Karma - On or off?
         array('select', 'karmaMode', explode('|', $txt['smf64'])),
      '',
         // Who can do it.... and who is restricted by time limits?
         array('int', 'karmaMinPosts'),
         array('float', 'karmaWaitTime'),
         array('check', 'karmaTimeRestrictAdmins'),
      '',
         // What does it look like?  [smite]?
         array('text', 'karmaLabel'),
         array('text', 'karmaApplaudLabel'),
         array('text', 'karmaSmiteLabel'),
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=karma');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=karma';
   $context['settings_title'] = $txt['smf293'];

   prepareDBSettingContext($config_vars);
}

function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),

   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);
}
Title: Re: PaypalDonations
Post by: tracie on July 19, 2007, 10:54:50 AM
I knew I had to have done something dorky ~doh~...THANK YOU...I will alter the files and check the lang. files for the button and get back to you...many many thanks. :D
Title: Re: PaypalDonations
Post by: tracie on July 19, 2007, 11:09:13 AM
Ok I put the code in as shown...and it works a dream :D

regarding the language files for the button on the index I have this in there:-


$txt['payPal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
?>



the code you have for that button reads

// Paypal Mod
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
      echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
            </td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';
Title: Re: PaypalDonations
Post by: snork13 on July 19, 2007, 11:46:38 AM
Quote from: tracie on July 19, 2007, 11:09:13 AM
Ok I put the code in as shown...and it works a dream :D

regarding the language files for the button on the index I have this in there:-


$txt['payPal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
?>



the code you have for that button reads

// Paypal Mod
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
      echo ($current_action == 'paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'paypal' ? 'active_back' : 'back' , '">
               <a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
            </td>' , $current_action == 'paypal' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


looks good, make sure you enable the mod in the admin section or you won't see the button :)
Title: Re: PaypalDonations
Post by: tracie on July 19, 2007, 12:24:00 PM
Quotemake sure you enable the mod in the admin section or you won't see the button



~I knew that really~ ;D
Title: Re: PaypalDonations
Post by: JoshieDaMan on July 31, 2007, 03:02:39 AM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

That's only failed. I am using 1.1.3.
Title: Re: PaypalDonations
Post by: snork13 on July 31, 2007, 09:18:57 PM
Quote from: JoshieTheGreat on July 31, 2007, 03:02:39 AM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

That's only failed. I am using 1.1.3.

Ok you can apply the mod and then make the changes to that file manually. I suspect you have another mod install that is conflicting with mine.

-snork13
Title: Re: PaypalDonations
Post by: cspeech19 on August 05, 2007, 02:36:01 AM
I installed the mod and everything was sucessful  - I can see at the very top of my forums where it says edit donations but I cant see the donation button and I can see the two boxes to put the text and code in, but I cant see any button to edit in the admin panel on features and options. here is my forums
http://upload.themovementonlinesite.com/tmo/index.php
Title: Re: PaypalDonations
Post by: clocktower on August 05, 2007, 07:28:39 AM
how do u install this mod :(
Title: Re: PaypalDonations
Post by: Murdoc_LaCN on August 07, 2007, 12:39:21 PM
Hey guys :P

ok now i have installed the mod and everything but i cant seem to find the 2 blank windows that you can pyut in the buttons code and your text ???

can anyone maybe help me with this ???

Powered by SMF 1.1.3

that is what update im running :D
Title: Re: PaypalDonations
Post by: snork13 on August 07, 2007, 01:23:12 PM
Quote from: Murdoc_LaCN on August 07, 2007, 12:39:21 PM
Hey guys :P

ok now i have installed the mod and everything but i cant seem to find the 2 blank windows that you can pyut in the buttons code and your text ???

can anyone maybe help me with this ???

Powered by SMF 1.1.3

that is what update im running :D

If you had no errors and are using the default theme you should see the text boxes under admin->current theme

-snork13
Title: Re: PaypalDonations
Post by: Murdoc_LaCN on August 07, 2007, 01:39:32 PM
and will this then apply to all my other themes ???
Title: Re: PaypalDonations
Post by: Murdoc_LaCN on August 07, 2007, 04:50:32 PM
thanks it worked

thank you a lot for the mod :D
Title: Re: PaypalDonations
Post by: LostProphecy on August 07, 2007, 08:56:29 PM
i've installed this mod and it's working great and i'm actually recieving donations, turns out my members really love my site...

anyway i was wondering if there is anyway of showing to the members in that donations page how much has actually been donated... like in a little thermometer image (like the ones charities use) where you can go into admin, set your money target and what you have already accumulated...

just thought it would be a great little extra to the mod
Title: Re: PaypalDonations
Post by: snork13 on August 08, 2007, 09:34:12 AM
Quote from: LostProphecy on August 07, 2007, 08:56:29 PM
i've installed this mod and it's working great and i'm actually recieving donations, turns out my members really love my site...

anyway i was wondering if there is anyway of showing to the members in that donations page how much has actually been donated... like in a little thermometer image (like the ones charities use) where you can go into admin, set your money target and what you have already accumulated...

just thought it would be a great little extra to the mod

that would require alot of change, things such as the paypal interaction using the ipn notification. It is something I would like to do. I just ordered a new computer yesterday, i'm in the process of moving hosts and once i get that all figured out I'll look into it. thanks for the suggestion.
Title: Re: PaypalDonations
Post by: LostProphecy on August 09, 2007, 07:42:28 PM
i didn't exactly mean direct intergration with paypal, i just meant someone like a entry field in admin where you can manually put in for example $50 as a target and you keep a track of people's donations and when you recieve any you go into admin again into another entry field and put in say $10 donations and from those two values that you have entered it would make an image on the donations page.

Or i could just create an image myself and update it everytime i get a donation ;)

but paypal integration would be wicked
Title: Re: PaypalDonations
Post by: snork13 on August 09, 2007, 07:46:09 PM
Quote from: LostProphecy on August 09, 2007, 07:42:28 PM
i didn't exactly mean direct intergration with paypal, i just meant someone like a entry field in admin where you can manually put in for example $50 as a target and you keep a track of people's donations and when you recieve any you go into admin again into another entry field and put in say $10 donations and from those two values that you have entered it would make an image on the donations page.

Or i could just create an image myself and update it everytime i get a donation ;)

but paypal integration would be wicked

it would be very easy to set an admin edit only in a users profile where you as the admin could enter the $$ amount. this way you could keep track of it. i will be working on this and other feature very soon. my new computer ships out the 17th.

-snork13
Title: Re: PaypalDonations
Post by: LostProphecy on August 09, 2007, 07:49:53 PM
thanks alot :)

brilliant mod by the way ;) in only a week i've got enough revenue to pay a whole years worth of webhosting
Title: Re: PaypalDonations
Post by: TheOtherHalf on August 14, 2007, 03:48:58 AM
I recieve this error on a brand new install of smf, anyone happen to have a idea.
1.     Execute Modification     modification.xml     Modification parse error
2.    Execute Modification    -    Modification parse error

Title: Re: PaypalDonations
Post by: askepott on August 14, 2007, 08:22:17 AM
i live in the philippines, and paypal doesnt allow us to received funds, is there any donation mod that uses cc? :P
Title: Re: PaypalDonations
Post by: bwilson27 on August 19, 2007, 09:46:19 PM
I'm getting these errors on my 1.1.3 forum, no custom theme is being used.

2.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test failed

Anyone familiar with this issue?
Title: Re: PaypalDonations
Post by: cmcmom on August 21, 2007, 09:37:08 PM
I have looked and looked and read the link you keep providing but can NOT for the life of me find the Main Index Tab code.  I have the one in Admin.  Everything seems to be fine in my custom theme.  I just am missing the ^&^& tab.

Please can you just tell me where the TAB code goes?

Title: Re: PaypalDonations
Post by: snork13 on August 21, 2007, 10:43:24 PM
Quote from: cmcmom on August 21, 2007, 09:37:08 PM
I have looked and looked and read the link you keep providing but can NOT for the life of me find the Main Index Tab code.  I have the one in Admin.  Everything seems to be fine in my custom theme.  I just am missing the ^&^& tab.

Please can you just tell me where the TAB code goes?



make sure you have enabled the mod, or you won't see the donation link in the index.template.php file
Title: Re: PaypalDonations
Post by: cmcmom on August 21, 2007, 11:00:28 PM
By enable do you mean go into the Features and Options to Donations and click Enable the Donation?  I did that.  I even unchecked and saved and rechecked and saved.

Title: Re: PaypalDonations
Post by: snork13 on August 22, 2007, 11:52:09 AM
Quote from: cmcmom on August 21, 2007, 11:00:28 PM
By enable do you mean go into the Features and Options to Donations and click Enable the Donation?  I did that.  I even unchecked and saved and rechecked and saved.



ok, check your index.template.php file. That is where the code would be for the button.
Title: Re: PaypalDonations
Post by: cmcmom on August 22, 2007, 02:28:20 PM
*sigh* yeah I knew the document.....I was trying to figure out the code.....oh well.....I guess I can get someone more fluent in coding than I to look at it.  I was just trying to be able to take care of it myself.

Thanks though.

Title: Re: PaypalDonations
Post by: snork13 on August 22, 2007, 06:36:34 PM
Quote from: cmcmom on August 22, 2007, 02:28:20 PM
*sigh* yeah I knew the document.....I was trying to figure out the code.....oh well.....I guess I can get someone more fluent in coding than I to look at it.  I was just trying to be able to take care of it myself.

Thanks though.



if you unzip the mod, you'll find a modification xml file. it will tell you what code to look for and what needs to be replaced or added. If you still have problem, send me the file(index.template.php). I'll take a look for ya.

-snork13
Title: Re: PaypalDonations
Post by: cmcmom on August 22, 2007, 08:57:55 PM
Thanks snork.  I got my husband to fix it for me!   It's a great MOD!
Title: Re: PaypalDonations
Post by: hjason7812 on August 23, 2007, 11:21:17 AM
what i would like to know is how do you upload this to your forums?
any help would be greatfull thanks
Title: Re: PaypalDonations
Post by: snork13 on August 23, 2007, 11:25:52 AM
Quote from: hjason7812 on August 23, 2007, 11:21:17 AM
what i would like to know is how do you upload this to your forums?
any help would be greatfull thanks

download the package(zip file) and upload it to your packages folder within your forum directory. login as admin->packages. then you can apply the mod.

-snork13
Title: Re: PaypalDonations
Post by: hjason7812 on August 23, 2007, 11:45:37 AM
Quote from: snork13 on August 23, 2007, 11:25:52 AM
Quote from: hjason7812 on August 23, 2007, 11:21:17 AM
what i would like to know is how do you upload this to your forums?
any help would be greatfull thanks

download the package(zip file) and upload it to your packages folder within your gallery. login as admin->packages. then you can apply the mod.

-snork13

thanks for your reply but i do not have a package section.
i am running the new smf forum version 1.1.3 these are the only section i have in my gallery section Settings | Manage Categories | Approve Images | Reported Images | Approve Comments | File Space Manager | Category Permission List
Title: Re: PaypalDonations
Post by: snork13 on August 23, 2007, 01:51:01 PM
Quote from: hjason7812 on August 23, 2007, 11:45:37 AM
Quote from: snork13 on August 23, 2007, 11:25:52 AM
Quote from: hjason7812 on August 23, 2007, 11:21:17 AM
what i would like to know is how do you upload this to your forums?
any help would be greatfull thanks

your right, my error. I meant forum directory. upload via ftp

-snork13

download the package(zip file) and upload it to your packages folder within your gallery. login as admin->packages. then you can apply the mod.

-snork13

thanks for your reply but i do not have a package section.
i am running the new smf forum version 1.1.3 these are the only section i have in my gallery section Settings | Manage Categories | Approve Images | Reported Images | Approve Comments | File Space Manager | Category Permission List
Title: Re: PaypalDonations
Post by: simplyliza6 on August 31, 2007, 04:28:36 PM
Ive tried to download it, but ive got this error

Execute Modification ./Sources/ModSettings.php Test failed

how can i fix this?
Title: Re: PaypalDonations
Post by: FreeGeezer on September 03, 2007, 07:31:34 PM
I am trying to download the PayPal Donations mod using the Package Manager. I have SMF ver. 1.1.2, using the default theme. The only mod I have installed is the Custom Profile Field Mod  ver. 3.16.

When I try to download, I get the following message:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Does anyone have any idea what the problem may be?

Thank you,
Roy Maul
http://odbhosting.net/forums/ (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: dcneuts on September 06, 2007, 08:29:48 PM
I'm attempting to use the PayPal mod with the Bright Forest theme.  I have installed and applied the mod, and I have made the modifications to .Sources/ManagePermission.php and .Sources/ModSettings.php, both of which failed the test during install.  Everything else passed.  I even went in (all of which, following the mods in the modifications file) made the changes to the index.template.php file in my Themes folder for the custom theme.  Nothing is working at all and I'm at a loss.

If someone could take a look at the files for me, or suggest something, that would be wonderful.  Everytime I attempt to login to my Admin area and attempt to use properties and features link, I get:

Parse error: syntax error, unexpected '}', expecting ')' in /home/public_html/Sources/ModSettings.php on line 393

I'm very new to this, so any help is appreciated.
Title: Re: PaypalDonations
Post by: snork13 on September 07, 2007, 08:44:01 AM
Quote from: dcneuts on September 06, 2007, 08:29:48 PM
I'm attempting to use the PayPal mod with the Bright Forest theme.  I have installed and applied the mod, and I have made the modifications to .Sources/ManagePermission.php and .Sources/ModSettings.php, both of which failed the test during install.  Everything else passed.  I even went in (all of which, following the mods in the modifications file) made the changes to the index.template.php file in my Themes folder for the custom theme.  Nothing is working at all and I'm at a loss.

If someone could take a look at the files for me, or suggest something, that would be wonderful.  Everytime I attempt to login to my Admin area and attempt to use properties and features link, I get:

Parse error: syntax error, unexpected '}', expecting ')' in /home/public_html/Sources/ModSettings.php on line 393

I'm very new to this, so any help is appreciated.

I fixed the ModSetting file for you.

you must have the mod enable or you won't see the donation link. Since I fixed the modsetting, you should now be able to enable the mod.
Title: Re: PaypalDonations
Post by: dcneuts on September 07, 2007, 12:35:04 PM
Thanks for examining and fixing that file, greatly appreciated!
Title: Re: PaypalDonations
Post by: simplyliza6 on September 07, 2007, 04:50:24 PM
Ive got an error in modsetting
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/shoujosh/public_html/forum/Sources/ModSettings.php:357) in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 382

And then I copied the onees tha snork fixed. And now I got this error.

Parse error: syntax error, unexpected '}', expecting ')' in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 394

EDIT//Ive uninstall it and still I got an error.
Execute Modification ./Sources/ModSettings.php Test failed

Can you fix the modsetting for me please.


Thanks,
Liza
Title: Re: PaypalDonations
Post by: snork13 on September 07, 2007, 05:39:01 PM
Quote from: simplyliza6 on September 07, 2007, 04:50:24 PM
Ive got an error in modsetting
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/shoujosh/public_html/forum/Sources/ModSettings.php:357) in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 382

And then I copied the onees tha snork fixed. And now I got this error.

Parse error: syntax error, unexpected '}', expecting ')' in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 394

EDIT//Ive uninstall it and still I got an error.
Execute Modification ./Sources/ModSettings.php Test failed

Can you fix the modsetting for me please.


Thanks,
Liza

can you post your actual ModSettings file, get it via ftp and attach it to this thread and I'll take a look.
Title: Re: PaypalDonations
Post by: FreeGeezer on September 08, 2007, 01:59:24 AM
Quote from: FreeGeezer on September 03, 2007, 07:31:34 PM
I am trying to download the PayPal Donations mod using the Package Manager. I have SMF ver. 1.1.2, using the default theme. The only mod I have installed is the Custom Profile Field Mod  ver. 3.16.

When I try to download, I get the following message:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Does anyone have any idea what the problem may be?

Please, is there anyone with any answers to this?

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: sillymilly on September 08, 2007, 06:12:38 AM
think this mod would be very useful for the charity website I run (www.hopegroups.co.uk/smf/), but can't get it to work!

I uploaded it and installed it through the package manager, added the stuff and enabled it through the donation tab in 'features and options', but don't get anythign else where.

I am trying to do the manual install to make sure everything had been done proberly- everything went ok until i got to the index.template.php file - the only [calendar] text is in this bit:

// The [calendar]!
if ($context['allow_calendar'])
echo '
<li', $current_action == 'calendar' ? ' id="actief"' : '', '><a href="', $scripturl, '?action=calendar">', $txt['calendar24'], '</a></li>';


Which is different from what the file says (i'm using 'astronomy' theme) - is this still the place to put the code?

If it is - do I need to change the format of the paypal code I add in?

Just come across another slight prob -

in the themes/astronomy/languse file i only have Settings.english.php, so where do i put the bits of code i'm supposed to put into Modifications.english.php, ModSettings.english.php and Who.english.php??

Did think about making new files with these names, but the 'karma' code from ModSettings.english.php must be somewhere, I just don't know where!!
Title: Re: PaypalDonations
Post by: sillymilly on September 08, 2007, 07:35:40 AM
urgh - having done half of it I now get:

Template Parse Error!
There was a problem loading the /Themes/astronomy/index.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.
--------------------------------------------------------------------------------

syntax error, unexpected '<'


ARGHHHHHHHHHHHHHHHHHHH  :D :D &gt;:( :D
Title: Re: PaypalDonations
Post by: Dragooon on September 08, 2007, 08:20:49 AM
What did you modified/added?
Title: Re: PaypalDonations
Post by: sillymilly on September 08, 2007, 11:28:11 AM
I went through all the modifications in the modifications.xml files with the paypal mod, everything was already where it should have been until I got to the modification.english.php file - none of the  *.english.php are in the theme/language file for my theme (astronomy) - so are they else where - if so where?
or do I need to make these files in the astronomy/languages folder, if so, what do they need to contain?


from my previous post:

Quotein the themes/astronomy/languse file i only have Settings.english.php, so where do i put the bits of code i'm supposed to put into Modifications.english.php, ModSettings.english.php and Who.english.php??

Did think about making new files with these names, but the 'karma' code from ModSettings.english.php must be somewhere, I just don't know where!!


Please also check previous post re: code after [calendar] in index.template.php - this is whats causong the problems cos i've commented it out and now board works, but still need correct code for mod to work!
Title: Re: PaypalDonations
Post by: simplyliza6 on September 08, 2007, 11:47:00 AM
Quote from: snork13 on September 07, 2007, 05:39:01 PM
Quote from: simplyliza6 on September 07, 2007, 04:50:24 PM
Ive got an error in modsetting
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/shoujosh/public_html/forum/Sources/ModSettings.php:357) in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 382

And then I copied the onees tha snork fixed. And now I got this error.

Parse error: syntax error, unexpected '}', expecting ')' in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 394

EDIT//Ive uninstall it and still I got an error.
Execute Modification ./Sources/ModSettings.php Test failed

Can you fix the modsetting for me please.


Thanks,
Liza

can you post your actual ModSettings file, get it via ftp and attach it to this thread and I'll take a look.
Title: Re: PaypalDonations
Post by: snork13 on September 08, 2007, 12:28:33 PM
Quote from: simplyliza6 on September 08, 2007, 11:47:00 AM
Quote from: snork13 on September 07, 2007, 05:39:01 PM
Quote from: simplyliza6 on September 07, 2007, 04:50:24 PM
Ive got an error in modsetting
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/shoujosh/public_html/forum/Sources/ModSettings.php:357) in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 382

And then I copied the onees tha snork fixed. And now I got this error.

Parse error: syntax error, unexpected '}', expecting ')' in /home/shoujosh/public_html/forum/Sources/ModSettings.php on line 394

EDIT//Ive uninstall it and still I got an error.
Execute Modification ./Sources/ModSettings.php Test failed

Can you fix the modsetting for me please.


Thanks,
Liza

can you post your actual ModSettings file, get it via ftp and attach it to this thread and I'll take a look.

your missing the whole modifiy paypal setting function, which I can add for you, but first...what shout box mod are you using, something seem to be wrong with that as well.

-snork13
Title: Re: PaypalDonations
Post by: simplyliza6 on September 08, 2007, 03:30:41 PM
Thanks I'm using SMF Shoutbox 1.16 
Title: Re: PaypalDonations
Post by: sillymilly on September 09, 2007, 10:28:53 AM
I'm using astronomy theme, and having problems making the mod work - everything seems to be where it should be, in the default theme, but can't seem to get it to work in the custom theme.

Not all the files are available in the custom theme (eg *.english.php files) but the must be accessable to the custom theme, so how do I make the mod point to the correct files?

Can any one help me with this, please?
Title: Re: PaypalDonations
Post by: snork13 on September 09, 2007, 11:36:32 AM
Quote from: sillymilly on September 09, 2007, 10:28:53 AM
I'm using astronomy theme, and having problems making the mod work - everything seems to be where it should be, in the default theme, but can't seem to get it to work in the custom theme.

Not all the files are available in the custom theme (eg *.english.php files) but the must be accessable to the custom theme, so how do I make the mod point to the correct files?

Can any one help me with this, please?

If you don't have the file in the custom theme, it should use the default files. For each file you do have in the custom theme, you must make the changes manually.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: sillymilly on September 09, 2007, 02:47:48 PM
Quote from: snork13 on September 09, 2007, 11:36:32 AM
Quote from: sillymilly on September 09, 2007, 10:28:53 AM
I'm using astronomy theme, and having problems making the mod work - everything seems to be where it should be, in the default theme, but can't seem to get it to work in the custom theme.

Not all the files are available in the custom theme (eg *.english.php files) but the must be accessable to the custom theme, so how do I make the mod point to the correct files?

Can any one help me with this, please?

If you don't have the file in the custom theme, it should use the default files. For each file you do have in the custom theme, you must make the changes manually.

http://docs.simplemachines.org/index.php?topic=402

yes - i know - and i've done all that, but it still doesn't want to work. The problem seems to be with the index.template.php file in the theme - i put the code in as in the modification.xml file, but the come up with an error - the coding in the theme file is different to in the default file.

I have tried to fix this - but don't know how to.

Have a ttached the theme file - you'll find the paypal code i put in easily cos it's commented out as all i got with it was errors.

Title: Re: PaypalDonations
Post by: snork13 on September 09, 2007, 05:47:29 PM
Quote from: sillymilly on September 09, 2007, 02:47:48 PM
Quote from: snork13 on September 09, 2007, 11:36:32 AM
Quote from: sillymilly on September 09, 2007, 10:28:53 AM
I'm using astronomy theme, and having problems making the mod work - everything seems to be where it should be, in the default theme, but can't seem to get it to work in the custom theme.

Not all the files are available in the custom theme (eg *.english.php files) but the must be accessable to the custom theme, so how do I make the mod point to the correct files?

Can any one help me with this, please?

If you don't have the file in the custom theme, it should use the default files. For each file you do have in the custom theme, you must make the changes manually.

http://docs.simplemachines.org/index.php?topic=402

yes - i know - and i've done all that, but it still doesn't want to work. The problem seems to be with the index.template.php file in the theme - i put the code in as in the modification.xml file, but the come up with an error - the coding in the theme file is different to in the default file.

I have tried to fix this - but don't know how to.

Have a ttached the theme file - you'll find the paypal code i put in easily cos it's commented out as all i got with it was errors.



try this one :D
Title: Re: PaypalDonations
Post by: sillymilly on September 09, 2007, 06:38:31 PM
 :-* :-* :-* :-* :-* :-*!!

It works!

Thank you SO much - for the mod itself & for sorting the problem.

:-* :-* :P
Title: Re: PaypalDonations
Post by: snork13 on September 09, 2007, 07:59:49 PM
Quote from: sillymilly on September 09, 2007, 06:38:31 PM
:-* :-* :-* :-* :-* :-*!!

It works!

Thank you SO much - for the mod itself & for sorting the problem.

:-* :-* :P

your very welcome and glad it work :)
Title: Re: PaypalDonations
Post by: TGF_Ian on September 13, 2007, 04:17:48 PM
Hey

Got the mod installed,, but whenever I add the HTML code from PayPal to go into the block,, and click SAVE,, it boots me out and does not save the HTML code ?????????

Any Ideas ???
Title: Re: PaypalDonations
Post by: snork13 on September 13, 2007, 06:41:44 PM
Quote from: TGF_Ian on September 13, 2007, 04:17:48 PM
Hey

Got the mod installed,, but whenever I add the HTML code from PayPal to go into the block,, and click SAVE,, it boots me out and does not save the HTML code ?????????

Any Ideas ???

check the modsetting file. make sure this is in the correct place.




function ModifypayPalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Paypal Donations - On or off?
array('check', 'payPalEnable'),
'',
// Paypal key and Reason
array('large_text', 'payPalReason','10'),
array('large_text', 'payPalKey','8'),
           
);

// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
redirectexit('action=featuresettings;sa=paypal');
}

$context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
$context['settings_title'] = $txt['payPalFO'];

prepareDBSettingContext($config_vars);
}
Title: Re: PaypalDonations
Post by: TGF_Ian on September 14, 2007, 03:22:22 AM
found the file,,

it reads :

function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);

Is this OK ?
Title: Re: PaypalDonations
Post by: snork13 on September 14, 2007, 08:50:04 AM
Quote from: TGF_Ian on September 14, 2007, 03:22:22 AM
found the file,,

it reads :

function ModifypayPalSettings()
{
   global $txt, $scripturl, $context, $settings, $sc;

   $config_vars = array(
         // Paypal Donations - On or off?
         array('check', 'payPalEnable'),
      '',
         // Paypal key and Reason
         array('large_text', 'payPalReason','10'),
         array('large_text', 'payPalKey','8'),
           
   );

   // Saving?
   if (isset($_GET['save']))
   {
      saveDBSettings($config_vars);
      redirectexit('action=featuresettings;sa=paypal');
   }

   $context['post_url'] = $scripturl . '?action=featuresettings2;save;sa=paypal';
   $context['settings_title'] = $txt['payPalFO'];

   prepareDBSettingContext($config_vars);

Is this OK ?

make sure the function is closed.



}



attach your modsetting file, i'll check it out
Title: Re: PaypalDonations
Post by: TGF_Ian on September 15, 2007, 04:24:08 AM
Hope this works,, but I have attached a copy of the file that you wanted.
Title: Re: PaypalDonations
Post by: snork13 on September 15, 2007, 01:46:36 PM
Quote from: TGF_Ian on September 15, 2007, 04:24:08 AM
Hope this works,, but I have attached a copy of the file that you wanted.

No, I need your modsetting file from your forum. i have the xml
Title: Re: PaypalDonations
Post by: TGF_Ian on September 16, 2007, 07:00:18 AM
is this the file you mean ?????
Title: Re: PaypalDonations
Post by: snork13 on September 16, 2007, 08:32:59 AM
Quote from: TGF_Ian on September 16, 2007, 07:00:18 AM
is this the file you mean ?????

i remove your setting file, which you do not want to share with the world. the file in question is modsetting in your source folder.
Title: Re: PaypalDonations
Post by: FreeGeezer on September 17, 2007, 03:51:05 PM
Quote from: FreeGeezer on September 08, 2007, 01:59:24 AM
Quote from: FreeGeezer on September 03, 2007, 07:31:34 PM
I am trying to download the PayPal Donations mod using the Package Manager. I have SMF ver. 1.1.2, using the default theme. The only mod I have installed is the Custom Profile Field Mod  ver. 3.16.

When I try to download, I get the following message:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Does anyone have any idea what the problem may be?

Please, is there anyone with any answers to this?

Am I asking a question here that's taboo or something?  If so, I'm sorry! If not, I really do need some help. I just can't imagine why a mod download in this site would be corrupt or, at least, how it could remain corrupt for 2 weeks.

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: TGF_Ian on September 17, 2007, 04:18:34 PM
ok, i have searched my FTP and I can not see a modsetting file in the public_html folder. is this where it should be ???

I really am stumped with this one, and I am sorry to take up so much time, but I dont know where to go from here....
Title: Re: PaypalDonations
Post by: snork13 on September 17, 2007, 09:00:25 PM
Quote from: TGF_Ian on September 17, 2007, 04:18:34 PM
ok, i have searched my FTP and I can not see a modsetting file in the public_html folder. is this where it should be ???

I really am stumped with this one, and I am sorry to take up so much time, but I dont know where to go from here....
you are close, it's in the sources folder ;)
Title: Re: PaypalDonations
Post by: snork13 on September 17, 2007, 09:01:36 PM
Quote from: FreeGeezer on September 17, 2007, 03:51:05 PM
Quote from: FreeGeezer on September 08, 2007, 01:59:24 AM
Quote from: FreeGeezer on September 03, 2007, 07:31:34 PM
I am trying to download the PayPal Donations mod using the Package Manager. I have SMF ver. 1.1.2, using the default theme. The only mod I have installed is the Custom Profile Field Mod  ver. 3.16.

When I try to download, I get the following message:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Does anyone have any idea what the problem may be?

Please, is there anyone with any answers to this?

Am I asking a question here that's taboo or something?  If so, I'm sorry! If not, I really do need some help. I just can't imagine why a mod download in this site would be corrupt or, at least, how it could remain corrupt for 2 weeks.

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums/)

try downloading from the mod site and ftp it to your package folder
Title: Re: PaypalDonations
Post by: cmcmom on September 20, 2007, 03:47:04 PM
Ok I don't know what happened.  I had the Mod installed.  I edited it for the PayPal button and correlating message text.  The tab is there, the link works, but nothing in Admin references it.  I can't turn it off, change the text etc.  Permissions settings are still there.

What happened and how do I fix it?
Title: Re: PaypalDonations
Post by: snork13 on September 20, 2007, 08:18:09 PM
Quote from: cmcmom on September 20, 2007, 03:47:04 PM
Ok I don't know what happened.  I had the Mod installed.  I edited it for the PayPal button and correlating message text.  The tab is there, the link works, but nothing in Admin references it.  I can't turn it off, change the text etc.  Permissions settings are still there.

What happened and how do I fix it?

check the modsetting file in the source dir. you should have the modify paypal function, which handles the text and paypal info.

-snork13
Title: Re: PaypalDonations
Post by: cmcmom on September 20, 2007, 09:24:17 PM
This is what mine says:

DELETED SINCE IT GOT NO RESPONSE
Title: Re: PaypalDonations
Post by: FreeGeezer on September 20, 2007, 09:49:47 PM
Quote from: snork13 on September 17, 2007, 09:01:36 PM
Quote from: FreeGeezer on September 17, 2007, 03:51:05 PM
Quote from: FreeGeezer on September 08, 2007, 01:59:24 AM
Quote from: FreeGeezer on September 03, 2007, 07:31:34 PM
I am trying to download the PayPal Donations mod using the Package Manager. I have SMF ver. 1.1.2, using the default theme. The only mod I have installed is the Custom Profile Field Mod  ver. 3.16.

When I try to download, I get the following message:
An Error Has Occurred!
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.


Does anyone have any idea what the problem may be?

Please, is there anyone with any answers to this?

Am I asking a question here that's taboo or something?  If so, I'm sorry! If not, I really do need some help. I just can't imagine why a mod download in this site would be corrupt or, at least, how it could remain corrupt for 2 weeks.

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums/)

try downloading from the mod site and ftp it to your package folder

Thanks for the tip. I downloaded the mod to my local system, then uploaded it in the Package Manager. Then I attempted to apply the mod, and got the message "Error in Package Installation." The list of files tested showed that "./Sources/ModSettings.php" failed the test. The message says something about potential conflict between this package and another package I may already have installed. The only mod I have installed is the Custom Profile Field Mod v3.16. Also, I have applied the SMF 1.1.3 upgrade (SMF 1.0.11 / 1.1.3 Update 1.1). Will either of these present a conflict to the PayPal Donation mod?

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: Nephilim on September 24, 2007, 05:40:23 PM
Okay, I've installed this mod on SMF 1.1.3 (fresh install, default theme), and everything seemed to go smoothly, yet it does not work.

I don't have a button on the index, and I have no textareas in the admin control panel (in current theme) to set it up.  It's like it installed the mod, but the board is ignoring it.

I've gone in and manually checked each file to make sure the modifications were made properly, and everything looks fine, yet nothing shows up.  I'm at a loss here.
Title: Re: PaypalDonations
Post by: MansonGT on September 28, 2007, 12:59:12 PM
is it possible that this doesn't work on SMF 1.1.4 ?
Title: Re: PaypalDonations
Post by: wicked1 on October 02, 2007, 03:22:30 AM
Quote from: Nephilim on September 24, 2007, 05:40:23 PM
Okay, I've installed this mod on SMF 1.1.3 (fresh install, default theme), and everything seemed to go smoothly, yet it does not work.

I don't have a button on the index, and I have no textareas in the admin control panel (in current theme) to set it up.  It's like it installed the mod, but the board is ignoring it.

I've gone in and manually checked each file to make sure the modifications were made properly, and everything looks fine, yet nothing shows up.  I'm at a loss here.
I am having the same issue, except with 1.1.4 :(
Title: Re: PaypalDonations
Post by: Trinny on October 10, 2007, 06:59:10 PM
Same here on 1.1.4

This stinks, cos it's a great addition :(
Title: Re: PaypalDonations
Post by: FreeGeezer on October 11, 2007, 12:56:12 AM
I don't know if, or when, we're going to get some assistance. It seem that snork13 is the only one who can answer some of these questions, and his profile simply says that he's on "hiatus". I've had a question go unanswered since Sept. 20th.

Thank you,
Roy Maul
Our Daily Bread Forums (http://odbhosting.net/forums)
Title: Re: PaypalDonations
Post by: snork13 on October 11, 2007, 10:50:30 PM
I updated the mod for 1.1.4, tested on a fresh/clean install, works great :)
Title: Re: PaypalDonations
Post by: Dumpling on October 12, 2007, 06:42:11 PM
I can't find the enable/Donation tab under Features and Options.

I'm running on SMF 1.1.4. I just installed the PaypalDonation Mod via the Packages installer and it installed successfully.

Help please?
Title: Re: PaypalDonations
Post by: TrueSatan on October 12, 2007, 08:12:17 PM
Please see another of my replies to you...your language settings are at fault...probably set to English utf8 not English.
Title: Re: PaypalDonations
Post by: Dumpling on October 12, 2007, 08:40:29 PM
Hi again, TrueSatan -

I've followed the instructions that you provided in the other post and changed my forum's language setting from English-Utf8 to English. That indeed solved almost all the problems that I was having and I'm very happy :D and grateful for your assistance.

  :-\ But now I'm having slight trouble with installing the PaypalDonation mod. It installed fine before, but now I got this error message (please refer to image).

(http://i21.tinypic.com/xknc50.jpg)
Title: Re: PaypalDonations
Post by: TrueSatan on October 12, 2007, 08:54:14 PM
Errors like that tell you that another mod has already edited the file in question so the automatic package installer can't find the code it expected to find...manual install time. Most of the time you will get away with installing the mod via the package manager then editing manually the one failed file but not always...sometimes after a file fails all the subsequent edits get skipped and you have to do them all manually.

BTW do make sure that prior to installing or uninstalling any mod or theme you backup both your database and your files (ftp them to your local machine.)
Title: Re: PaypalDonations
Post by: Dumpling on October 12, 2007, 08:58:13 PM
Yes sir! Wish me luck! The last time I attempted manual mod installation ended with burnt cupcakes... :P


Edit: Can't you see I just love cupcakes?
Title: Re: PaypalDonations
Post by: TrueSatan on October 12, 2007, 09:01:43 PM
LOL! So long as you do the backup you can restore from it so nothing lost but a bit of your time and a few burnt cupcakes.
Title: Re: PaypalDonations
Post by: Dumpling on October 14, 2007, 05:00:28 PM
Yippy! I installed it via the Packages installer then I went in and manually put in the codes for the file that the Packages installer couldn't edit. It was a bit tricky. Luckily this time I didn't end up with burnt cupcakes. :)

The backup process was loooong. I FTP'ed the entire forum folder onto my computer like you said and it took really looong. Oh well, better be safe than sorry, right? Thanks for the help and advice. :)
Title: Re: PaypalDonations
Post by: Moif on October 19, 2007, 03:57:06 AM
Does this mod add any kind of visual notification that someone has donated? Such as via a small icon under their Usernames when they post?
Title: Re: PaypalDonations
Post by: cmcmom on October 19, 2007, 11:18:20 AM
No it doesn't.
Title: Re: PaypalDonations
Post by: Ur_Irish_Rose on October 22, 2007, 03:00:51 AM
Execute Modification ./Sources/ModSettings.php Test failed

i get this error when i try to install this package can someoen help me please

my site is http://www.boards-express.com/BE-Forum/index.php
Title: Re: PaypalDonations
Post by: Dumpling on October 22, 2007, 07:07:45 AM
I got that error message when I tried to install the package for this mod, too.

Someone told me I could either manually install the mod or try installing it (using the package install function on SMF) and manually edit the "test failed" file. I did #2 and it worked. Maybe you can try that. :) Remember to back up EVERYTHING!!!




Quote from: Ur_Irish_Rose on October 22, 2007, 03:00:51 AM
Execute Modification ./Sources/ModSettings.php Test failed

i get this error when i try to install this package can someoen help me please

my site is http://www.boards-express.com/BE-Forum/index.php




Quote from: Dumpling on October 12, 2007, 08:40:29 PM
Hi again, TrueSatan -

I've followed the instructions that you provided in the other post and changed my forum's language setting from English-Utf8 to English. That indeed solved almost all the problems that I was having and I'm very happy :D and grateful for your assistance.

  :-\ But now I'm having slight trouble with installing the PaypalDonation mod. It installed fine before, but now I got this error message (please refer to image).

(http://i21.tinypic.com/xknc50.jpg)

Quote from: TrueSatan on October 12, 2007, 08:54:14 PM
Errors like that tell you that another mod has already edited the file in question so the automatic package installer can't find the code it expected to find...manual install time. Most of the time you will get away with installing the mod via the package manager then editing manually the one failed file but not always...sometimes after a file fails all the subsequent edits get skipped and you have to do them all manually.

BTW do make sure that prior to installing or uninstalling any mod or theme you backup both your database and your files (ftp them to your local machine.)
Title: Re: PaypalDonations
Post by: Ur_Irish_Rose on October 22, 2007, 09:05:17 AM
im totally lost as to what to do can someone explain exacilly what i should do please

how do i edit the code where do i go to edit and what code to i look for to change and what do i change it too
Title: Re: PaypalDonations
Post by: Puffy30 on October 22, 2007, 12:40:44 PM
I read Dumpling's post about manually installing because of the error.  However, I don't know how to manually install.  Are there directions for that around somewhere?  I would try just editing the "test failed" file, but I'm not sure what to edit.  ???
Title: Re: PaypalDonations
Post by: Ur_Irish_Rose on October 22, 2007, 05:27:36 PM
ok i got this to go into my forum now all i need is to get it installed
Title: Re: PaypalDonations
Post by: Dumpling on October 25, 2007, 02:30:01 AM
Instructions on how to manually install a mod:

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: Metal_GunBlade on October 31, 2007, 08:36:10 AM
A problem is reported:
Quote8: Undefined index: payPal
Fichier: /home/globa104/public_html/forum/Themes/default/languages/index.french.php (eval?)
Ligne: 662.

I tried to uninstall the mod but an error occurred:

QuoteThis package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

Could you please help me resolve this?
Title: Re: PaypalDonations
Post by: Dumpling on October 31, 2007, 01:36:15 PM
Hey Metal_GunBlade,

Have you tried this: SMF Package Parser (http://www.smfhacks.com/smf-package-parser.html)

If you know how to manually install a mod, that should be easy. It's simpler than looking through the .mod file.

If you don't know how to manually install a mod, read this: Manually Install Mods Doc (http://docs.simplemachines.org/index.php?topic=402)
Title: Re: PaypalDonations
Post by: tiger5226 on November 03, 2007, 02:30:04 PM
Hey guys I did the manual edit and everything seems to work fine but there is no donations link on the main page. Could you please tell me how to add that in?

Mark
Title: Re: PaypalDonations
Post by: crazyc187 on November 11, 2007, 06:03:44 AM
is there a way to get this to install on a diffrent template if so please direct me in the right direction thanx in advance
Title: Re: PaypalDonations
Post by: Dumpling on November 12, 2007, 04:36:44 PM
Quote from: tiger5226 on November 03, 2007, 02:30:04 PM
Hey guys I did the manual edit and everything seems to work fine but there is no donations link on the main page. Could you please tell me how to add that in?

Mark

Are you using a different theme (not the default)?
Title: Re: PaypalDonations
Post by: tiger5226 on November 30, 2007, 12:21:44 AM
Yes dumpling I am. sorry for not getting back to you. I lost the post and forgot I posted it with the SMF forum. I am English steel and I am having all types of problems with different themes...this theme is the one with the least problems. I would be willing to pay someone to help me get my mods that I installed all working, or some help would be greatly appreciated.

Mark
Title: Re: PaypalDonations
Post by: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Thanks,
Roy
http://odbhosting.net/forums/
Title: Re: PaypalDonations
Post by: FreeGeezer on December 11, 2007, 03:58:07 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Any help out there on this? I have checked all the files, multiple times, to insure that the modifications are there... and they are. I saw the tab and configuration fields in the admin section right after installing, but, after logging out and logging back in later, it was gone.

Does anyone have any insight into this?

Thank you,
Roy
http://odbhosting.net/forums/
Title: Re: PaypalDonations
Post by: snork13 on December 11, 2007, 11:01:02 PM
Quote from: FreeGeezer on December 11, 2007, 03:58:07 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Any help out there on this? I have checked all the files, multiple times, to insure that the modifications are there... and they are. I saw the tab and configuration fields in the admin section right after installing, but, after logging out and logging back in later, it was gone.

Does anyone have any insight into this?

Thank you,
Roy
http://odbhosting.net/forums/

can you attach your files modified, I'll take a look
Title: Re: PaypalDonations
Post by: digit on December 12, 2007, 09:07:44 AM
hmm.  Couldn't you just use the CustomActions mod for this?

Granted, permissions aren't available...  but why would you want to restrict someone from donating?

I installed it, and was a bit disappointed there was nothing other than a way to add a paypal button (or form).  I expected the ability to track donations, or something.

(or am I missing something?)
Title: Re: PaypalDonations
Post by: FreeGeezer on December 13, 2007, 12:57:53 PM
Quote from: snork13 on December 11, 2007, 11:01:02 PM
Quote from: FreeGeezer on December 11, 2007, 03:58:07 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Any help out there on this? I have checked all the files, multiple times, to insure that the modifications are there... and they are. I saw the tab and configuration fields in the admin section right after installing, but, after logging out and logging back in later, it was gone.

Does anyone have any insight into this?

can you attach your files modified, I'll take a look

Thank you snork13,
I really appreciate your offer. This thing is really baffling me. Of course, I'm an old geezer that can't get COBOL out of his head.  ;)

I've attached all the files involved in a zip file, called "modifiedfiles.zip", and a screenshot of the error log, rightly called "errorlog.jpg".

I really look forward the hearing what you find.

Thanks again,
Roy
http://odbhosting.net/forums/
Title: Re: PaypalDonations
Post by: snork13 on December 14, 2007, 08:38:46 AM
Quote from: digit on December 12, 2007, 09:07:44 AM
hmm.  Couldn't you just use the CustomActions mod for this?

Granted, permissions aren't available...  but why would you want to restrict someone from donating?

I installed it, and was a bit disappointed there was nothing other than a way to add a paypal button (or form).  I expected the ability to track donations, or something.

(or am I missing something?)

that would be grudge's paid sub mod, why would i re-write his mod. mine is a simple way to add a paypal link for donations. thanks for your input

-snork13
Title: Re: PaypalDonations
Post by: snork13 on December 14, 2007, 08:41:13 AM
Quote from: FreeGeezer on December 13, 2007, 12:57:53 PM
Quote from: snork13 on December 11, 2007, 11:01:02 PM
Quote from: FreeGeezer on December 11, 2007, 03:58:07 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Any help out there on this? I have checked all the files, multiple times, to insure that the modifications are there... and they are. I saw the tab and configuration fields in the admin section right after installing, but, after logging out and logging back in later, it was gone.

Does anyone have any insight into this?

can you attach your files modified, I'll take a look

Thank you snork13,
I really appreciate your offer. This thing is really baffling me. Of course, I'm an old geezer that can't get COBOL out of his head.  ;)

I've attached all the files involved in a zip file, called "modifiedfiles.zip", and a screenshot of the error log, rightly called "errorlog.jpg".

I really look forward the hearing what you find.

Thanks again,
Roy
http://odbhosting.net/forums/



make sure you did this....





<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),]]></search>
<add><![CDATA[
'paypal' => array('Paypal.php', 'Paypal'),]]></add>
</operation>

</file>




it looks like you may have missed this modification...






<file name="$themedir/languages/ModSettings.english.php">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';
]]></search>
<add><![CDATA[
$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';
]]></add>
</operation>
</file>

Title: Re: PaypalDonations
Post by: FreeGeezer on December 14, 2007, 02:33:44 PM
Quote from: snork13 on December 14, 2007, 08:41:13 AM
Quote from: FreeGeezer on December 13, 2007, 12:57:53 PM
Quote from: snork13 on December 11, 2007, 11:01:02 PM
Quote from: FreeGeezer on December 11, 2007, 03:58:07 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

Any help out there on this? I have checked all the files, multiple times, to insure that the modifications are there... and they are. I saw the tab and configuration fields in the admin section right after installing, but, after logging out and logging back in later, it was gone.

Does anyone have any insight into this?

can you attach your files modified, I'll take a look

Thank you snork13,
I really appreciate your offer. This thing is really baffling me. Of course, I'm an old geezer that can't get COBOL out of his head.  ;)

I've attached all the files involved in a zip file, called "modifiedfiles.zip", and a screenshot of the error log, rightly called "errorlog.jpg".

I really look forward the hearing what you find.


make sure you did this....





<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA[
'membergroups' => array('ManageMembergroups.php', 'ModifyMembergroups'),]]></search>
<add><![CDATA[
'paypal' => array('Paypal.php', 'Paypal'),]]></add>
</operation>

</file>




it looks like you may have missed this modification...






<file name="$themedir/languages/ModSettings.english.php">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';
]]></search>
<add><![CDATA[
$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';
]]></add>
</operation>
</file>



Thank you Snork13,
I checked the file on the server and those modifications are in place. I'm concerned with the error log message that says:
Quote
http://odbhosting.net/forums/index.php?action=featuresettings
Apply Filter: Only show the errors with the same message
8: Undefined index: payPalFO
File: /home/freegeez/public_html/odbhosting/forums/Sources/ModSettings.php Line: 151

That line is: 'title' => $txt['payPalFO'], near the bottom in:

loadLanguage('CustomProfile');
// Load up all the tabs...
$context['admin_tabs'] = array(
'title' => &$txt['modSettings_title'],
'help' => 'modsettings',
'description' => $txt['smf3'],
'tabs' => array(
'basic' => array(
'title' => $txt['mods_cat_features'],
'href' => $scripturl . '?action=featuresettings;sa=basic;sesc=' . $context['session_id'],
),
'layout' => array(
'title' => $txt['mods_cat_layout'],
'href' => $scripturl . '?action=featuresettings;sa=layout;sesc=' . $context['session_id'],
),
'profile' => array(
'title' => $txt['cp_cpfields'],
'href' => $scripturl . '?action=featuresettings;sa=profile;sesc=' . $context['session_id'],
),
'karma' => array(
'title' => $txt['smf293'],
'href' => $scripturl . '?action=featuresettings;sa=karma;sesc=' . $context['session_id'],
),
'paypal' => array(
'title' => $txt['payPalFO'],
'href' => $scripturl . '?action=featuresettings;sa=paypal;sesc=' . $context['session_id'],
'is_last' => true,
),
),
);


Do you suppose that the loadLanguage('CustomProfile'); might have something to do with the problem?


Thanks again,
Roy
http://odbhosting.net/forums/


Title: Re: PaypalDonations
Post by: snork13 on December 14, 2007, 02:47:39 PM
error message = your missing the language strings in ModSettings.english.php

$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';

try commenting out the custom profile, I don't know that mod

loadLanguage('CustomProfile');

//loadLanguage('CustomProfile');
Title: Re: PaypalDonations
Post by: FreeGeezer on December 14, 2007, 03:09:00 PM
Quote from: snork13 on December 14, 2007, 02:47:39 PM
error message = your missing the language strings in ModSettings.english.php

$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';

try commenting out the custom profile, I don't know that mod

loadLanguage('CustomProfile');

//loadLanguage('CustomProfile');

Actually, I'm not missing those settings. Here they are, in context, right off the server:

$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';

$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';

$txt['caching_information'] = ...


My concern with "loadLanguage('CustomProfile');" is that it also defines $txt[] and, of course there is no $txt[payPalFO] in that array. If I comment it out, I would assume that I'll get an error when I try to do anything with the Custom Profile Fields. How can I make them compatable?

I will try commenting it out, as a test, a later today. I have to run out right now. Both of those mods are important to me.

Thanks,
Roy
http://odbhosting.net/forums/
Title: Re: PaypalDonations
Post by: FreeGeezer on December 15, 2007, 02:17:42 PM
Quote from: FreeGeezer on December 14, 2007, 03:09:00 PM
Quote from: snork13 on December 14, 2007, 02:47:39 PM
error message = your missing the language strings in ModSettings.english.php

$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';

try commenting out the custom profile, I don't know that mod

loadLanguage('CustomProfile');

//loadLanguage('CustomProfile');

Actually, I'm not missing those settings. Here they are, in context, right off the server:

$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';

$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';

$txt['caching_information'] = ...


My concern with "loadLanguage('CustomProfile');" is that it also defines $txt[] and, of course there is no $txt[payPalFO] in that array. If I comment it out, I would assume that I'll get an error when I try to do anything with the Custom Profile Fields. How can I make them compatable?

I will try commenting it out, as a test, a later today. I have to run out right now. Both of those mods are important to me.

OK, I commented out the "loadLanguage('CustomProfile');" and, as I suspected, I got an invalid index error from the Custom Profile Fields mod. And... I still got the invalid index error on $txt['payPalFO'] as before. So, it doesn't appear that loading the CustomProfile language file is not interfering with the variables in the ModSettings.english.php file.

I'm really baffled by this. I have checked and rechecked the modifications, dumpling has checked them for me, and snork13 has checked them. Nothing has been found but, I'm still getting this invalid index error on $txt['payPalFO'] and no PayPal Donations appears on the "admin" Features and Options screen.

Thanks,
Roy
ODB Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: snork13 on December 16, 2007, 11:19:23 AM
I would be happy to look around, contact me via pm.

-snork13
Title: Re: PaypalDonations
Post by: FotoZone on December 16, 2007, 11:37:19 AM
Quote from: snork13 on February 06, 2006, 11:36:58 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=273)

A Paypal Merchant account is required, for more information visit: https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside (https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside)
Paypal generates the html form code you will need for one of the textareas, the other textarea is for maybe a reason why the members should donate, or get fancy like the examples on the Paypal site.

This mod will add a "Donate" link in the top menu, which will take you to your static Paypal Donation page.
On the admin side, under "current theme" you have two textareas for entering the Paypal info.

Special thanks to Bloc for the textarea code ;)

Tested on 1.1RC2 fresh install.

Version 1.2 - added permissions setting and an error in the language








this mod in spanish utf8 ?
Title: Re: PaypalDonations
Post by: snork13 on December 16, 2007, 03:31:10 PM
Quote from: FotoZone on December 16, 2007, 11:37:19 AM
Quote from: snork13 on February 06, 2006, 11:36:58 PM
Link to Mod (http://mods.simplemachines.org/index.php?mod=273)

A Paypal Merchant account is required, for more information visit: https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside (https://www.paypal.com/cgi-bin/webscr?cmd=p/xcl/rec/donate-intro-outside)
Paypal generates the html form code you will need for one of the textareas, the other textarea is for maybe a reason why the members should donate, or get fancy like the examples on the Paypal site.

This mod will add a "Donate" link in the top menu, which will take you to your static Paypal Donation page.
On the admin side, under "current theme" you have two textareas for entering the Paypal info.

Special thanks to Bloc for the textarea code ;)

Tested on 1.1RC2 fresh install.

Version 1.2 - added permissions setting and an error in the language








this mod in spanish utf8 ?

no just default/english
Title: Re: PaypalDonations
Post by: glennk on December 18, 2007, 11:43:50 AM
I get this,

3.     Execute Modification     ./Sources/ModSettings.php     Test failed

Is there any way around this ?
Title: Re: PaypalDonations
Post by: Bigguy on December 18, 2007, 12:33:51 PM
This is more than likely another mod conflicting with this one. You could try to uninstall a couple mods and see if it installs then. If not then coding that file manually is about the only way around it.
Title: Re: PaypalDonations
Post by: glennk on December 18, 2007, 12:42:56 PM
Yes sadly this seems to happen to me a lot lately. I have a lot of mods installed. Any suggestions what to uninstall or should I just try any  ?

With regard to coding it ? how easy is that. I cant do php but would be able to add code to files if someone told me what and where ?

Thanks - Glenn
Title: Re: PaypalDonations
Post by: Goodman854 on December 19, 2007, 06:04:05 PM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

Ok to go ahead?
Title: Re: PaypalDonations
Post by: peterpan72 on December 19, 2007, 09:20:04 PM
When I try to use this mod on my SMF 1.1.4 i get this message, any ideas???

3. Execute Modification ./Sources/ModSettings.php Test failed
Title: Re: PaypalDonations
Post by: Goodman854 on December 20, 2007, 03:51:38 PM
Same as me!
Title: Re: PaypalDonations
Post by: FreeGeezer on December 21, 2007, 03:26:39 PM
Quote from: FreeGeezer on December 06, 2007, 07:06:55 PM
What the ....? I thought I finally got the PayPal Donations mod installed. I had to modify ModSettings.php manually because I have the Custom Profiles mod installed.

First, I installed from the Package Manager and, of course, ModSettings.php showed as "Test Failed". Secondly, I uploaded the manually modified ModSettings.php. I then logged out of the forums, and restarted everything. I went to the "Admin" panel, "Features and Options". Viola!!! There was the tab labeled "Donations"!!!! I clicked on the tab and there were the "enable" flag and the 2 text fields. I thought, Great! I'm on my way!

But, I logged out to get some lunch, then got my PayPal to get my HTML code snippet and lined up my reason spiel text. Logged back on, and it's all gone????

I went to the file manager in my hosting account and viewed every file to make sure the modifications were still there. Yup! They were there! Then I checked the database settings table and, yes, the PayPal settings were there.

I don't know where else to check. Does anyone have any ideas?

I continue to work on this and it keeps getting stranger and stranger. I installed a test forum on an XAMPP server is have. Then I installed all my mods on the test forum and everything works perfectly. I installed PayPal Donations first, them Additional Membergroups on Profile and, finally, Custom Profile Fields. No conflicts or anything, it went smooth as glass.

So, I uninstalled everything on my Hostgator server, followed by a reinstall of the mods in the sequence above. Again, it went smooth as glass. However, the PayPal Donations mod continues to not show up anywhere, except in the Admin/Packages area, where it shows as being installed.

My Hostgator server is running Apache 1.3.37 (Unix) with PHP 4.4.4. The XAMPP server is running Apache 2 with PHP 5.2.4 on Windows XP.

Could there be something that is PHP 5 dependent, or something like that?

Thanks for any help that anyone can offer.
Roy
ODB Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2007, 03:28:34 PM
When I logged in with the test account you gave me it work great. Are you using the default theme?
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2007, 03:30:55 PM
I can tell right now that the change to index.php have not been done. Can you check that file
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2007, 03:32:42 PM
Quote from: goodman854 on December 19, 2007, 06:04:05 PM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

Ok to go ahead?
Quote from: NoDrAmaUk on December 19, 2007, 09:20:04 PM
When I try to use this mod on my SMF 1.1.4 i get this message, any ideas???

3. Execute Modification ./Sources/ModSettings.php Test failed

yes, you will need to make those change manually. Another mod is in conflict with the code that will need to be changed.
Title: Re: PaypalDonations
Post by: FreeGeezer on December 21, 2007, 04:14:40 PM
Quote from: snork13 on December 21, 2007, 03:28:34 PM
When I logged in with the test account you gave me it work great. Are you using the default theme?

Yes, I am using the default theme. In fact, I have it set so as all members have to use the default theme.

Are you saying that when you logged into my forum on my server, at http://www.odbhosting.net/forums, it worked great? If so, that makes things stranger yet! The PayPal Donations mods absolutely do not show up on my computer. I tried it on all 3 of my computers, and nada. One computer running Vista, the other 2 running XP Pro, all were tried with both IE 7 and Firefox 2.

Does anyone know if I can install a fresh copy of SMF on my server and maintain all the data that's in the database? Maybe that's the solution.

Thanks,
Roy
ODB Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2007, 04:27:18 PM
Quote from: FreeGeezer on December 21, 2007, 04:14:40 PM
Quote from: snork13 on December 21, 2007, 03:28:34 PM
When I logged in with the test account you gave me it work great. Are you using the default theme?

Yes, I am using the default theme. In fact, I have it set so as all members have to use the default theme.

Are you saying that when you logged into my forum on my server, at http://www.odbhosting.net/forums, it worked great? If so, that makes things stranger yet! The PayPal Donations mods absolutely do not show up on my computer. I tried it on all 3 of my computers, and nada. One computer running Vista, the other 2 running XP Pro, all were tried with both IE 7 and Firefox 2.

Does anyone know if I can install a fresh copy of SMF on my server and maintain all the data that's in the database? Maybe that's the solution.

Thanks,
Roy
ODB Forums (http://odbhosting.net/forums/)

Yes, before you removed the mod it work just fine for me. you shouldn't need to re-install the forum. You just need to make the changes in index.php.
Title: Re: PaypalDonations
Post by: FreeGeezer on December 21, 2007, 04:51:31 PM
Quote from: snork13 on December 21, 2007, 04:27:18 PM
Quote from: FreeGeezer on December 21, 2007, 04:14:40 PM
Quote from: snork13 on December 21, 2007, 03:28:34 PM
When I logged in with the test account you gave me it work great. Are you using the default theme?
Yes, I am using the default theme. In fact, I have it set so as all members have to use the default theme.

Are you saying that when you logged into my forum on my server, at http://www.odbhosting.net/forums, it worked great? If so, that makes things stranger yet! The PayPal Donations mods absolutely do not show up on my computer. I tried it on all 3 of my computers, and nada. One computer running Vista, the other 2 running XP Pro, all were tried with both IE 7 and Firefox 2.

Does anyone know if I can install a fresh copy of SMF on my server and maintain all the data that's in the database? Maybe that's the solution.

Yes, before you removed the mod it work just fine for me. you shouldn't need to re-install the forum. You just need to make the changes in index.php.

Sorry, I didn't realize you were talking to me on that post. I have just made, and tested, the change to index.php and am still coming up with the same results. No PayPal Donations showing up anywhere.

Still getting the attached error


Thanks,
Roy
ODB Forums (http://odbhosting.net/forums/)
Title: Re: PaypalDonations
Post by: glennk on December 21, 2007, 05:52:51 PM
QuoteQuote from: NoDrAmaUk on December 19, 2007, 09:20:04 PM
When I try to use this mod on my SMF 1.1.4 i get this message, any ideas???

3. Execute Modification ./Sources/ModSettings.php Test failed

yes, you will need to make those change manually. Another mod is in conflict with the code that will need to be changed.

How would I do this ?
Title: Re: PaypalDonations
Post by: Goodman854 on December 21, 2007, 11:22:54 PM
Quote from: snork13 on December 21, 2007, 03:32:42 PM
Quote from: goodman854 on December 19, 2007, 06:04:05 PM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

Ok to go ahead?
Quote from: NoDrAmaUk on December 19, 2007, 09:20:04 PM
When I try to use this mod on my SMF 1.1.4 i get this message, any ideas???

3. Execute Modification ./Sources/ModSettings.php Test failed

yes, you will need to make those change manually. Another mod is in conflict with the code that will need to be changed.
What changes do I make?
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2007, 11:39:31 PM
Quote from: glennk on December 21, 2007, 05:52:51 PM
QuoteQuote from: NoDrAmaUk on December 19, 2007, 09:20:04 PM
When I try to use this mod on my SMF 1.1.4 i get this message, any ideas???

3. Execute Modification ./Sources/ModSettings.php Test failed

yes, you will need to make those change manually. Another mod is in conflict with the code that will need to be changed.

How would I do this ?

this may help

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: Troy Wingate on January 06, 2008, 01:15:52 AM
When I try to install this mod, I get this

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php    
9.    Extract File    ./Sources/Paypal.php    
10.    Execute Code    add_settings.php

What is the problem? My website is www.portadelaideproud.com if you wanna check it out to see if any other links would be the cause of the problem.
Title: Re: PaypalDonations
Post by: ferrel2520 on January 10, 2008, 07:33:16 PM
Hello

I'm getting the same error and been through the code but as I'm an expert I can't find what's wrong.

Any ideias?

1.     Execute Modification     ./index.php     Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
7.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
8.    Extract File    ./Themes/default/Paypal.template.php   
9.    Extract File    ./Sources/Paypal.php   
10.    Execute Code    add_settings.php
Title: Re: PaypalDonations
Post by: Bigguy on January 11, 2008, 01:29:25 PM
The failure is probably due to another mod altering the Modsettings.php file so this mod can't find the correct code to edit when it wants to install.
Title: Re: PaypalDonations
Post by: ferrel2520 on January 11, 2008, 05:04:05 PM
I've uninstalled some mods but still have this error.  &gt;:( &gt;:(
Title: Re: PaypalDonations
Post by: Pip2andahalf on February 02, 2008, 01:35:43 AM
Hey folks. I didn't read this ENTIRE thread, but I read a lot of it and didn't see (probably just missed) what I was looking for help on, so I'll post it here.

I use the babylon theme, and I want to use this mod. I have created a very nice looking matching button to use, but I have no idea how to:
1. Get the mod to work on this theme in the first place
2. Get the mod to use my button

I would GREATLY appreciate any help I can get. I'll upload my button momentarily and share it here in case anyone else wants to use it.

Thanks,

Pip

Edit: Here are my buttons.

One has the dollar sign Italic, one has it Italic and Bold. If someone wants, I can easily (5 minutes tops) make one without italic or bold. I just didn't like how it looked myself. Just PM me if you want me to do so. :)

Italic:

Italic & Bold:


Enjoy!
Title: Re: PaypalDonations
Post by: Pip2andahalf on February 04, 2008, 06:54:29 PM
Hey there mates. I posted this on the second, it's the fourth now. Just seeing if anyone was going to be able to help me with this.

Thanks!

P
Title: Re: PaypalDonations
Post by: Pip2andahalf on February 19, 2008, 05:53:28 PM
Bump? ;D Thanks! (Hope I'm not breaking rules by bumping this...)
Title: Re: PaypalDonations
Post by: snork13 on February 19, 2008, 10:55:42 PM
Quote from: Pip2andahalf on February 19, 2008, 05:53:28 PM
Bump? ;D Thanks! (Hope I'm not breaking rules by bumping this...)

You can apply the mod via the package manager to the default theme, source files. Then you will need to edit the other theme manually. Make a backup of all files, such as index.template.php in your babylon theme. As far as the menu, just look at one of the current buttons, copy it and edit the button for paypal donation link.

-snork13
Title: Re: PaypalDonations
Post by: Pip2andahalf on February 20, 2008, 01:11:20 AM
Quote from: snork13 on February 19, 2008, 10:55:42 PM
Quote from: Pip2andahalf on February 19, 2008, 05:53:28 PM
Bump? ;D Thanks! (Hope I'm not breaking rules by bumping this...)

You can apply the mod via the package manager to the default theme, source files. Then you will need to edit the other theme manually. Make a backup of all files, such as index.template.php in your babylon theme. As far as the menu, just look at one of the current buttons, copy it and edit the button for paypal donation link.

-snork13

Sweet! Thank you so much!!
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 10:14:19 AM
Okay, so I've been working for about a month trying to get the PayPalDonations mod package installed on my forum.  At first I was getting errors when I tried to install the package, and after researching a few things on this forum, I decided it was because I was running SMF 1.1.3.  Last night I successfully upgraded to 1.1.4, and I tried to install the PayPalDonations modification again, and this time, using the Package Manager, it installed successfully without any error messages.

However, I can't find any of the supposed features of this mod package (the donation button at the top menu and the added tab in "Features and Options" of the Admin section to input the Paypal generated code).  Help??  What am I missing?  Is there another step beyond installing the package in Package Manager to get this up and running?

(Note: this is the first package that I have run using package manager, and I'm pretty much a newbie to the forum admin world)
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 10:14:32 AM
Okay - a little more detail.  I uninstalled the PaypalDonations modification and installed the Treasury mod instead (even though that one is much more involved than what I'm wanting for my forum).  Again, it looked like the install was completely successful, but I could see none of the changes on my forum.  So, now I'm convinced that I'm just being stupid about these modifications and I'm missing a step somewhere.

Here are the steps I went through for PaypalDonations (since that's the one I'm really wanting to use):

1. In Package Manager in the Admin Panel, I uploaded the PaypalDonations v1.7 Zip file and got the following message:

QuotePackage uploaded successfully
Package has been downloaded successfully

PaypalDonations [ Apply Mod ] [ List Files ] 

[ Back ] 

2. In Browse Packages, I selected the option to "Apply Mod" for my PaypalDonations v1.7 Modification Package.  Here's the message I get:

QuoteInstall Actions
Installations actions for "PaypalDonations":

Installing this package will perform the following actions:
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test successful
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings.php

3. On that page, I selected "Install Now," and I get the following message:

QuoteExtracting
Extracting Package

The package was installed successfully. You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes. 


Yet, I see nothing, nada, not anything has changed in my forum!  *sighs*  Do I have to do something further with extracting the files from the zip file?  Moving them around in my directory?  When I look into where the files are located, after I upload the zip file, it's in the "Packages" folder on my directory...

I just have no clue what step I'm messing, as the final message after installing the modification makes it seem like the changes should already be in place...
Title: Re: PaypalDonations
Post by: uncleflip on February 25, 2008, 11:16:24 AM
If you're not using the default theme, some package elements may not install properly.  A good package developer will give you instructions on what to do in these cases.  If you don't have those, poke through the XML files to see what they're doing.  You may have to do some script element replacements manually if they're not doing it automatically.

Be well
-UF

callto://uncleflip
Title: Re: PaypalDonations
Post by: snork13 on February 25, 2008, 11:24:41 AM
I would ask in the modification thread. Maybe this could be moved, so I can help you out further.

-snork13
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 11:25:45 AM
Hi UncleFlip - thanks for the reply...

Unfortunately, that was also something I considered (as I have about 6 different themes available for use on my forum).  As the admin, I always use the SMF Default Theme - Core and then check any changes I make on the other themes as needed.

It just seems weird to me that neither of these mods (PaypalDonations or Treasury) seemed to work in my Default Theme (or any other theme for that matter).
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 11:27:07 AM
Hi snork13 - I'm amenable to this being moved to the modification thread...if it can be moved for me, great...otherwise, I can just repost it, too...

(btw, I assum you're talking about the sticky thread Having problems with the package manager? )
Title: Re: PaypalDonations
Post by: snork13 on February 25, 2008, 11:28:10 AM
Quote from: irishmyth84 on February 25, 2008, 11:27:07 AM
Hi snork13 - I'm amenable to this being moved to the modification thread...if it can be moved for me, great...otherwise, I can just repost it, too...

(btw, I assum you're talking about the sticky thread Having problems with the package manager? )

If you are still trying to get the my mod going....

http://www.simplemachines.org/community/index.php?topic=70046.0
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 11:29:15 AM
Oh, I didn't even see the Mods & Packages area...my bad.  Thanks for the link, I'll check it out.
Title: Re: PaypalDonations
Post by: snork13 on February 25, 2008, 11:33:53 AM
Quote from: irishmyth84 on February 25, 2008, 11:29:15 AM
Oh, I didn't even see the Mods & Packages area...my bad.  Thanks for the link, I'll check it out.

No problem, I'd be happy to help you there, so others can benefit as well. I need to head out to a client now, but should be back shortly.

-snork13
Title: Re: PaypalDonations
Post by: irishmyth84 on February 25, 2008, 04:08:06 PM
Thanks to whoever moved my questions to this thread.

So, it looks like FreeGeezer recently had the same problem as I (Reply #416), but sifting through the posts, I can't quite tell if there's been a resolution to this issue.  At the moment I've only been halfway doing a little bit of research the last few hours since I'm at work, but I should have some time later tonight to test anything and look through your response to FreeGeezer's posts more thoroughly.

Thanks in advance for the help.
Title: Re: PaypalDonations
Post by: irishmyth84 on February 26, 2008, 03:20:24 PM
Okay - I've made progress on this!!

Reading through the thread, I found TrueSatan's tip to change the forum language from English-Utf8 to English.  Easy enough - made the change...and voila!!!  The mod actually worked!  Imagine my euphoria - mod was great, easy to use, got my Paypal code in and clicked through to everything.  It's a great mod, Snork...

BUT -  >:( - I browsed away from my forum and logged back in...and it was gone...

Somehow it seems like the language setting isn't "sticking."  I have yet to see the mod when logging back into my forum....until I "resave" the language setting as English.


Here's the first of two screenshots (w/ my forum info. "blanked out" for security reasons).
When I log out of the forum, the donations button disappears.  I go into Server Settings and check the language - it's listed as "English" (which is what I changed it to on TrueSatan's advice)...
http://i9.photobucket.com/albums/a58/irishmyth84/ItsNotThere.jpg

Then I hit "Save" (even though I didn't change anything) and the mod is back again!
http://i9.photobucket.com/albums/a58/irishmyth84/NowYouSeeIt.jpg

I just can't get it to "stick" though.  Snork (or anyone) - do you have any tips or advice as to what might be causing the mod to appear when I resave my langauge settings but disappear every time I log out and log back into the forum?


**New update (which I discovered while typing this post):  I logged out of my forum as admin (when I couldn't see the Donations button) and logged back in using my regular member account (which I hardly ever use) - and there the button was!  Yet, my regular members can't see it.  Does this have something to do w/ cookies or cache or something?  How can I get it so that everyone can see this new mod?  All these members have been buggin' me for it and I thought I'd fixed it...and it even appears for my own member account...yet they can't see it.
Title: Re: PaypalDonations
Post by: irishmyth84 on February 26, 2008, 03:54:22 PM
Sorry if I seem a bit manic - I just want to figure this out!!  I was so close...*sighs*

Just a little bit more info.  I checked the error log, and this is what I'm getting:

Quote8: Undefined index: payPal
File: /home/penteco9/public_html/Themes/default/Admin.template.php (main_above sub template - eval?)
Line: 571
Title: Re: PaypalDonations
Post by: snork13 on February 26, 2008, 04:19:41 PM
You could add the language changes to the UTF8 file
Title: Re: PaypalDonations
Post by: irishmyth84 on February 26, 2008, 04:28:59 PM
i.e. overwrite the UTF8 file with the English file?
Title: Re: PaypalDonations
Post by: snork13 on February 26, 2008, 06:24:07 PM
No just add the line from the modification

Ill be home in a few hours and can give better how-to
Title: Re: PaypalDonations
Post by: irishmyth84 on February 27, 2008, 10:02:09 AM
If you could give more detailed instructions when you get a chance, that would be great.  I'm not sure which line from the modification you're talking about and which UTF8 file in the default theme I'd add it to (admin.english-utf8.php, index.english-utf8.php, etc...or all of them?)


btw (not sure how relevant it is), the Paypal error I'm getting in my log is occuring on Line 571 in all my templates...admin.template.php, boardindex.template.php, post.template.php...


Thanks so much for your help.

Title: Re: PaypalDonations
Post by: Illeana on March 03, 2008, 10:26:15 AM
I am getting this error when trying to install

Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed

the only mod i have installed is the custom profile field one i am using 1.1.4




Title: Re: PaypalDonations
Post by: fecu2008 on March 03, 2008, 04:50:12 PM
was reading through. Should I manually install this mod.  Im getting these errors. 

2. Execute Modification ./Sources/ManagePermissions.php Test failed
3. Execute Modification ./Sources/ModSettings.php Test failed
Title: Re: PaypalDonations
Post by: fecu2008 on March 04, 2008, 12:28:43 PM
Got this installed, great mod!! Have a question though.  When someone donates, will they know my name.  I have it said up under my email address, but when they make a payment will it show my name to them? 
Title: Re: PaypalDonations
Post by: snork13 on March 04, 2008, 12:57:23 PM
Quote from: fecu2008 on March 04, 2008, 12:28:43 PM
Got this installed, great mod!! Have a question though.  When someone donates, will they know my name.  I have it said up under my email address, but when they make a payment will it show my name to them? 

it would be however your paypal is setup, which you can change by logging into paypal.

-snork13
Title: Re: PaypalDonations
Post by: snork13 on March 04, 2008, 12:58:15 PM
Quote from: Illeana on March 03, 2008, 10:26:15 AM
I am getting this error when trying to install

Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed

the only mod i have installed is the custom profile field one i am using 1.1.4






You would need to make the changes to that file manually.
Title: Re: PaypalDonations
Post by: AHMER on March 06, 2008, 07:21:37 PM
mine is only working in the default theme its not working in the other theme i am using pirates plzz help
Title: Re: PaypalDonations
Post by: snork13 on March 07, 2008, 12:35:37 PM
Quote from: AHMER on March 06, 2008, 07:21:37 PM
mine is only working in the default theme its not working in the other theme i am using pirates plzz help

You will need to make the changes manually to your custom theme.

http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: labradors on March 10, 2008, 10:40:16 AM
Just wondering: why is a "PayPal merchant account" required?  As long as one is not accepting credit-card donations regularly, or going over the $500, monthly receiving limit, I cannot see the reasoning behind requiring a merchant account for this mod.
Title: Re: PaypalDonations
Post by: snork13 on March 10, 2008, 02:16:25 PM
Quote from: labradors on March 10, 2008, 10:40:16 AM
Just wondering: why is a "PayPal merchant account" required?  As long as one is not accepting credit-card donations regularly, or going over the $500, monthly receiving limit, I cannot see the reasoning behind requiring a merchant account for this mod.

When I made the mod over 2 years ago, paypal required a merchant account to use the Create Buttons feature for the payment gateway. It is one of many Merchant Services. If you don't need a merchant account, awesome. Just like to say some may receive over $500 a month or wish to accept CC donations.

-snork13
Title: Re: PaypalDonations
Post by: labradors on March 10, 2008, 02:24:22 PM
Great!  Thank you for your quick response.

Another mod I had considered was Treasury, but it turns out that it requires a Premier or Business account, since it uses IPN, which is only available to those types of accounts.  Thus, unless this mod requires IPN (or other such features that Personal accounts cannot use), it appears that it should work fine for my purposes.

Thanks again!
Title: Re: PaypalDonations
Post by: LiamTheDuck on March 10, 2008, 04:07:37 PM
Any chance of upgrading to 2.0?
Title: Re: PaypalDonations
Post by: snork13 on March 10, 2008, 04:13:54 PM
You mean for SMF 2.0
If so I already did just need to release it I am in the process of updating my package server
Title: Re: PaypalDonations
Post by: LiamTheDuck on March 10, 2008, 04:22:51 PM
Ok thanks
Title: Re: PaypalDonations
Post by: Taurusguy on March 11, 2008, 05:50:13 PM
Hi ... i plugged this mod in .. but im not sure where it went ... i cant see the donate button in the theme i am using but i can however see it when i look in default. How do i get the donation button to appear in my theme??

I am using the helios_mult11final theme.

I also dont know what code it REQs from paypal for the HTML code in the text area ... do i use the generated button code for donations that paypal issues?? or some other code?? Please help if you can.

Thanks
Title: Re: PaypalDonations
Post by: labradors on March 11, 2008, 06:49:04 PM
Quote from: Taurusguy on March 11, 2008, 05:50:13 PM
... i cant see the donate button in the theme i am using

I had the same problem until I read the instructions at the link in snork13's signature (Installing mods on custom themes (http://docs.simplemachines.org/index.php?topic=402)).  Once I examined the "modification.xml" file, and compared it to what I actually had, I discovered I needed to change some of my files manually.  After I did that, it worked fine.
Title: Re: PaypalDonations
Post by: Taurusguy on March 11, 2008, 06:59:08 PM
I see .. but im having a hard time even understanding that . i have looked at it .. and its still very confusing :( .... *pulls hair out lol*
Title: Re: PaypalDonations
Post by: labradors on March 11, 2008, 10:52:44 PM
Well, I can't offer this to EVERYone, but since I just did this same thing, myself, and it's fresh in my mind, I'd be willing to modify the files for you.  Reply to this message and, at the bottom of the form, you'll see "Additional Options."  Click there, and you'll find a way to attach files to the message.  If, for some reason, that doesn't work, host the files at MediaFire (http://www.mediafire.com/) and post the links here.

The files I'll need to see are:

Your forum's index.php file
Sources/ManagePermissions.php
Sources/ModSettings.php
Themes/yourthemename/index.template.php
Themes/yourthemename/languages/Modifications.english.php
Themes/yourthemename/languages/ModSettings.english.php
Themes/yourthemename/languages/Who.english.php

Not ALL of those will, necessarily have to be changed, since most of them probably have been.  Only the ones that don't contain the mod's code, already, will need to be changed.

If any of the "Themes/..." files are not present within the directory for YOUR theme, then attach the corresponding file from the "default" theme directory, instead.  Those probably won't need changing, but we have to be sure all the changes listed in this mod's "modifications.xml" file have been implemented.
Title: Re: PaypalDonations
Post by: snork13 on March 21, 2008, 10:30:30 PM
Quote from: gordon7 on March 21, 2008, 03:26:17 PM
I just installed this mod and im unable to see the donation link in the top menu. I am currently using the SMF default theme - core. During installation I received no errors and I don't see any errors in the forum error log area.

Other mods installed:

Ad Management 2.3 - Having issues similar to PayPal Donations mod - installed but not displaying.
SMF Gallery lite 1.8.2 - Works perfectly

Thanks

Did you enable the mod in the admin area?

-snork13
Title: Re: PaypalDonations
Post by: snork13 on March 22, 2008, 01:22:13 PM
Quote from: gordon7 on March 22, 2008, 08:02:14 AM
I see no link to do this  :(

It should be near karma, layout. you should see donation.

You can check the Modsettings file in the source directory for


'paypal' => 'ModifypayPalSettings',
Title: Re: PaypalDonations
Post by: icon on April 19, 2008, 11:49:42 PM
thank you very much!!   O:)
Title: Re: PaypalDonations
Post by: razorblitz07 on April 21, 2008, 02:21:59 PM
is there a way to enhance it so that it can show a panel where it shows the Donation Goal?

Like in the panel, it shows:

Goal amount for this month: 75 USD, Received: 35 USD (47%) (percent bar here)     Donate Now

Title: Re: PaypalDonations
Post by: assam_siddibapa on April 24, 2008, 08:27:42 AM
I get this error ......... need help .......

3.   Execute Modification   ./Sources/ModSettings.php   Test failed


Thanks in advance
Title: Re: PaypalDonations
Post by: HaTcH on April 28, 2008, 08:18:52 AM
Any news about a SMF 2.0-compatible package ?
Title: Re: PaypalDonations
Post by: Bec on May 15, 2008, 06:49:59 AM
just wondering if it could be updated to work on 1.15?

Cheers!
Title: Re: PaypalDonations
Post by: Matthew Schenker on June 08, 2008, 08:53:45 AM
Quote from: Bec on May 15, 2008, 06:49:59 AM
just wondering if it could be updated to work on 1.15?

Yes, me too!  I was using the Treasury modification, but the newest version eliminates the option for members to choose an "other" donation amount.  About half my supporters choose their own donation amounts, which means the latest version of the treasury system is ineffective for my forum.

I'd like to install the Donation modification to my forum, which runs on 1.1.5.

Thanks,
Matt
Title: Re: PaypalDonations
Post by: damo1981 on June 16, 2008, 05:11:00 PM
Hi there Snork is there any news on the Donation package for SMF 2.0, thanks Damo1981
Title: Re: PaypalDonations
Post by: blondeamon on June 22, 2008, 06:31:11 PM
Quote from: razorblitz07 on April 21, 2008, 02:21:59 PM
is there a way to enhance it so that it can show a panel where it shows the Donation Goal?

Like in the panel, it shows:

Goal amount for this month: 75 USD, Received: 35 USD (47%) (percent bar here)     Donate Now



Perfect suggestion! I wanted that too for a long time. Let us know if ti can be done.
Title: Re: PaypalDonations
Post by: Bec on June 24, 2008, 03:51:29 AM
Quote from: Bec on May 15, 2008, 06:49:59 AM
just wondering if it could be updated to work on 1.15?

Cheers!

Updates please?!?
Title: Re: PaypalDonations
Post by: CocoLion on July 24, 2008, 02:49:05 AM
My version of SMF is 1.5. The mod doesn't work for me. What version do I have to have?
Title: Re: PaypalDonations
Post by: kamonbishop on August 07, 2008, 10:03:03 AM
Getting this error. Maybe because I'm using 1.5.

Quote from: Kamonbishop's ErrorThe package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: PaypalDonations
Post by: Bec on August 08, 2008, 04:57:14 AM
Ive got a great solution for anyone having problems and its one less mod to have running on your site:-

You can create a paypal donation page by using their code. To get your code for a donation button, follow the instructions.
1.) Login to your merchant paypal account.
2.) Click on "Merchant Services" button.
3.) Scroll down to "Create Buttons" and click on "Donate".
4.) Fill out the form and your done.
Title: Re: PaypalDonations
Post by: learjet45 on August 17, 2008, 05:05:28 PM
I too would like a version compatible with 1.1.5. I could really use this feature and this is the best way for me to do it at this point in time.
Title: Re: PaypalDonations
Post by: KirkhamsEbooks on August 18, 2008, 06:08:31 PM
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

1.1.5
Title: Re: PaypalDonations
Post by: mrnifty on August 18, 2008, 09:42:22 PM
Sounds like a great mod. Wish it was available for smf 2.0
Title: Re: PaypalDonations
Post by: linette97 on August 27, 2008, 09:51:47 PM
Yea same here... using 1.15
I would like to try Bec's Suggestion for now.. But where do I place the generated code from paypal.. I've done this on a site I had before but this forum code thing is way different then HTML... Please Advise..


BEC
Quote
Ive got a great solution for anyone having problems and its one less mod to have running on your site:-

You can create a paypal donation page by using their code. To get your code for a donation button, follow the instructions.
1.) Login to your merchant paypal account.
2.) Click on "Merchant Services" button.
3.) Scroll down to "Create Buttons" and click on "Donate".
4.) Fill out the form and your done.
Title: Re: PaypalDonations
Post by: bullbreedluverz on August 28, 2008, 04:37:34 PM
i use the merchant button method on my site, using SMF 1.1.5, for merchandise and use the global headers and footers mod, that i use anyway for other things, to paste the HTML code in for the paypal button - it saves having to place it in the template if you arent comfortable with messing with the template

it will align left so i use a <p align="center"> in the code to centre it and it can be placed at the bottom or under the header and will appear on everypage

if you do want it centred place the <p align="center"> in the middle of the HTML code before;

<input type="image" src="https://www.paypal.com.........etc etc
Title: Re: PaypalDonations
Post by: Bec on September 05, 2008, 02:46:27 AM
Quote from: linette97 on August 27, 2008, 09:51:47 PM
Yea same here... using 1.15
I would like to try Bec's Suggestion for now.. But where do I place the generated code from paypal.. I've done this on a site I had before but this forum code thing is way different then HTML... Please Advise..


BEC
Quote
Ive got a great solution for anyone having problems and its one less mod to have running on your site:-

You can create a paypal donation page by using their code. To get your code for a donation button, follow the instructions.
1.) Login to your merchant paypal account.
2.) Click on "Merchant Services" button.
3.) Scroll down to "Create Buttons" and click on "Donate".
4.) Fill out the form and your done.

linette97 I have mine setup in an article, you can check it out here

http://www.bu-community.com/index.php?page=SupportUs

if you want it off your front page just put it in a html block
Title: Re: PaypalDonations
Post by: crotalusco on December 28, 2008, 07:34:59 PM
Well I wanted to uninstall this. There wasnt an uninstall button in my package manage and made the mistake of just trying to delete it.

Can you please tell me how i can now remove it from this server and my others as well that dont list an uninstall button
Title: Re: PaypalDonations
Post by: learjet45 on December 29, 2008, 04:39:10 PM
My best guess would be to use the manual install instructions, but backwards (like delete what it adds).
Title: Re: PaypalDonations
Post by: snork13 on January 19, 2009, 07:23:44 PM
I updated the mod for 2.0 beta 4 only, and will work on the 1.1.7 version very soon. meanwhile, if anyone running 2.0 beta 4 wished to test this version out that would be great. i attached it to this post. please make a backup first just to be safe...

-snork13
Title: Re: PaypalDonations
Post by: jessyx on February 26, 2009, 03:03:33 PM
I have a problem with the newest version of this mod.
When installed under SMF 1.1.8 with the default theme, there are no issues.
When I change the theme, I cannot access the "donate" button/link area.
I am attempting to figure out how to fix this, but I really am not good with PHP.  My area of expertise is in C# and ASP.NET - so this side of the house is hard for me.
Title: Re: PaypalDonations
Post by: learjet45 on February 26, 2009, 05:42:24 PM
if you attach the index.template.php file for the theme you are using, myself or another person should be able to take care of it for you.
Title: Re: PaypalDonations
Post by: richard68 on March 02, 2009, 09:40:33 PM
Installed without issue or error but I do not see the donations tab under Admin -> Features and Options.  After installation is did say it successfully installed and provided a link to the configuration page.  When I clicked on the link it brought me to a page with a checkbox and two text boxes but the tab name was blank and there was not text next to the checkbox or the text boxes.  Running SMF 1.1.8 default theme, with SimplePortal 2.1.1 and RSS Feed Icon 1.1
Title: Re: PaypalDonations
Post by: 2012 on March 18, 2009, 08:41:18 AM
 Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php
Title: Re: PaypalDonations
Post by: snork13 on March 18, 2009, 07:39:46 PM
Quote from: 2012 on March 18, 2009, 08:41:18 AM
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php


chances are it trying to modify something that another mod already modified, you can edit that file manually.


-snork13
Title: Re: PaypalDonations
Post by: 2012 on March 24, 2009, 02:47:39 PM
Quote from: snork13 on March 18, 2009, 07:39:46 PM
Quote from: 2012 on March 18, 2009, 08:41:18 AM
3. Execute Modification ./Sources/ModSettings.php Test failed

chances are it trying to modify something that another mod already modified, you can edit that file manually.
-snork13

Could you explain how this is done?

Thanks!
Title: Re: PaypalDonations
Post by: JeepneyDriver on March 24, 2009, 11:57:56 PM
I have the same problem with this mod and I am wondering if this is a viable alternative method to add this mod.

I was thinking that it may be okay to edit the modification_1_1_x.xml file and remove all references to the Modsettings.php file between the

<file name=". . . Modsettings.php">
.
.
.
</file

and then install from the package manager. Once that is done I would manually edit the required changes in the Modsettings.php file, making a backup copy first.

That way there is less manual editing required and the other files would be backed up in the process.

OR

Should all the affected files be edited and backed up manually?

Hope that makes sense. :)

Edit... forgot to say that I'm runnig 1.1.8 and correct a typo.
Title: Re: PaypalDonations
Post by: snork13 on March 25, 2009, 04:24:16 PM
Quote from: JeepneyDriver on March 24, 2009, 11:57:56 PM
I have the same problem with this mod and I am wondering if this is a viable alternative method to add this mod.

I was thinking that it may be okay to edit the modification_1_1_x.xml file and remove all references to the Modsettings.php file between the

<file name=". . . Modsettings.php">
.
.
.
</file

and then install from the package manager. Once that is done I would manually edit the required changes in the Modsettings.php file, making a backup copy first.

That way there is less manual editing required and the other files would be backed up in the process.

OR

Should all the affected files be edited and backed up manually?

Hope that makes sense. :)

Edit... forgot to say that I'm runnig 1.1.8 and correct a typo.

you can still run via package manager and then edit the one file by hand

-snork13
Title: Re: PaypalDonations
Post by: JeepneyDriver on March 25, 2009, 08:41:09 PM
Quote from: snork13 on March 25, 2009, 04:24:16 PM
Quote from: JeepneyDriver on March 24, 2009, 11:57:56 PM
I have the same problem with this mod and I am wondering if this is a viable alternative method to add this mod.
.
. <snipped>
.
Hope that makes sense. :)

Edit... forgot to say that I'm runnig 1.1.8 and correct a typo.

you can still run via package manager and then edit the one file by hand

-snork13

Thanks. I did as you suggested. As I was editing the file I discoverd that a portion of the Modesttings.php file was modified by the package manager and all I had to do for that part was verify that it was okay.

Thanks for the help. :)

Title: Re: PaypalDonations
Post by: hellboy78 on March 26, 2009, 05:13:43 AM
I'm trying to istall this mod, but I receive this message

what can I do?
Title: Re: PaypalDonations
Post by: JeepneyDriver on March 26, 2009, 11:16:30 PM
Quote from: hellboy78 on March 26, 2009, 05:13:43 AM
I'm trying to istall this mod, but I receive this message

what can I do?

The answer to your question is found in the 6 messages immediately before your post. :)
Title: Re: PaypalDonations
Post by: hellboy78 on March 27, 2009, 06:05:22 AM
ops

thank you
Title: Re: PaypalDonations
Post by: Uhura! on March 29, 2009, 05:23:54 PM
I love this mod - just one prob:

When I try to access Features & Options in the Admin Area of my forum, I get this error:
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/ourmo0/public_html/community/Sources/ModSettings.php:289) in /home/ourmo0/public_html/community/Sources/ModSettings.php on line 347

Please help!
Title: Re: PaypalDonations
Post by: Uhura! on March 29, 2009, 05:34:28 PM
BTW - I am using 1.1.8

And here are the test errors:

2.     Execute Modification     ./Sources/ManagePermissions.php     Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test failed


I uninstalled & still have 2 donations tabs. Still cannot access my Features & Options!

Any assistance would be greatly appreciated...Thx!
Title: Re: PaypalDonations
Post by: Electro-X- on March 30, 2009, 01:08:43 AM
Can you please look at my site - codeiso.com

the donate button doesnt look too good...How to change it.

otherwise, nice one, i'm using 2.0RC1 and the functions went well so far.
Title: Re: PaypalDonations
Post by: Uhura! on March 30, 2009, 08:37:02 PM
Can't see it.

Do I have to join to view the donate button?
Title: Re: PaypalDonations
Post by: Electro-X- on March 31, 2009, 12:02:26 AM
As far as remember i didnt allow guest to view it tho...wait i'll allow it. Or care to join?:p
Title: Re: PaypalDonations
Post by: davemate on April 13, 2009, 12:31:56 PM
Fatal error: Cannot redeclare modifypaypalsettings() (previously declared in /home/a7857471/public_html/forum/Sources/ModSettings.php:343) in /home/a7857471/public_html/forum/Sources/ModSettings.php on line 392

happens when i click Features and Options
Title: Re: PaypalDonations
Post by: Kindred on April 14, 2009, 09:09:01 PM
you have installed the mod twice...  you will have to manually remove the duplicate code(s)
Title: Re: PaypalDonations
Post by: `MaCe^ on April 19, 2009, 06:06:36 PM
3.     Execute Modification     ./Sources/ModSettings.php     Test failed

?????????????????????
i am using 1.1.8 version
Title: Re: PaypalDonations
Post by: Chas Large on May 13, 2009, 03:28:20 PM
Hi,

Tried to install the mod but got a FATAL ERROR so did not continue. See attached.

Have some other mods installed. See attached.

Am running 1.1.8.

Can you give me an idea of what to look for in the files indicated in the error.

Many Thanks

Chas
Title: Re: PaypalDonations
Post by: ATICE on May 24, 2009, 09:09:01 PM
Will this be compatible for 2.0 RC1-1 anytime soon?
Title: Re: PaypalDonations
Post by: snork13 on May 26, 2009, 09:06:13 AM
Quote from: ATICE on May 24, 2009, 09:09:01 PM
Will this be compatible for 2.0 RC1-1 anytime soon?

you can emulate when applying the package or change the install xml for your current version. I hope to update all mods soon.

-snork13
Title: Re: PaypalDonations
Post by: Chas Large on May 26, 2009, 10:03:03 AM
Snork, any idea about the error I encountered please?

Chas
Title: Re: PaypalDonations
Post by: snork13 on May 26, 2009, 10:19:13 AM
Quote from: Chas_Large on May 26, 2009, 10:03:03 AM
Snork, any idea about the error I encountered please?

Chas

yes, the modification xml is looking for code that needs to be change and not finding it, I would guess another mod has changed the code already. I would suggest manually editing the files. Make a backup first of the files.

-snork13
Title: Re: PaypalDonations
Post by: Chas Large on May 26, 2009, 10:31:43 AM
Quote from: snork13 on May 26, 2009, 10:19:13 AM
Quote from: Chas_Large on May 26, 2009, 10:03:03 AM
Snork, any idea about the error I encountered please?

Chas

yes, the modification xml is looking for code that needs to be change and not finding it, I would guess another mod has changed the code already. I would suggest manually editing the files. Make a backup first of the files.

-snork13
OK, thanks for that pointer. I guess the files that need editing manually will the the two mentioned in the failure notice?

I've looked at the code changes and they seem simple enough, I don't understand however the purpose of add_settings_1_1_x.php. Do I run this after I've edited the code and what does it do.

Sorry, but I'm a newbie at doing manual mods to this forum software.

Chas
Title: Re: PaypalDonations
Post by: snork13 on May 26, 2009, 11:09:47 AM
Quote from: Chas_Large on May 26, 2009, 10:31:43 AM
Quote from: snork13 on May 26, 2009, 10:19:13 AM
Quote from: Chas_Large on May 26, 2009, 10:03:03 AM
Snork, any idea about the error I encountered please?

Chas

yes, just run it from the a browser, put the file in the root of the forum

-snork13

yes, the modification xml is looking for code that needs to be change and not finding it, I would guess another mod has changed the code already. I would suggest manually editing the files. Make a backup first of the files.

-snork13
OK, thanks for that pointer. I guess the files that need editing manually will the the two mentioned in the failure notice?

I've looked at the code changes and they seem simple enough, I don't understand however the purpose of add_settings_1_1_x.php. Do I run this after I've edited the code and what does it do.

Sorry, but I'm a newbie at doing manual mods to this forum software.

Chas
Title: Re: PaypalDonations
Post by: Uhura! on May 27, 2009, 05:51:09 PM
Quote from: Kindred on April 14, 2009, 09:09:01 PM
you have installed the mod twice...  you will have to manually remove the duplicate code(s)

This is what happened to me.
Title: Re: PaypalDonations
Post by: philcross on June 06, 2009, 02:36:44 AM

I have this error in my log ever day - please advise what needs to be changed.

8: Undefined index: paypal_title

File: /home/xxxxxxxx/public_html/xxxxforum/Sources/Admin.php
Line: 203 

The paypal button is there and the text is there BUT there is a blank space in the admin area where this mod title should be. Also, the fields are blank when i click that "blank space" but the donate text I wrote is there.

???

Im using 2.0 1-1

Title: Re: PaypalDonations
Post by: snork13 on June 06, 2009, 09:08:04 AM
Quote from: philcross on June 06, 2009, 02:36:44 AM

I have this error in my log ever day - please advise what needs to be changed.

8: Undefined index: paypal_title

File: /home/xxxxxxxx/public_html/xxxxforum/Sources/Admin.php
Line: 203 

The paypal button is there and the text is there BUT there is a blank space in the admin area where this mod title should be. Also, the fields are blank when i click that "blank space" but the donate text I wrote is there.

???

Im using 2.0 1-1


The modification didn't get install completely, if you unzip the package and look at the xml install file you will see the files and changes made to each file. Double check that all the changes have been made. I would start with the language files ;)

also try clearing your cache in smf first in forum maintenance

-snork13
Title: Re: PaypalDonations
Post by: Thenewguy2009 on June 27, 2009, 06:32:05 PM
i used this mod on my last forum, i was wondering if this will be capable for 1.9 anytime soon?
Title: Re: PaypalDonations
Post by: GravuTrad on June 29, 2009, 08:58:03 PM
For snork13, i put the french translation of the mod here:

./Themes/default/languages/Modifications.french.php

Find:

?>


Add before:

$txt['payPal'] = 'Dons';
$txt['paypal'] = 'Dons';
$txt['cannot_payPal_view'] = 'D&eacute;sol&eacute;, vous n\'&ecirc;tes pas autoris&eacute; &agrave; voir la page des dons.';
$txt['permissionname_payPal_view'] = 'Voir la page des dons';
$txt['permissionhelp_payPal_view'] = 'Permet aux gens de voir la page des dons. Si ce n\'est pas r&eacute;gl&eacute;, les gens ne verront pas la page.';



./Themes/default/languages/ModSettings.french.php

Find:
$txt['karmaLabel'] = 'Label \'Karma\'';
$txt['karmaApplaudLabel'] = 'Label positif';
$txt['karmaSmiteLabel'] = 'Label n&eacute;gatif';


Add after:

$txt['payPalEnable'] = 'Activer le don';
$txt['payPalKey'] = 'Formulaire Paypal (html)';
$txt['payPalReason'] = 'Raison du don';
$txt['payPalFO'] = 'Dons';


./Themes/default/languages/Who.french.php

Find:

$txt['whoall_.xml'] = 'T&eacute;l&eacute;charge un flux XML/RSS du forum.';

Add after:

$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';
Title: Re: PaypalDonations
Post by: Thenewguy2009 on June 29, 2009, 09:26:04 PM
Any luck this will be available for 1.9?
Title: Re: PaypalDonations
Post by: GravuTrad on June 29, 2009, 09:59:39 PM
Quote from: snork13 on May 26, 2009, 09:06:13 AM
Quote from: ATICE on May 24, 2009, 09:09:01 PM
Will this be compatible for 2.0 RC1-1 anytime soon?

you can emulate when applying the package or change the install xml for your current version. I hope to update all mods soon.

-snork13
Title: Re: PaypalDonations
Post by: snork13 on July 09, 2009, 10:59:57 AM
Quote from: GravuTrad on June 29, 2009, 08:58:03 PM
For snork13, i put the french translation of the mod here:

./Themes/default/languages/Modifications.french.php

Find:

?>


Add before:

$txt['payPal'] = 'Dons';
$txt['paypal'] = 'Dons';
$txt['cannot_payPal_view'] = 'D&eacute;sol&eacute;, vous n\'&ecirc;tes pas autoris&eacute; &agrave; voir la page des dons.';
$txt['permissionname_payPal_view'] = 'Voir la page des dons';
$txt['permissionhelp_payPal_view'] = 'Permet aux gens de voir la page des dons. Si ce n\'est pas r&eacute;gl&eacute;, les gens ne verront pas la page.';



./Themes/default/languages/ModSettings.french.php

Find:
$txt['karmaLabel'] = 'Label \'Karma\'';
$txt['karmaApplaudLabel'] = 'Label positif';
$txt['karmaSmiteLabel'] = 'Label n&eacute;gatif';


Add after:

$txt['payPalEnable'] = 'Activer le don';
$txt['payPalKey'] = 'Formulaire Paypal (html)';
$txt['payPalReason'] = 'Raison du don';
$txt['payPalFO'] = 'Dons';


./Themes/default/languages/Who.french.php

Find:

$txt['whoall_.xml'] = 'T&eacute;l&eacute;charge un flux XML/RSS du forum.';

Add after:

$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';

thanks, I will added it on the next update

-snork13
Title: Re: PaypalDonations
Post by: GravuTrad on July 09, 2009, 12:17:50 PM
Thanks snork13.

The next updates will update your mods?
Title: Re: PaypalDonations
Post by: imno007 on July 09, 2009, 06:20:50 PM
I've installed this with  SMF 2.0 RC1-1, emulating 2.0 RC1, input the necessary Paypal code, enabled it, and all users (except guests) have permission to view it, but there's no donation button showing up. So I'm assuming I have to edit my theme somewhere. Any suggestions?

TIA!

EDIT: Okay, thanks, but nm, I decided to just manually add a button.
Title: Re: PaypalDonations
Post by: SoLoGHoST on July 20, 2009, 01:59:50 AM
While this is a good idea, I suggest taking this idea even further so that you can have each user, within their profile (if a permission is set for that usergroup in which the user belongs to) add a PayPal Donate Button, and this button will be added to every topic, either near the avatar or underneath the topic message.  That way if someone receives help from another person who has a Donate button in there, if that person feels like donating $$ to the other person for helping them, than this would be possible.  Great thing also about this idea is that it can bring some quality members to your forums.  Hell, I'm about to start making this MOD right now.  But figured, since you're already halfway there, why not ask if you'll do it.  Anyways, let me know, k?

Thanks :)
Title: Re: PaypalDonations
Post by: justjim on July 22, 2009, 11:25:11 AM
I'm sure you are working as fast as you can on this great mod. But I was wondering if any of the manual instructions you have posted will work with Vs 1.1.10? Or will we need to wait for the update

Thanks again for a great mod.
Title: Re: PaypalDonations
Post by: sepulchre on July 23, 2009, 06:40:45 AM
I dont suppose there is anyway to have donations sent as gifts is there? (to avoid paypal charges etc?)
Title: Re: PaypalDonations
Post by: snork13 on July 23, 2009, 09:11:24 AM
Quote from: GravuTrad on July 09, 2009, 12:17:50 PM
Thanks snork13.

The next updates will update your mods?

i updated, but forgot about this. I work on adding it today ;)
Title: Re: PaypalDonations
Post by: justjim on July 23, 2009, 10:22:27 AM
I noticed ther was a package update today. Thanks.

I tried to install through package manager but got this error

Installations actions for "PaypalDonations":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php [color=red]Test failed [/color]
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php


Any suggestions?

Title: Re: PaypalDonations
Post by: snork13 on July 23, 2009, 01:03:47 PM
Quote from: justjim on July 23, 2009, 10:22:27 AM
I noticed ther was a package update today. Thanks.

I tried to install through package manager but got this error

Installations actions for "PaypalDonations":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php [color=red]Test failed [/color]
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php


Any suggestions?



My mod can't find the code to change due to the fact that another mod changed the code. you can apply that change manually.


-snork13
Title: Re: PaypalDonations
Post by: snork13 on July 23, 2009, 01:53:41 PM
Quote from: GravuTrad on June 29, 2009, 08:58:03 PM
For snork13, i put the french translation of the mod here:

./Themes/default/languages/Modifications.french.php

Find:

?>


Add before:

$txt['payPal'] = 'Dons';
$txt['paypal'] = 'Dons';
$txt['cannot_payPal_view'] = 'D&eacute;sol&eacute;, vous n\'&ecirc;tes pas autoris&eacute; &agrave; voir la page des dons.';
$txt['permissionname_payPal_view'] = 'Voir la page des dons';
$txt['permissionhelp_payPal_view'] = 'Permet aux gens de voir la page des dons. Si ce n\'est pas r&eacute;gl&eacute;, les gens ne verront pas la page.';



./Themes/default/languages/ModSettings.french.php

Find:
$txt['karmaLabel'] = 'Label \'Karma\'';
$txt['karmaApplaudLabel'] = 'Label positif';
$txt['karmaSmiteLabel'] = 'Label n&eacute;gatif';


Add after:

$txt['payPalEnable'] = 'Activer le don';
$txt['payPalKey'] = 'Formulaire Paypal (html)';
$txt['payPalReason'] = 'Raison du don';
$txt['payPalFO'] = 'Dons';


./Themes/default/languages/Who.french.php

Find:

$txt['whoall_.xml'] = 'T&eacute;l&eacute;charge un flux XML/RSS du forum.';

Add after:

$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';

commited
Title: Re: PaypalDonations
Post by: justjim on July 23, 2009, 05:24:33 PM
QuoteMy mod can't find the code to change due to the fact that another mod changed the code. you can apply that change manually.

So apply the mod, then edit the one file manually, is that correct?
Title: Re: PaypalDonations
Post by: snork13 on July 23, 2009, 09:19:18 PM
Quote from: justjim on July 23, 2009, 05:24:33 PM
QuoteMy mod can't find the code to change due to the fact that another mod changed the code. you can apply that change manually.

So apply the mod, then edit the one file manually, is that correct?

Yes, that should work. I would make a backup off all the files that will be changed. For that matter I would just keep a copy of default themes and sources files every time a big change. I just make folders with date downloaded.

-snork13
Title: Re: PaypalDonations
Post by: Duffield1 on August 23, 2009, 07:38:02 AM
I'm rather new to insalling modifications - this is my first one, other than a theme change.

I don't have all the files in the 'Language' folder (I use the DilberMC theme).  I tried to copy them over to the DilberMC languages folder, but that did nothing.  Any hints or tips as to how I can get this to work with the theme? 

In the launguage folder, I just have lots of language variations or Settings.english.php.

Thanks!
Title: Re: PaypalDonations
Post by: snork13 on August 24, 2009, 09:00:54 AM
If you don't have the files in the custom theme, change the files in the default theme, your custom them will fall back on those files


-snork13
Title: Re: PaypalDonations
Post by: Duffield1 on August 25, 2009, 07:08:53 AM
It is still not working correctly, so I've been trying to work out where the problem lies. 

If I change one board to the 'default' theme, when in that theme, the mod works perfectly, but on all the other boards (using the DilberMC theme), the donation tab does not appear.

When in the default theme, if you click on the 'Donate' tab, it takes you to a donate page which is in the Dilber theme, so it looks like the only thing that is not working is the command to insert a new tab in the Dilber theme.

If I remove the line:
   if (($modSettings['payPalEnable']) && (allowedTo('payPal_view')))
From index.template.php
then I get a button that says 'Donation' on the menu bar, but the font does not match the rest of the menu bar, and I guess that this means my PayPal account is viewable by every spambot that vistis the site.

Does this information help at all?  I apologise for not being quite so au fait on how this all works - it is pretty new to me!

** addendum ** Whilst I, as the administrator, can see the donations page in the default style, non-admin users still see it in the DilberMC theme.
Title: Re: PaypalDonations
Post by: Kindred on August 27, 2009, 12:02:47 AM
as with any other mod, you will have to manually install it into your custom theme files.
Title: Re: PaypalDonations
Post by: Duffield1 on August 27, 2009, 07:54:02 AM
Quote from: Kindred on August 27, 2009, 12:02:47 AM
as with any other mod, you will have to manually install it into your custom theme files.
I think I have - wherever the equivalent file was available in the other theme, I have made that modification, but there were some files in the language folder that were missing, so it was suggested that the theme may fall back upon the files in the default theme for this.  I've made the amends to the files in the default theme, too, but it still is not working.

However, if I apply the default theme to the site, it works perfectly.  For some reason, I have simply not managed to put the 'Donations' tab onto the main menu bar in the Dilber theme.
Title: Re: PaypalDonations
Post by: Kindred on August 27, 2009, 08:48:22 AM
I have heard alot of people have issues with adding tabs into the dilber theme...   under normal circumstances (for the 1.1.x series) the menu is listed in index.template.php. You have to make certain that you have added the correct code for the dilber menu into the topnav section of code in the dilber theme's file.

Since it works on the default theme, it is clearly an issue with the code in the dilber theme... :(
Title: Re: PaypalDonations
Post by: dv8 on September 02, 2009, 11:35:13 AM
Hi Guys

Love this mod only thing is i get this error when i try to install please help
me getting working many thanks in advance

Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/ModSettings.french.php    File not found
9.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Who.french.php    File not found
11.    Extract File    ./Themes/default/Paypal.template.php
Title: Re: PaypalDonations
Post by: snork13 on September 02, 2009, 03:10:41 PM
Quote from: dv8 on September 02, 2009, 11:35:13 AM
Hi Guys

Love this mod only thing is i get this error when i try to install please help
me getting working many thanks in advance

Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/ModSettings.french.php    File not found
9.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Who.french.php    File not found
11.    Extract File    ./Themes/default/Paypal.template.php

quote author=snork13 link=topic=70046.msg2172971#msg2172971 date=1248368627]
Quote from: justjim on July 23, 2009, 10:22:27 AM
I noticed ther was a package update today. Thanks.

I tried to install through package manager but got this error

Installations actions for "PaypalDonations":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php [color=red]Test failed [/color]
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php


Any suggestions?



My mod can't find the code to change due to the fact that another mod changed the code. you can apply that change manually.


-snork13
[/quote]
Title: Re: PaypalDonations
Post by: dv8 on September 03, 2009, 02:23:31 PM
snork

please advise on how to i am new to this
when you have a min

many thanks in advance
Title: Re: PaypalDonations
Post by: GravuTrad on September 03, 2009, 02:31:04 PM
snork13, does your mod check the presence of the files concerned and skip them if they're not? (like languages files for example...)
Title: Re: PaypalDonations
Post by: snork13 on September 03, 2009, 03:43:20 PM
Quote from: dv8 on September 03, 2009, 02:23:31 PM
snork

please advise on how to i am new to this
when you have a min

many thanks in advance


http://docs.simplemachines.org/index.php?topic=402
Title: Re: PaypalDonations
Post by: snork13 on September 03, 2009, 03:44:00 PM
Quote from: GravuTrad on September 03, 2009, 02:31:04 PM
snork13, does your mod check the presence of the files concerned and skip them if they're not? (like languages files for example...)

shouldn't it skip if the file is not there
Title: Re: PaypalDonations
Post by: GravuTrad on September 03, 2009, 04:06:30 PM
skip the operations of course...not the files themselves...
Title: Re: PaypalDonations
Post by: zjones1120 on September 07, 2009, 06:46:55 PM
Fatal error: Call to undefined function ModifypayPalSettings() in D:\Hosting\4910408\html\Sources\ModSettings.php on line 156

when i click on features/options donations
Title: Re: PaypalDonations
Post by: snork13 on September 08, 2009, 01:16:00 PM
Quote from: zjones1120 on September 07, 2009, 06:46:55 PM
Fatal error: Call to undefined function ModifypayPalSettings() in D:\Hosting\4910408\html\Sources\ModSettings.php on line 156

when i click on features/options donations

you are missing the function(ModifypayPalSettings) in ModSettings.php file. You can add it manually editing the file.

http://docs.simplemachines.org/index.php?topic=402

-snork13
Title: Re: PaypalDonations
Post by: aohb on September 23, 2009, 12:03:31 PM
Hi, I'd like to add a the Paypal donations mod to my SMF Version 1.1.10.

When I try to apply the mod I get the following errors:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/ModSettings.french.php    File not found
9.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Who.french.php    File not found
11.    Extract File    ./Themes/default/Paypal.template.php   
12.    Extract File    ./Sources/Paypal.php   
13.    Execute Code    add_settings_1_1_x.php

Any ideas why and what I can do to make this work? Would really like this mod.

Thanks.

I've reposted this is the correct bit now :)
Title: Re: PaypalDonations
Post by: GravuTrad on September 23, 2009, 12:09:48 PM
question already answered above.
Title: Re: PaypalDonations
Post by: aohb on September 23, 2009, 12:28:59 PM
It's really not very clear what the answer is  ???
Title: Re: PaypalDonations
Post by: GravuTrad on September 23, 2009, 01:16:03 PM
Quote from: snork13 on September 02, 2009, 03:10:41 PM
Quote from: dv8 on September 02, 2009, 11:35:13 AM
Hi Guys

Love this mod only thing is i get this error when i try to install please help
me getting working many thanks in advance

Type     Action     Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
8.    Execute Modification    ./Themes/default/languages/ModSettings.french.php    File not found
9.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Who.french.php    File not found
11.    Extract File    ./Themes/default/Paypal.template.php

quote author=snork13 link=topic=70046.msg2172971#msg2172971 date=1248368627]
Quote from: justjim on July 23, 2009, 10:22:27 AM
I noticed ther was a package update today. Thanks.

I tried to install through package manager but got this error

Installations actions for "PaypalDonations":
Installing this package will perform the following actions:  Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php [color=red]Test failed [/color]
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
7. Execute Modification ./Themes/default/languages/Who.english.php Test successful
8. Extract File ./Themes/default/Paypal.template.php 
9. Extract File ./Sources/Paypal.php 
10. Execute Code add_settings_1_1_x.php


Any suggestions?



My mod can't find the code to change due to the fact that another mod changed the code. you can apply that change manually.


-snork13
[/quote]

Another mod interfere with the installation of this one.

Which mods do you have?
Title: Re: PaypalDonations
Post by: Chaos Dragon on September 26, 2009, 04:35:45 PM
I installed this mod in my forum 2.0RC1.2 and get this error in my logs.

http://domain.com/index.php?action=admin;area=securitysettings;b88f09d0e=2881a7a37a2dc204bece4af8801bd8b1
8: Undefined index: label
File: /home/user/public_html/doamin/Themes/default/GenericMenu.template.php
Line: 306

And also when I go to Admin -> Configuration -> Security and Moderation.
I have this error in the Tabs menu where General, Anti-Spam and Moderation are.
Notice: Undefined index: label in /home/user/public_html/domain/Themes/default/GenericMenu.template.php on line 306
And when I hover over it since it is acting like a link I get this url in the status bar.
http://domain.com/index.php?action=admin;area=securitysettings;sa=paypal;f61df57af6=0cda728bc0d947155a67ad87d67d3688
For some reason the sa= is paypal instead of general since when I click it it takes me to the General settings for Security and Moderation.
How would I fix this little undefined problem.

Title: Re: PaypalDonations
Post by: DaBrute on September 26, 2009, 07:41:08 PM
http://www.simplemachines.org/community/index.php?topic=338778.new;topicseen#new
Title: Re: PaypalDonations
Post by: Chaos Dragon on September 26, 2009, 09:16:28 PM
That's a good try, but I am not having installation problems. I have an undefined error problem that I can't seem to fix. I looked through this thread and found nothing on the subject so I posted that.
Sorry if there was any confusion..
Title: Re: PaypalDonations
Post by: DaBrute on September 27, 2009, 12:28:19 PM
hmmmmmmmmm
Title: Re: PaypalDonations
Post by: snork13 on September 28, 2009, 09:13:25 AM
Quote from: Chaos Dragon on September 26, 2009, 04:35:45 PM
I installed this mod in my forum 2.0RC1.2 and get this error in my logs.

http://domain.com/index.php?action=admin;area=securitysettings;b88f09d0e=2881a7a37a2dc204bece4af8801bd8b1
8: Undefined index: label
File: /home/user/public_html/doamin/Themes/default/GenericMenu.template.php
Line: 306

And also when I go to Admin -> Configuration -> Security and Moderation.
I have this error in the Tabs menu where General, Anti-Spam and Moderation are.
Notice: Undefined index: label in /home/user/public_html/domain/Themes/default/GenericMenu.template.php on line 306
And when I hover over it since it is acting like a link I get this url in the status bar.
http://domain.com/index.php?action=admin;area=securitysettings;sa=paypal;f61df57af6=0cda728bc0d947155a67ad87d67d3688
For some reason the sa= is paypal instead of general since when I click it it takes me to the General settings for Security and Moderation.
How would I fix this little undefined problem.



It not related to this mod. What other mods are you running?
Title: Re: PaypalDonations
Post by: Chaos Dragon on September 28, 2009, 04:58:07 PM
I don't see how it isn't related to this mod....I uninstalled each mod one at a time then reinstalled and went down the list and the only mod when uninstalled makes the error go away and that is the Donations.
Other than that these are the mods I have installed....

1.    Avatar Optimization      1.0.1     
2.    Ad Managment    2.3.5   
3.    Good Post/Bad Post Mod    1.1.2   
4.    Avatar On Board RC1    2.1   
5.    Ban Link in Post    1.1
6.    SA Battle    0.8   
7.    Favicon    1.2   
8.    BoardHover Mod    1.4.3   
9.    Bookmarks    2.2.1   
10.    Custom_Greeting_Depending_on_Time    1.0   
11.    Child Dropdown for Board Index    1.1   
12.    Custom Copyright    1.1   
13.    DisableTemplateEval    1.1   
14.    Downloads System    1.2.6   
15.    EmailValidator    1.0   
16.    Google Search Your Site    1.0.0   
17.    PM Attachments    1.4   
18.    Add Honey Pot to Track IP    1.1
19.    JPG Thumbnails    2.0   
20.    Page Management    1.3   
21.    MCLegendII RC1    3.0
22.    Member Color Link    3.0.7   
23.    Mood Smileys    0.1   
24.    OS & Browser Detection    1.4   
25.    PaypalDonations    2.0    [ Apply Mod ]
26.    The Rules    1.2   
27.    Permissions Info    1.5   
28.    Pm Number in All Pages    1.0   
29.    Redirect Info Icon    1.0   
30.    Active Members In Topic    1.8   
31.    SA Battles (Gold Bonus)    1.0   
32.    SMF Articles    1.1.2   
33.    SimplePortal    2.3   
34.    SMF Project Tools    0.3003   
35.    SMF Quiz    1.0.8 beta2   
36.    Your Last Visit    1.1   
37.    Topic Solved    1.1   
38.    Users Online Today    1.5.4

The only one not installed is Donations cause when it is installed the error floods my error log every time I go to Securities and Moderation.....
Title: Re: PaypalDonations
Post by: snork13 on September 29, 2009, 01:33:55 PM
Quote from: Chaos Dragon on September 28, 2009, 04:58:07 PM
I don't see how it isn't related to this mod...


because the mod doesn't change the code in question

I would uninstall all mods, and upload fresh files from the download section, make a backup first.
Title: Re: PaypalDonations
Post by: Chaos Dragon on September 29, 2009, 05:27:37 PM
Ok understandable....But this is a fresh install of SMF...all files were fresh before installing any mods....
not one came out with an error during install and I also check to make sure all coding is added to the files after installation cause not all edits happen every time you install. And I have also uninstalled all mods...Installed only Donations and still get the error....Everything looks in order...Could there maybe just be a conflict in coding. I get the error in both custom theme and in Default theme.
I'll play around with it some more. I am not going to deny that there is a possibility that I may have done something wrong. It is a lot of work to redo again, but I will one more time and uninstall all mods and re-upload the files to a fresh install of SMF and see what happens. I'll keep ya posted.
Title: Re: PaypalDonations
Post by: Chaos Dragon on October 01, 2009, 05:52:08 AM
Well!

I did a complete refresh of my files, did everything short of reinstalling SMF and When I install the mod by itself and first install after file refresh, I still get the error. I uninstall, it's gone.
Also even though it took me awhile I installed each mod by it's self and not one gives this error. Then I installed each mod one at a time, installing the donations mod after each mod install and if I got the error I uninstalled it. It went away each time when I uninstalled the Donations. Got through all 40 mods and  Donations is the only one giving me the error.
If you like I would be glad to give you an admin account and you can install it and see for yourself that this mod gives me the error. Also I use this function ($db_show_debug = true;) in my settings file and it also shows me an error in the tabs section of Security & Moderation.
Title: Re: PaypalDonations
Post by: snork13 on October 01, 2009, 02:20:02 PM
Quote from: Chaos Dragon on October 01, 2009, 05:52:08 AM
Well!

I did a complete refresh of my files, did everything short of reinstalling SMF and When I install the mod by itself and first install after file refresh, I still get the error. I uninstall, it's gone.
Also even though it took me awhile I installed each mod by it's self and not one gives this error. Then I installed each mod one at a time, installing the donations mod after each mod install and if I got the error I uninstalled it. It went away each time when I uninstalled the Donations. Got through all 40 mods and  Donations is the only one giving me the error.
If you like I would be glad to give you an admin account and you can install it and see for yourself that this mod gives me the error. Also I use this function ($db_show_debug = true;) in my settings file and it also shows me an error in the tabs section of Security & Moderation.

My mod doesn't have anything to do with this, doesn't even change anything in the security tab, here is the xml modification...


<file name="$boarddir/index.php">
<operation>
<search position="before"><![CDATA['openidreturn' => array('Subs-OpenID.php', 'smf_openID_return'),]]></search>
<add><![CDATA['paypal' => array('Paypal.php', 'Paypal'),]]></add>
</operation>

</file>



<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA['karma_edit' => array(false, 'general', 'moderate_general'),]]></search>
<add><![CDATA['payPal_view' => array(false, 'general', 'view_basic_info'),]]></add>
</operation>

<operation>
<search position="before"><![CDATA['karma_edit',]]></search>
<add><![CDATA['payPal_view',]]></add>
</operation>
</file>

<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA['general' => array($txt['mods_cat_modifications_misc']),]]></search>
<add><![CDATA['paypal' => array($txt['paypal_title']),]]></add>
</operation>

</file>

<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[elseif ($context['current_action'] == 'search2')
$current_action = 'search';]]></search>
<add><![CDATA[elseif ($context['current_action'] == 'paypal')
$current_action = 'paypal';]]></add>
</operation>

<operation>
<search position="before"><![CDATA[context['allow_search'] = allowedTo('search_posts');]]></search>
<add><![CDATA[$context['allow_paypal'] = allowedTo('payPal_view');]]></add>
</operation>

<operation>
<search position="before"><![CDATA['search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),]]></search>
<add><![CDATA['paypal' => array(
'title' => $txt['paypal'],
'href' => $scripturl . '?action=paypal',
'show' => $context['allow_paypal'],
'sub_buttons' => array(
),
),]]></add>
</operation>

</file>

<file name="$sourcedir/ManageSettings.php">

<operation>
<search position="before"><![CDATA['general' => 'ModifyGeneralModSettings',]]></search>
<add><![CDATA['paypal' => 'ModifypaypalSettings',]]></add>
</operation>

<operation>
<search position="before"><![CDATA['general' => array(
),]]></search>
<add><![CDATA['paypal' => array(
),]]></add>
</operation>

<operation>
<search position="after"><![CDATA[function ModifyBasicSettings($return_config = false)]]></search>
<add><![CDATA[
function ModifypaypalSettings()
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Paypal Donations - On or off?
array('check', 'payPalEnable'),
'',
// Paypal key and Reason
array('large_text', 'payPalReason','10'),
array('large_text', 'payPalKey','8'),
           
);

// Saving?
if (isset($_GET['save']))
{
checkSession();

saveDBSettings($config_vars);

writeLog();
redirectexit('action=admin;area=modsettings;sa=paypal');
}

$context['post_url'] = $scripturl . '?action=admin;area=modsettings;save;sa=paypal';
$context['settings_title'] = $txt['payPalFO'];

prepareDBSettingContext($config_vars);
}
]]></add>
</operation>
</file>


<file name="$themedir/index.template.php">
<operation>
<search position="replace"><![CDATA[
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
]]></search>
<add><![CDATA[
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
]]></add>
</operation>

</file>


<file name="$themedir/languages/Admin.english.php">
<operation>
<search position="before"><![CDATA[$txt['pruning_title'] = 'Log Pruning';]]></search>
<add><![CDATA[$txt['paypal_title'] = 'Donations';]]></add>
</operation>
</file>

<file name="$themedir/languages/ManageSettings.english.php">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Karma label';
$txt['karmaApplaudLabel'] = 'Karma applaud label';
$txt['karmaSmiteLabel'] = 'Karma smite label';
]]></search>
<add><![CDATA[
$txt['payPalEnable'] = 'Enable the Donation';
$txt['payPalKey'] = 'Paypal Form (html)';
$txt['payPalReason'] = 'Reason For Donation';
$txt['payPalFO'] = 'Donations';
]]></add>
</operation>
</file>

<file name="$themedir/languages/ManageSettings.french.php">
<operation>
<search position="before"><![CDATA[
$txt['karmaLabel'] = 'Label \'Karma\'';
$txt['karmaApplaudLabel'] = 'Label positif';
$txt['karmaSmiteLabel'] = 'Label n&eacute;gatif';
]]></search>
<add><![CDATA[
$txt['payPalEnable'] = 'Activer le don';
$txt['payPalKey'] = 'Formulaire Paypal (html)';
$txt['payPalReason'] = 'Raison du don';
$txt['payPalFO'] = 'Dons';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.english.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['paypal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
$txt['DonationsNotEnabled'] = 'Sorry, the donation page is not enabled at the moment. Please check back later.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Modifications.french.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['payPal'] = 'Dons';
$txt['paypal'] = 'Dons';
$txt['cannot_payPal_view'] = 'D&eacute;sol&eacute;, vous n\'&ecirc;tes pas autoris&eacute; &agrave; voir la page des dons.';
$txt['permissionname_payPal_view'] = 'Voir la page des dons';
$txt['permissionhelp_payPal_view'] = 'Permet aux gens de voir la page des dons. Si ce n\'est pas r&eacute;gl&eacute;, les gens ne verront pas la page.';
]]></add>
</operation>
</file>


<file name="$themedir/languages/Who.english.php">
<operation>
<search position="before"><![CDATA[
$txt['whoall_.xml'] = 'Viewing an XML feed.';
]]></search>
<add><![CDATA[
$txt['whoall_paypal'] = 'Viewing the <a href="' . $scripturl . '?action=paypal">Donations</a>.';
]]></add>
</operation>
</file>

<file name="$themedir/languages/Who.french.php">
<operation>
<search position="before"><![CDATA[
$txt['whoall_.xml'] = 'T&eacute;l&eacute;charge un flux XML/RSS du forum.';
]]></search>
<add><![CDATA[
$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';
]]></add>
</operation>
</file>

</modification>




Title: Re: PaypalDonations
Post by: El maestro on October 02, 2009, 11:03:44 PM
Hi,

I am trying to install Paypaldonations on my custom theme for RC1.2 but I am having trouble.

it seems I am missing files such as the language section for my custom theme.

I would like some help if possible.

(if you can't tell by my writing...I am quite new to SMF)
Title: Re: PaypalDonations
Post by: scorpion1082 on October 15, 2009, 08:22:23 AM
SORRY FOR THE LENGTH OF THIS POST... but:

Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
3.    Execute Modification    ./Sources/ModSettings.php    Test failed
4.    Execute Modification    ./Themes/default/index.template.php    Test successful
5.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
6.    Execute Modification    ./Themes/default/languages/Modifications.french.php    File not found
7.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test failed
8.    Execute Modification    ./Themes/default/languages/ModSettings.french.php    File not found
9.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
10.    Execute Modification    ./Themes/default/languages/Who.french.php    File not found
11.    Extract File    ./Themes/default/Paypal.template.php    
12.    Extract File    ./Sources/Paypal.php    
13.    Execute Code    add_settings_1_1_x.php

wow... not sure what to do about this?

Apply Filter: Only show the error messages of this member  Nathan Whedon    Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.spanish_es-utf8.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.portuguese_pt-utf8.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/install-2.xml) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.spanish_latin.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.spanish_es.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.template.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.turkish.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.portuguese_pt.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/readme.txt) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.german.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.portuguese_brazilian.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.french.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.portuguese_brazilian-utf8.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member Nathan Whedon Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.english.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

Apply Filter: Only show the error messages of this member  Nathan Whedon    Today at 04:52:05 AM
Apply Filter: Only show the error messages of this IP address 70.180.203.32    Apply Filter: Only show the error messages of this session 45d4fc6b81a31a88630b9c584adc66ea
Apply Filter: Only show the error messages of this URL http://bluesunalliance.netzoneuk.com/index.php?action=packages;sa=install;package=PaypalDonations.zip;sesc
Apply Filter: Only show the errors with the same message
2: unlink(/home/netzoneu/public_html/bluesunalliance/Packages/temp/TeamPage.spanish_latin-utf8.php) [<a href='function.unlink'>function.unlink</a>]: No such file or directory
File: /home/netzoneu/public_html/bluesunalliance/Sources/Subs-Package.php
Line: 1157

oooor this stuff...
Title: Re: PaypalDonations
Post by: scorpion1082 on October 18, 2009, 10:52:13 AM
bump for previous post to get answered please.
Title: Re: PaypalDonations
Post by: snork13 on October 19, 2009, 09:42:02 AM
If a test failed you will need to manually apply the changes,

http://docs.simplemachines.org/index.php?topic=402

or find the other mod that is conflicting with mine and uninstall it. My mod doesn't edit any teamPage files, check with that author.


Title: Re: PaypalDonations
Post by: scorpion1082 on October 19, 2009, 12:57:11 PM
1.     RSS Feed Poster      2.0.1       [ Uninstall ]  [ List Files ]  [ Delete ]
2.    Advanced Reputation System    0.1.5    [ Uninstall ] [ List Files ] [ Delete ]
3.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
4.    Display Name On Registration    1.8    [ Uninstall ] [ List Files ] [ Delete ]
5.    Simple Award System    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
6.    Next Post Level    1.3.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    PaypalDonations    2.0    [ Apply Mod ] [ List Files ] [ Delete ]
8.    Hide Tag Special    1.8.5    [ Uninstall ] [ List Files ] [ Delete ]
9.    Childboards Only    2.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Enhanced Profile Header    1.1    [ Uninstall ] [ List Files ] [ Delete ]
11.    Global Headers Footers    1.4.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    DisableTemplateEval    1.1    [ Uninstall ] [ List Files ] [ Delete ]

i dont have anything called teampage.  this still doesnt apply without errors though.

edit 1: still dont have anything called teampage, but i remember trying to install it once, but it didnt let me cause i dont have the correct version of smf.  so i never did.  those errors are coming up saying teampage, but its coming up from packages/temp.  i dont have it installed so should i be able to ignore the errors?
i looked into installing manually.  problem is i have no clue of where to find the files i need to modify.  the only thing i know how to modify are the files that show up under current theme, modify.  those are template related files.  i dont show settings or language files at all.  how do i modify those?  do they have to be changed on the server side or something?  im completely confused.

edit 2: ive uninstalled everything and then switched to default layout.  i installed it and no errors showed.  i then installed everything else and had no issues.  it works now.  but a new problem has occurred.  my custom profile doesnt seem to show the donations button at all.  default, yes.  custom, no.  im using black eagle and ive tweaked it around to show my banner and icons and such.  what line of code do i need to change?  as i said in edit 1, i dont know how to modify many of the files required for manual installation.
Title: Re: PaypalDonations
Post by: snork13 on October 19, 2009, 04:47:35 PM
you need to open the modification file and look at the edits. i think it is index.template.php file.
Title: Re: PaypalDonations
Post by: scorpion1082 on October 19, 2009, 05:27:31 PM
thanks for replying.  its all worked out.  now all i need is a donation to test it.
Title: Re: PaypalDonations
Post by: mycousinvinny on November 19, 2009, 12:45:47 AM
Hi I installed your mod. I am using smf 1.1.10.

Is there something else i need to do I dont see a paypal tab or button anywhere?

Thanks,

Vinny
Title: Re: PaypalDonations
Post by: c23_Mike on November 24, 2009, 08:23:42 AM
Hi there !

Tnx for this mod, installed it on SMF RC2 and worked well out of the box!
Title: Re: PaypalDonations
Post by: adbrad on November 24, 2009, 03:39:22 PM
this mod sounds ideal in case i need donations to pay for extra mods and such like.
how ever i has to main concerns.
first i am running rc1.2 so would need a version compatible with this.
second don't understand why you would need a merchant account will a normal paypal acount not work with it
cheers
Title: Re: PaypalDonations
Post by: Gemini328 on December 03, 2009, 02:39:48 PM
there wouldnt happen to be a way to run this on 1.1.11 would there?
Title: Re: PaypalDonations
Post by: orville on December 06, 2009, 10:22:02 PM
Did you ever find a way to install it on 1.1.11?
Title: Re: PaypalDonations
Post by: Kimmen on December 07, 2009, 10:46:53 PM
Okay, i have this installed on SMF2 RC2.

I got an error in my logs, and this appear just after adding the language English. UTF-8 to my fourms. Here is a copy of the error.

Apply Filter: Only show the error messages of this URL
http://eu.bf2demo.com/index.php?action=admin;area=logs;d0657c9972=aa50e1c2a4e228a8fe0b7204e81ad4b0
Apply Filter: Only show the errors with the same message
8: Undefined index: paypal_title
Apply Filter: Only show the errors from this file
File: /bf2eu/Sources/Admin.php
Line: 229


I can confirm that i no longer see the field for donations in admin panel anymore. Can someone help me with this please?


Greets
Kimmen
Title: Re: PaypalDonations
Post by: orville on December 08, 2009, 09:55:25 AM
You said to "Change the install xml to include 1.1.11"
I can not find any "install xml" file. I changed the "package-info xml" from 1.1.10 to 1.1.11 with no luck. Is someone going to update this mod soon and then repost it?
Title: Re: PaypalDonations
Post by: snork13 on December 08, 2009, 10:09:32 AM
Quote from: orville on December 08, 2009, 09:55:25 AM
You said to "Change the install xml to include 1.1.11"
I can not find any "install xml" file. I changed the "package-info xml" from 1.1.10 to 1.1.11 with no luck. Is someone going to update this mod soon and then repost it?

I will be updating soon
Title: Re: PaypalDonations
Post by: daveb26 on December 15, 2009, 10:33:59 AM
Can anyone confirm

When will this work on version 1.1.11

is it stable for use on a working site?
Title: Re: PaypalDonations
Post by: orville on December 19, 2009, 08:44:06 AM
was it updated yet?
Title: Re: PaypalDonations
Post by: GohighVoltage on December 21, 2009, 12:12:05 PM
Hi,  What changed in today's update.     Do I have to uninstall and then install the new one?

When I tried to uninstall,  it has some errors, due to other mods.  so before I uninstall all my mods to get this to uninstall and reinstall,    what has changed and do I need to?

SMF 2.0 RC2

Thanks
Title: Re: PaypalDonations
Post by: snork13 on December 21, 2009, 02:09:20 PM
Quote from: GohighVoltage on December 21, 2009, 12:12:05 PM
Hi,  What changed in today's update.     Do I have to uninstall and then install the new one?

When I tried to uninstall,  it has some errors, due to other mods.  so before I uninstall all my mods to get this to uninstall and reinstall,    what has changed and do I need to?

SMF 2.0 RC2

Thanks

nothing changed for rc2, just for 1.1.11. so you do not need to uninstall.

-snork13
Title: Re: PaypalDonations
Post by: GohighVoltage on December 21, 2009, 03:50:01 PM
Thank you
Title: Re: PaypalDonations
Post by: Kimmen on December 26, 2009, 10:45:59 AM
Quote from: Kim Arne on December 07, 2009, 10:46:53 PM
Okay, i have this installed on SMF2 RC2.

I got an error in my logs, and this appear just after adding the language English. UTF-8 to my fourms. Here is a copy of the error.

Apply Filter: Only show the error messages of this URL
http://eu.bf2demo.com/index.php?action=admin;area=logs;d0657c9972=aa50e1c2a4e228a8fe0b7204e81ad4b0
Apply Filter: Only show the errors with the same message
8: Undefined index: paypal_title
Apply Filter: Only show the errors from this file
File: /bf2eu/Sources/Admin.php
Line: 229


I can confirm that i no longer see the field for donations in admin panel anymore. Can someone help me with this please?


Greets
Kimmen

I still need help to fix this error please.
Title: Re: PaypalDonations
Post by: Kimmen on January 10, 2010, 07:18:32 AM
I still have problems with this issue  :-\

Is there any other way to add Paypal to my site?
Title: Re: PaypalDonations
Post by: adbrad on January 10, 2010, 07:25:01 AM
you could just go to paypal to your account and somewere there is a option add button do this and get the HTML if you use a portal you can then add this to a block.
if not then someone should be able to tell you where to put the code
Title: Re: PaypalDonations
Post by: Kimmen on January 10, 2010, 08:14:44 AM
I am not using a portal on this side. I need to know where to put it.
Title: Re: PaypalDonations
Post by: adbrad on January 10, 2010, 08:20:28 AM
sorry can't help with that bit as i am still rather new to forums and the way they are coded
Title: Re: PaypalDonations
Post by: snork13 on January 11, 2010, 08:43:02 AM
Quote from: Kim Arne on December 26, 2009, 10:45:59 AM
Quote from: Kim Arne on December 07, 2009, 10:46:53 PM
Okay, i have this installed on SMF2 RC2.

I got an error in my logs, and this appear just after adding the language English. UTF-8 to my fourms. Here is a copy of the error.

Apply Filter: Only show the error messages of this URL
http://eu.bf2demo.com/index.php?action=admin;area=logs;d0657c9972=aa50e1c2a4e228a8fe0b7204e81ad4b0
Apply Filter: Only show the errors with the same message
8: Undefined index: paypal_title
Apply Filter: Only show the errors from this file
File: /bf2eu/Sources/Admin.php
Line: 229


I can confirm that i no longer see the field for donations in admin panel anymore. Can someone help me with this please?


Greets
Kimmen

I still need help to fix this error please.

check these files manually to make sure the changes where made...


<file name="$sourcedir/Admin.php">
<operation>
<search position="before"><![CDATA['general' => array($txt['mods_cat_modifications_misc']),]]></search>
<add><![CDATA['paypal' => array($txt['paypal_title']),]]></add>
</operation>

</file>



<file name="$themedir/languages/Admin.english.php">
<operation>
<search position="before"><![CDATA[$txt['pruning_title'] = 'Log Pruning';]]></search>
<add><![CDATA[$txt['paypal_title'] = 'Donations';]]></add>
</operation>
</file>


Title: Re: PaypalDonations
Post by: Kimmen on January 11, 2010, 01:43:18 PM
Finally i figured it out. I was looking in the wrong places. Its fixed.
Title: Re: PaypalDonations
Post by: toothmkr57 on January 12, 2010, 11:49:15 PM

Just had this happen?? is it something I did?

Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/ManagePermissions.php Test successful
3. Execute Modification ./Sources/ModSettings.php Test failed
4. Execute Modification ./Themes/default/index.template.php Test successful
5. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
6. Execute Modification ./Themes/default/languages/Modifications.french.php File not found
7. Execute Modification ./Themes/default/languages/ModSettings.english.php Test successful
8. Execute Modification ./Themes/default/languages/ModSettings.french.php File not found
9. Execute Modification ./Themes/default/languages/Who.english.php Test successful
10. Execute Modification ./Themes/default/languages/Who.french.php File not found
11. Extract File ./Themes/default/Paypal.template.php
12. Extract File ./Sources/Paypal.php
Title: Re: PaypalDonations
Post by: adbrad on January 13, 2010, 05:31:36 AM
no nothing you did if you not using french as default language you won't have them files and you will manually need to edit modsettings.php as it can't find the code to do it automatically so install mod and do the failed file manually then all should work ok
Title: Re: PaypalDonations
Post by: GohighVoltage on January 18, 2010, 01:27:43 PM
Ok,  When your mod is installed,   and you go to the Security/moderation general settings,  it causes this error, every time:

action=admin;area=securitysettings;sa=general;af0a3a6b7c3=30d4389b4c9aaf37d919a8a32e76f32f8: Undefined index: labelFile: /forum/Themes/default/GenericMenu.template.php
Line: 288
Title: Re: PaypalDonations
Post by: snork13 on January 18, 2010, 02:20:57 PM
Quote from: GohighVoltage on January 18, 2010, 01:27:43 PM
Ok,  When your mod is installed,   and you go to the Security/moderation general settings,  it causes this error, every time:

action=admin;area=securitysettings;sa=general;af0a3a6b7c3=30d4389b4c9aaf37d919a8a32e76f32f8: Undefined index: labelFile: /forum/Themes/default/GenericMenu.template.php
Line: 288

nothing to do with paypal mod, look at the xml and you will see what files it does edit.
Title: Re: PaypalDonations
Post by: GohighVoltage on January 18, 2010, 02:39:25 PM
It has to do with paypal mod.   I install it,  the error happens every time.  I uninstall it,  the error doesn't happen any more.
Title: Re: PaypalDonations
Post by: snork13 on January 18, 2010, 03:31:21 PM
Quote from: GohighVoltage on January 18, 2010, 02:39:25 PM
It has to do with paypal mod.   I install it,  the error happens every time.  I uninstall it,  the error doesn't happen any more.

it can't be, Undefined index: labelFile: is not part of this mod. have you looked at that file around
Line: 288. it's telling you the error is there.
Title: Re: PaypalDonations
Post by: GohighVoltage on January 18, 2010, 03:35:57 PM
I know what you are saying,   but I promise you,  NO errors at all when mod is uninstalled,  and errors repeatedly when your mod is installed.   

Here is line #288:

And line 288 reads:
==>288: <a class="firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>
Title: Re: PaypalDonations
Post by: snork13 on January 18, 2010, 04:09:37 PM
Quote from: GohighVoltage on January 18, 2010, 03:35:57 PM
I know what you are saying,   but I promise you,  NO errors at all when mod is uninstalled,  and errors repeatedly when your mod is installed.   

Here is line #288:

And line 288 reads:
==>288: <a class="firstlevel" href="', isset($tab['url']) ? $tab['url'] : $menu_context['base_url'] . ';area=' . $menu_context['current_area'] . ';sa=' . $sa, $menu_context['extra_parameters'], isset($tab['add_params']) ? $tab['add_params'] : '', '"><span class="firstlevel">', $tab['label'], '</span></a>


what other mods are you using. I have tested this on a clean install just now and not one error.

It doesn't even make sense that going into the moderate area would have anything do to with the paypal mod.
Title: Re: PaypalDonations
Post by: GohighVoltage on January 18, 2010, 05:29:13 PM
it doesnt make sense at all.   I agree with you.   I just can't figure out why I get the error when it is installed and then don't when not installed.

the mods I am using are:

AutoKeywords 1.1   
Contact Page 2.0 
Custom Tab 1.2   
Disable Subject Change 1.5     
Google Analytics Code 1.1     
Improved Webmaster Email Settings 1.1   
MessagePreviewOnHover 1.7   
RSS Feed Icon 1.1   
RSS Feeder 1.1.4   
Search Focus Dropdown 1.42     
Site Menu 1.0   
Sitemap 2.1.0 
SMF Arcade 2.5 RC1   
SMF Articles 1.2a   
SMF Links 2.1.2   
Sortable Packages (and Installed Time) 1.2   
Tidy Child Boards 1.2   
Twitter and Facebook Publisher mod 2.2   
Wysiwyg Quick Reply RC2 RC2   
Title: Re: PaypalDonations
Post by: hurricanenick on February 14, 2010, 04:37:22 PM
I installed this mod and deleted it before uninstalling it by accident and now I can't get it to work.

I had treasury installed as well and can't delete that either because the files are missing it says.

I get this error on my forum when I click on the donations tab.

Fatal error: require_once() [function.require]: Failed opening required '/home/content/c/a/n/mutiny/html/forum/Sources/Treasury.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/c/a/n/mutiny/html/forum/index.php  on line 355


what can I do?
Title: Re: PaypalDonations
Post by: happelman on February 17, 2010, 03:52:31 PM
Hi,
Do you have a link to a site with the mod running? I'm just curious how the button looks - ideally we were hoping for the button at the bottom of the page.
Also, you say you need a PayPal Merchants account. Paypal says a Premier account will work with their buttons as well - would that be ok with this Mod?
thanks,
Will
Title: Re: PaypalDonations
Post by: numus on March 29, 2010, 02:17:22 PM
I am getting a strange issue...
http://www.sdx-developers.com/index.php?action=paypal

You see SDX-Developers Forum » Donations  twice... cant track down why it is doing this.. image attached
Title: Re: PaypalDonations
Post by: snork13 on April 02, 2010, 02:00:23 PM
Quote from: numus on March 29, 2010, 02:17:22 PM
I am getting a strange issue...
http://www.sdx-developers.com/index.php?action=paypal

You see SDX-Developers Forum » Donations  twice... cant track down why it is doing this.. image attached

just remove the linktree from my mod.
Title: Re: PaypalDonations
Post by: c23_Mike on April 05, 2010, 02:31:43 PM
Hi there !

Work this mod with RC3 or will it be updated?

I tested it today: With version emulation it works ... so it should be simple to update it!
Title: Re: PaypalDonations
Post by: ukhalik2 on April 11, 2010, 05:13:21 AM
Dont works on 2.0 RC3
It says that mod may be not compatible or either corrupt! :|
help~
Title: Re: PaypalDonations
Post by: c23_Mike on April 11, 2010, 05:08:50 PM
Hi there!

As written in the post above, with version emulation it works.I don´t know how the correct term in the installer is used in english, so just search for versiuon emulation. it works.
Title: Re: PaypalDonations
Post by: dsantana on November 19, 2010, 01:37:30 PM
I installed this today buy, it has not added a new tab in my admin panel under Features and Options.
Little help please?
Title: Re: PaypalDonations
Post by: TheListener on December 30, 2010, 02:16:12 PM
Quote from: dsantana on November 19, 2010, 01:37:30 PM
I installed this today buy, it has not added a new tab in my admin panel under Features and Options.
Little help please?

Do you still have this problem?

Were there any errors on install?
Title: Re: PaypalDonations
Post by: dsantana on December 30, 2010, 02:20:58 PM
I removed the mod and added a custom html block to my portal and just put the code in there for it.
Thanks anyways...
Title: Re: PaypalDonations
Post by: TheListener on December 30, 2010, 02:25:11 PM
If it is simpleportal you use would you please pm the code you used in the block.

Would be appreciated.

:)
Title: Re: PaypalDonations
Post by: ysNoi on January 10, 2011, 09:00:07 PM
Thanks for this mod...!

Successfully installed on SMF 2.0 RC4...
Title: Re: PaypalDonations
Post by: dsantana on January 10, 2011, 09:32:58 PM
Quote from: Brack1 on December 30, 2010, 02:25:11 PM
If it is simpleportal you use would you please pm the code you used in the block.

Would be appreciated.

:)

<div align="center">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="5DDF8GZDKG6DE">
<input type="image" src="http://www.vintagejetboats.com/Images/supportyoursite.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</div align="center">
Title: Re: PaypalDonations
Post by: apc896 on January 21, 2011, 01:22:51 AM
hello,

Im new to SMF...

do you have this mod for version 1.1.11 ?

and

do you have one that doesn't require a merchant account? or something I can just post my Donate button code from PayPal?

Thank you for your help!
Title: Re: PaypalDonations
Post by: Kindred on January 21, 2011, 09:27:46 AM
no.

if you just want to post the donate button, then check out one of the portal or ad mods and paste it into a block
Title: Re: PaypalDonations
Post by: DarkAngel612 on January 26, 2011, 09:15:30 AM
I had this mod working before I updated my portal. I uploaded pristine files for the process and the zip will not install via package manager so I did the  manual edits, it claimed to be corrupted and I know it is not I downloaded a fresh zip and tried it...snork13's mod:

the menu is showing the button which takes us to the proper page but the link in admin gives this error:

Fatal error:  Call to undefined function ModifypayPalSettings() in /home/xxxxx/public_html/xxxxx/Sources/ModSettings.php on line 164

that line says:

// Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']]();

I have version 1.1.12 SMF and TP 1.0 RC1


I have looked thru this thread but I think I missed the fix..I am so crosseyed right now from trying to get this to work.

I would like to be able to  use the admin section in case I need to ever make changes to it...and not go to the database

Title: Re: PaypalDonations
Post by: snork13 on January 26, 2011, 09:52:15 AM
Quote from: DarkAngel612 on January 26, 2011, 09:15:30 AM
I had this mod working before I updated my portal. I uploaded pristine files for the process and the zip will not install via package manager so I did the  manual edits, it claimed to be corrupted and I know it is not I downloaded a fresh zip and tried it...snork13's mod:

the menu is showing the button which takes us to the proper page but the link in admin gives this error:

Fatal error:  Call to undefined function ModifypayPalSettings() in /home/xxxxx/public_html/xxxxx/Sources/ModSettings.php on line 164

that line says:

// Call the right function for this sub-acton.
   $subActions[$_REQUEST['sa']]();

I have version 1.1.12 SMF and TP 1.0 RC1


I have looked thru this thread but I think I missed the fix..I am so crosseyed right now from trying to get this to work.

I would like to be able to  use the admin section in case I need to ever make changes to it...and not go to the database



your missing the edit. the function need to be included is what the error is telling u. check the modification xml file for the correct edit.
Title: Re: PaypalDonations
Post by: DarkAngel612 on January 26, 2011, 08:03:15 PM
thank you so very much -- I cheated and got the parse file from your download section and it was easier to follow...I used a fresh file and now it works.

now to move forwarded at the site with the rest of me troubles of edits...lol
Title: Re: PaypalDonations
Post by: numus on June 20, 2011, 01:18:16 PM
Getting this in my error log with 2.0 final
http://forum.sdx-developers.com/index.php?action=reminder8: Undefined index: paypalFile: /mnt/stor3-wc2-dfw1/504406/590247/forum.sdx-developers.com/web/content/Sources/Subs.php
Line: 3917

Just annoying error, just effect anything.
Title: Re: PaypalDonations
Post by: snork13 on June 20, 2011, 03:53:35 PM
Quote from: numus on June 20, 2011, 01:18:16 PM
Getting this in my error log with 2.0 final
http://forum.sdx-developers.com/index.php?action=reminder8: Undefined index: paypalFile: /mnt/stor3-wc2-dfw1/504406/590247/forum.sdx-developers.com/web/content/Sources/Subs.php
Line: 3917

Just annoying error, just effect anything.

can u either post those lines, i just updated for 2.0. try uninstalling and apply the new version. however nothing has changed, just updated package info for 2.0 final. the index paypalFile is not in my code, did u add features to it? either way i need to see those lines to get a better idea.  here are the edits for subs.php if you want to check they are there.

<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[elseif ($context['current_action'] == 'search2')
$current_action = 'search';]]></search>
<add><![CDATA[elseif ($context['current_action'] == 'paypal')
$current_action = 'paypal';]]></add>
</operation>

<operation>
<search position="before"><![CDATA[context['allow_search'] = allowedTo('search_posts');]]></search>
<add><![CDATA[$context['allow_paypal'] = allowedTo('payPal_view');]]></add>
</operation>

<operation>
<search position="before"><![CDATA['search' => array(
'title' => $txt['search'],
'href' => $scripturl . '?action=search',
'show' => $context['allow_search'],
'sub_buttons' => array(
),
),]]></search>
<add><![CDATA['paypal' => array(
'title' => $txt['paypal'],
'href' => $scripturl . '?action=paypal',
'show' => $context['allow_paypal'],
'sub_buttons' => array(
),
),]]></add>
</operation>

</file>
Title: Re: PaypalDonations
Post by: Kindred on July 05, 2011, 11:29:44 AM
ummm....   looks like the paypal.template.php displays the linktree a second time (in 2.0, at least, I believe that is handled by the main template). Removing the first table in the paypal template file removes the duplicated linktree.
Title: Re: PaypalDonations
Post by: halfflight on July 08, 2011, 04:02:38 AM
G'day,

I am new to SMF and forums in general.

I have just downloaded and installed your mod with no errors. It generates the tab but I cannot find anywhere under "features and options" the added tab "Donations", or the two text areas for entering the Paypal info, along with a checkbox to enable the donation page.

Using 2.0

Please help

Smithy
Title: Re: PaypalDonations
Post by: snork13 on July 08, 2011, 10:08:16 AM
configurations->modifications settings->donations

hope this helps
Title: Re: PaypalDonations
Post by: halfflight on July 08, 2011, 10:38:05 AM
Thanks for that I couldn't see the forest for the trees. I feel such an idiot!!


Smithy
Title: Re: PaypalDonations
Post by: kattara on July 19, 2011, 05:37:55 PM
I've just added this mod to my site, but the tab is not showing up for the users.  It shows up for me, though.  What did I not do?
Title: Re: PaypalDonations
Post by: DarkAngel612 on July 19, 2011, 05:51:43 PM
what version of smf are you using?
link would be helpful

these will get better answers vs guessing on the helpers/creators end

also did you turn it on in admin
Title: Re: PaypalDonations
Post by: kattara on July 19, 2011, 05:55:04 PM
Yeah, I checkmarked enable donations.  Is there somewhere else I need to edit?  Link:  http://forum.smartphonegeeks.in

Thanks!
Title: Re: PaypalDonations
Post by: DarkAngel612 on July 19, 2011, 06:13:18 PM
I can't remember if you have to go to the default index.template.php file and manually insert the nav link there. make sure all files got uploaded too
Title: Re: PaypalDonations
Post by: kattara on July 19, 2011, 06:15:44 PM
Yup, the install worked without a problem.  I don't understand why I can see the donations link, but noone else can.  :S
Title: Re: PaypalDonations
Post by: DarkAngel612 on July 19, 2011, 07:02:16 PM
Quote from: kattara on July 19, 2011, 06:15:44 PM
Yup, the install worked without a problem.  I don't understand why I can see the donations link, but noone else can.  :S

ok, I just tried it in my 2.0 test forum--- 2.0 gold not any rc version. I installed the mod by snork, not sure if that is the one you installed since there are several.

it installed without a hitch and  I can see it as admin and also in the test user account set to regular member...using google chrome and firefox 5

***edit***

another thought...when you installed it did you remember to check the box at the bottom to install in other templates---if you have other templates for members?
Title: Re: PaypalDonations
Post by: kattara on July 19, 2011, 11:00:04 PM
Quote from: DarkAngel612 on July 19, 2011, 07:02:16 PM
Quote from: kattara on July 19, 2011, 06:15:44 PM
Yup, the install worked without a problem.  I don't understand why I can see the donations link, but noone else can.  :S

ok, I just tried it in my 2.0 test forum--- 2.0 gold not any rc version. I installed the mod by snork, not sure if that is the one you installed since there are several.

it installed without a hitch and  I can see it as admin and also in the test user account set to regular member...using google chrome and firefox 5

***edit***

another thought...when you installed it did you remember to check the box at the bottom to install in other templates---if you have other templates for members?

I'm running 2.0, no rc.  I installed the mod by snork as well.  And yes, I checked the box on the bottom.  I tried uninstalling, deleting the files and reinstalling, but the same thing.  I can see the donations link when I'm admin, but now when I'm a regular member.  :S
Title: Re: PaypalDonations
Post by: DarkAngel612 on July 19, 2011, 11:36:19 PM
lol ok, this i just found out with a couple of themes...my admin link vamoosed sooo, if you are using a different theme it may be the theme.

try uninstalling it totally, removing the files from the server and the pkg out of packages folder. then using the default theme to install the package again.

Title: Re: PaypalDonations
Post by: Doug Varrieur on January 11, 2012, 09:54:13 AM
Hi, I'm using 1.1.16 and tried your mod, here's the message I get- "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  any suggestions?
Title: Re: PaypalDonations
Post by: DarkAngel612 on January 11, 2012, 06:21:08 PM
Quote from: Doug Varrieur on January 11, 2012, 09:54:13 AM
Hi, I'm using 1.1.16 and tried your mod, here's the message I get- "The package you are trying to download or install is either corrupt or not compatible with this version of SMF."  any suggestions?

open the zip then with a text editor change this in the package-info.xml:

find this: should be the first one listed

<install for="1.1.14">
        <modification>modification_1_1_x.xml</modification>
        <require-file name="Themes/Paypal.template.php" destination="$themedir" />
        <require-file name="Sources/Paypal.php" destination="$sourcedir" />
        <code>add_settings_1_1_x.php</code>
    </install>

change to:

<install for="1.1.14, 1.1.15, 1.1.16">
        <modification>modification_1_1_x.xml</modification>
        <require-file name="Themes/Paypal.template.php" destination="$themedir" />
        <require-file name="Sources/Paypal.php" destination="$sourcedir" />
        <code>add_settings_1_1_x.php</code>
    </install>

Rezip it, delete the one on your server then try installing it again
Title: Re: PaypalDonations
Post by: Doug Varrieur on January 12, 2012, 09:30:13 AM
Thanks for the advice, tried what you suggested and received-

"Error in Package Installation, At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF."

There's gotta be an easy way to put a paypal donation button on our forums  :-\  In the footer maybe? 
Title: Re: PaypalDonations
Post by: Kindred on January 12, 2012, 09:51:33 AM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: PaypalDonations
Post by: DarkAngel612 on January 12, 2012, 10:47:46 PM
Quote from: Doug Varrieur on January 12, 2012, 09:30:13 AM
Thanks for the advice, tried what you suggested and received-

"Error in Package Installation, At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF."

There's gotta be an easy way to put a paypal donation button on our forums  :-\  In the footer maybe?

did it happen to show you the errors when the installation page showed up? what I told you to do was what I had to do in order to reinstall after the 1.1.6 updater...that updater messed up everything on the sites that allowed me to do the update from the admin section. the others I had to upload fiels manually after uninstalling all mods to reinstall to the fresh files.
Title: Re: PaypalDonations
Post by: babalola olasehinde on February 11, 2012, 05:43:30 AM
i am using this mod with sfm 2.0  and it install well but the problem i am having is that ones a member login to my site the donation tab will become invisible to him but admin can view and access the donation tab. also guess can access and also view the donation tab. pls what am i doing wrong? thx
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 11, 2012, 04:23:00 PM
Quote from: babalola olasehinde on February 11, 2012, 05:43:30 AM
i am using this mod with sfm 2.0  and it install well but the problem i am having is that ones a member login to my site the donation tab will become invisible to him but admin can view and access the donation tab. also guess can access and also view the donation tab. pls what am i doing wrong? thx

after you installed it did you go to member permissions and set it so the members in each group can see the donwloads page?

did you get any errors when installing it?
Title: Re: PaypalDonations
Post by: babalola olasehinde on February 12, 2012, 01:38:06 AM
i did  not get any error why installing it on my forum www.havilah.info and have check the permission section by i cant seems to find any permission relating to paypal donation.pls what am i doing wrong? I use smf 2.0 .thx
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 12, 2012, 03:41:16 AM
going to admin > Members > Permissions > Regular Members > click modify link

In that very first section there should be a line that says View Donation Page...make sure it has a checkmark at the end of that line

That is all I can think of to do since I am still learning 2.0
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 12, 2012, 04:19:07 AM
My turn about this problem too

Although mine is only a test forum so my admins can get the feel of the new look and all....now that  this problem has arisen I went looking for the actual controls...so different from 1.1.16 where there is a place in features to set the donations page.

I did run across in the Security and Moderation area a HOT spot in between General and AntiSpam that acts like there should be a link there and even shows the link at the bottom of the window----see image please

Is there another place besides Permissions to set the members not guests to see the link for donations page. I did find the spot in Modification Settings for writing in the code and reason...but is there anywhere else?

Thanks
Title: Re: PaypalDonations
Post by: Uhura! on February 25, 2012, 06:39:15 PM
Hi everyone,

I have this mod (http://custom.simplemachines.org/mods/index.php?mod=273) installed & it says the the Donations Tab to control it is under Features & Options.

The good news is - the mod works great...The bad news is, I don't have the tab... or at least - it isn't where the mod says it should be and it isn't where I remember it :(

Can you help?

Thanks!

SMF 2.0 RC3

Works great!


No longer able to control it / no Donations tab...


Not here either...


Title: Re: PaypalDonations
Post by: DarkAngel612 on February 25, 2012, 07:48:42 PM
what version of paypal donations did you use?

any error messages?



mine shows in the modifications settings area
Title: Re: PaypalDonations
Post by: Uhura! on February 25, 2012, 08:46:11 PM
No errors DarkAngel.

You can see in the images I posted - the administrative tab to control the mod isn't showing up in either place...

Very frustrating :(
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 25, 2012, 11:15:02 PM
Quote from: Uhura! on February 25, 2012, 08:46:11 PM
No errors DarkAngel.

You can see in the images I posted - the administrative tab to control the mod isn't showing up in either place...

Very frustrating :(

more questions...did you try looking while in the default theme?

have you tried uninstalling it then reinstalling it

when you follow the link for its page from the forum...is it accessible still

which version of paypal donations did you use and which mod exactly
Title: Re: PaypalDonations
Post by: Drover on February 26, 2012, 02:19:50 AM
Any chance this will be available for 2.02 anytime soon?

The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 26, 2012, 02:39:00 AM
ok, if you are using snork's mod:
http://custom.simplemachines.org/mods/index.php?mod=273

thenn I have attqached the one that works for me in both 2.02 and 1.1.16
Title: Re: PaypalDonations
Post by: Kindred on February 26, 2012, 08:23:40 AM
Unfortunately, unless a mod has an open source license specified, we can't allow others to distribute their own copies...

However, the mod installs just fine on 2.0.2, if you use the emulate version feature - at he bottom o the package manager page, click advanced... Thn choose the version tt he mod needs? In this case, 2.0
Title: Re: PaypalDonations
Post by: DarkAngel612 on February 26, 2012, 07:08:39 PM
Quote from: Kindred on February 26, 2012, 08:23:40 AM
Unfortunately, unless a mod has an open source license specified, we can't allow others to distribute their own copies...

However, the mod installs just fine on 2.0.2, if you use the emulate version feature - at he bottom o the package manager page, click advanced... Thn choose the version tt he mod needs? In this case, 2.0

sorry if I mislead you but that is/was NOT my own mod I uploaded

it is the original one from this site that has only the package-info.xml file edited to include 1.1.99 vs just 1.1.16

it would not work no matter how many times I downloaded it from here for the 1.1.16 forums I manage and I would need to manually edit files but just adding that helped the package manager "see" it and it uploaded then works...1.1.16 forums...the 2.0 forums worked great also after I edited the file.
Title: Re: PaypalDonations
Post by: Kindred on February 26, 2012, 08:19:32 PM
Oh no, I understood... However, the rule, unfortunately still effects the attached files.

And yes, changing the package.xml to include additional versions s what you may do for 1.1.x, but you don't need to do that for 2.0, since you can just emulate versions easily from the package manager.
Title: Re: PaypalDonations
Post by: Drover on February 26, 2012, 08:38:21 PM
Got it working.  Thanks, Kindred.
Title: Re: PaypalDonations
Post by: Uhura! on February 28, 2012, 11:09:58 AM
Quote from: DarkAngel612 on February 25, 2012, 11:15:02 PM
more questions...did you try looking while in the default theme?

have you tried uninstalling it then reinstalling it

when you follow the link for its page from the forum...is it accessible still

which version of paypal donations did you use and which mod exactly

Click here (http://www.simplemachines.org/community/index.php?topic=70046.msg3282159#msg3282159)

Which File has the Admin Tab? I may be able to fix it there right?

Title: Re: PaypalDonations
Post by: DarkAngel612 on February 28, 2012, 03:40:34 PM
Quote from: Uhura! on February 28, 2012, 11:09:58 AM

Which File has the Admin Tab? I may be able to fix it there right?

try checking this file to see if the code is in it....otherwise I would open the zip...look at the modification_2_0_x.xml

then manually check the files on the server to see if the codes were entered into each one....remember to use a duplicate to edit on.

Go to: sources/Admin.php

search for:

'paypal' => array($txt['paypal_title']),



it should be located just before: 'general' => array($txt['mods_cat_modifications_misc']),


Title: Re: PaypalDonations
Post by: Uhura! on February 29, 2012, 04:19:56 PM
Ok...so i looked in the location you suggested. The paypal bit of code is not there... what's next?
Title: Re: PaypalDonations
Post by: DarkAngel612 on March 01, 2012, 12:00:28 AM
Quote from: Uhura! on February 29, 2012, 04:19:56 PM
Ok...so i looked in the location you suggested. The paypal bit of code is not there... what's next?

find his code:

'general' => array($txt['mods_cat_modifications_misc']),


immediately after it ADD this one:

'paypal' => array($txt['paypal_title']),

save and upload it to the server once more---use a duplicate file.

Hope that lets it show in the admin section where it is supposed to be located.
Title: Re: PaypalDonations
Post by: AllanD on March 25, 2012, 11:03:49 AM
Does this mod work with 2.0.2?
Title: Re: PaypalDonations
Post by: DarkAngel612 on March 25, 2012, 06:55:15 PM
Quote from: CrazieGrafix on March 25, 2012, 11:03:49 AM
Does this mod work with 2.0.2?

yes it does I use it in all my forums I handle including my own.
Title: Re: PaypalDonations
Post by: AllanD on March 25, 2012, 10:15:04 PM
Thanks I have it installed now.
Title: Re: PaypalDonations
Post by: Uhura! on July 21, 2012, 02:49:27 AM
Quote from: DarkAngel612 on March 01, 2012, 12:00:28 AM
Quote from: Uhura! on February 29, 2012, 04:19:56 PM
Ok...so i looked in the location you suggested. The paypal bit of code is not there... what's next?

find his code:

'general' => array($txt['mods_cat_modifications_misc']),


immediately after it ADD this one:

'paypal' => array($txt['paypal_title']),

save and upload it to the server once more---use a duplicate file.

Hope that lets it show in the admin section where it is supposed to be located.

Thanks so much - this fixed the problem! :D
Title: Re: PaypalDonations
Post by: OzzyMozzy on October 02, 2012, 08:49:15 AM
The permission setting for who can view the Donation page has gone under all member groups, im the only one that can see the donation page.

Any ideas what could have happened?
Title: Re: PaypalDonations
Post by: PPZ-01 on February 20, 2013, 08:13:42 PM
       Just for the record, this modification installed successfully on SMF 2.0.4.It complained that it is unable to make modification to index.template.php but I continued, and it seems working, except permissions (everybody are able to access donations page).It worked on default (curve) theme, as well as on core, Anecdota, simpleboard and Clicksafe Pro-sidebar.So far, so good. :D

       Ofcourse, I had to enable SMF 2.0 emulation, in order to install.
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 11:51:51 AM
Question: How do I change the title (in red below) from "Donations" to "Payments & Donations"?



Thanks!
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 11:59:29 AM
probably in modifications.english.php
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 12:06:41 PM
Quote from: Kindred on December 09, 2013, 11:59:29 AM
probably in modifications.english.php

Found the modifications.english.php here public_html/com/Themes/default/languages

It did not change hen I changed the bit in green. Any other ideas?

Quote$txt['paypal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
$txt['DonationsNotEnabled'] = 'Sorry, the donation page is not enabled at the moment. Please check back later.';
// Reason for editing mod
$txt['reason'] = 'Reason';
$txt['reason_edit'] = 'Reason For Edit';
$txt['permissionname_reason_edit'] = 'Set Reason for edit';
$txt['permissionhelp_reason_edit'] = 'Set if the membergroup is allowed to put the reason for edit their own posts.';
// Reason for editing mod END
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 12:13:34 PM
did you clear the forum cache and your browser cache?
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 12:20:51 PM
Quote from: Kindred on December 09, 2013, 12:13:34 PM
did you clear the forum cache and your browser cache?

Automatically done each time I hit the refresh button.

You try it please: http://ourmomspot.net/community/index.php?action=paypal
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 12:23:47 PM
but did you clear the FORUM cache?
Title: Re: PaypalDonations
Post by: Arantor on December 09, 2013, 12:24:41 PM
Please attach your Modifications.english.php file... I can think of reasons why it might not work even though you've changed it.
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 01:11:42 PM
Hi,

I put everything back the way it was:

/home/ourmo0/public_html/com/Themes/default/languages/Modifications.english.php

Thanks for your help with this :)

Quote<?php
// Version: 2.0; Modifications

// SMF Sitemap Strings
$txt['sitemap'] = 'Sitemap';
$txt['sitemap_boards'] = 'Boards';
$txt['sitemap_topics'] = 'Topics';
$txt['sitemap_xml'] = 'Show Sitemap XML <em>link</em>';
$txt['sitemap_topic_count'] = 'Maximum number of topics to display in XML sitemap<br /><span class="smalltext">0 to show all (<strong class="error">NOT RECOMMENDED ON LARGE BOARDS</strong>)</span>';
$txt['sitemap_cache_ttl'] = 'Time that XML data should be cached (seconds)';
$txt['sitemap_board_none'] = 'No boards to display';
$txt['sitemap_topic_none'] = 'No topics to display';
$txt['sitemap_30day_priority'] = 'Priority for topics active in the last 30 days';
$txt['sitemap_60day_priority'] = 'Priority for topics active in the last 60 days';
$txt['sitemap_90day_priority'] = 'Priority for topics active in the last 90 days';
$txt['sitemap_91day_priority'] = 'Priority for topics older than 90 days';
$txt['invalid_sitemap_subaction'] = 'Invalid selection';

$txt['banned_user_avatar_url'] = 'For banned users, use this URL as an avatar:';
$txt['default_user_avatar_url'] = 'For users who have not set an avatar, use this URL as an avatar:';

$txt['noisen_footnote'] = 'Footnote';

$txt['infobox'] = 'Add Info Box';

$txt['sd_add'] = 'Share me:';
$txt['sd_social_bookmarks'] = 'Share me';


$txt['paypal'] = 'Donations';
$txt['cannot_payPal_view'] = 'Sorry, you\'re not allowed to view the Donation Page.';
$txt['permissionname_payPal_view'] = 'View Donation Page';
$txt['permissionhelp_payPal_view'] = 'Allow the people to view the Donation Page.  If not set, the people will not see the page.';
$txt['DonationsNotEnabled'] = 'Sorry, the donation page is not enabled at the moment. Please check back later.';
// Reason for editing mod
$txt['reason'] = 'Reason';
$txt['reason_edit'] = 'Reason For Edit';
$txt['permissionname_reason_edit'] = 'Set Reason for edit';
$txt['permissionhelp_reason_edit'] = 'Set if the membergroup is allowed to put the reason for edit their own posts.';
// Reason for editing mod END

//reCAPTCHA for SMF
$txt['recaptcha_configure'] = 'reCAPTCHA Verification System';
$txt['recaptcha_configure_desc'] = 'Use the reCAPTCHA Verification System. Don\'t have a key for reCAPTCHA? <a href="http://recaptcha.net/api/getkey?app=recaptcha_for_smf"> Get your reCAPTCHA key here</a>.';
$txt['recaptcha_enabled'] = 'Use reCAPTCHA Verification System';
$txt['recaptcha_enable_desc'] = '(This replaces the built-in visual verification with reCAPTCHA)';
$txt['recaptcha_theme'] = 'reCAPTCHA Theme';
$txt['recaptcha_theme_clean'] = 'Clean';
$txt['recaptcha_theme_blackglass'] = 'Black Glass';
$txt['recaptcha_theme_red'] = 'Red';
$txt['recaptcha_theme_white'] = 'White';
$txt['recaptcha_public_key'] = 'reCAPTCHA Public Key';
$txt['recaptcha_private_key'] = 'reCAPTCHA Private Key';
$txt['recaptcha_no_key_question'] = 'Don\'t have a key for reCAPTCHA?';
$txt['recaptcha_get_key'] = 'Get your reCAPTCHA key here.';

$txt['permissionname_profile_signature'] = 'Edit signature';
$txt['permissionname_profile_signature_own'] = 'Own signature';
$txt['permissionname_profile_signature_any'] = 'Any signature';
$txt['permissionname_simple_profile_signature_own'] = 'Edit their signature';
$txt['permissionname_simple_profile_signature_any'] = 'Edit other people\'s signatures';

$txt['permissionname_profile_website'] = 'Edit website details';
$txt['permissionname_profile_website_own'] = 'Own profile';
$txt['permissionname_profile_website_any'] = 'Any profile';
$txt['permissionname_simple_profile_website_own'] = 'Edit their website details';
$txt['permissionname_simple_profile_website_any'] = 'Edit other people\'s website details';

$txt['permissionname_profile_displayname'] = 'Edit display name';
$txt['permissionname_profile_displayname_own'] = 'Own display name';
$txt['permissionname_profile_displayname_any'] = 'Any display name';
$txt['permissionname_simple_profile_displayname_own'] = 'Edit their displayed name';
$txt['permissionname_simple_profile_displayname_any'] = 'Edit other people\'s displayed name';

// PJL : Start of Redirect on login/logout Mod.
$txt['logon_redirect_enable'] = 'Enable Logon Redirect<br /><span class="smalltext">(This redirect users to given URL when they login)</span>';
$txt['logon_redirect_url'] = 'Enter Login URL';
$txt['logout_redirect_enable'] = 'Enable Logout Redirect?<br /><span class="smalltext">(This redirect users to given URL when they logout)</span>';
$txt['logout_redirect_url'] = 'Enter Logout URL';
// End Mod.

$txt['lbnr'] = 'Look But No Read';
$txt['mods_cat_lbnr'] = 'Look But No Read';
$txt['boards_deny_guest_browsing'] = 'Boards to deny guest reading:';
$txt['categories_deny_guest_browsing'] = 'Categories to deny guest reading:';
$txt['enable_guest_browsing_control'] = 'Enable guest browsing control:';

// Bad Behavior Start
$txt['permissionname_badbehavior_goodgroup'] = 'Bad Behavior Whitelist Group';
$txt['permissionhelp_badbehavior_goodgroup'] = 'This option will make a member group exempt from all Bad Behavior tests.';
// Bad Behavior End

//   MOD Stop Spammer - START
$txt['stopspammer_error'] = 'Error with Anti SPAM DB. Connection Failed.<br />
Please try again later, or Contact with the WebMaster';
$txt['stopspammer_count'] = 'Spammers blocked up until today';
$txt['stopspammer_title'] = 'Search more info in `Stop Forum Spam`';

$txt['stopspammer_enable'] = 'Enable/Disable MOD Stop Spammer';
$txt['stopspammer_show01'] = 'Show Link "More Info" for All Members';
$txt['stopspammer_show01_sub'] = 'You can check any member at any time with one simple click';

$txt['stopspammer_faildb'] = 'If the Connection Fail with Anti SPAM DB...';
$txt['stopspammer_fail01'] = 'Show Error and Stop Registration';
$txt['stopspammer_fail02'] = 'Allow Immediate Registration';
$txt['stopspammer_fail03'] = 'Member Approval and show yellow icon to check later';
$txt['stopspammer_faildb1_sub'] = 'Your host can make remote connection with the DB';
$txt['stopspammer_faildb2_sub'] = 'Your host couldn\'t make connection with the DB. Try again later.<br />
If this error continues see Support Topic and search ';
$txt['stopspammer_not_translate'] = '<a href="http://www.simplemachines.org/community/index.php?topic=283309.msg1920848#post_issues"><span class="error"><b>Known Issues</b></span></a>';

$txt['stopspammer_leyd01'] = 'Not Spammer: This data wasn\'t in a DB. But you can check';
$txt['stopspammer_leyd02'] = 'Suspect: This member couldn\'t be checked. Check now';
$txt['stopspammer_leyd03'] = 'Spammer: See more info of activity of this spammer';

$txt['stopspammer_profilecheck'] = 'Check this member';
$txt['stopspammer_limitexceded'] = 'You have exceded the check limit (5000 API queries per day).<br />You should wait until tomorrow to check again.';

$txt['in_stop_forum_spam'] = 'In Stop Forum Spam Web:';
$txt['spammers_checks'] = 'Check these Members';
$txt['spammers_report'] = 'Report these Members';
$txt['confirm_spammers_checks'] = 'Are you sure you want to check the selected members?';
$txt['confirm_spammers_report'] = 'Are you sure you want to report the selected members?\n\nThink that when you report a member to SFS they are marked as spammer all over the world\nand they won\\\'t be able to use any of the forums connected to SFS around the world.\n\nDo it only if you are completely sure they are spammers and if by any chance you make a mistake\ntell as soon as possible the mod\\\'s creator to correct the mistake inside the SFS database.';

$txt['stopspammer_api_key'] = 'Your API key';

$txt['stopspammer_check_name'] = 'Check their username';
$txt['stopspammer_check_mail'] = 'Check their email';
$txt['stopspammer_check_ip'] = 'Check their IP';
$txt['stopspammer_check_sub2'] = 'By default, every time you check a member with MOD Stop Spammer it will check their username, email and IP. If you are getting too many false positives because of their usernames you can turn that option off. We wouldn\'t recomend you to turn off the another 2 options (to check their email and IP) unless you know what you are doing.';

// Changed from 2.3.8 to 2.3.9
$txt['stopspammer_check_sub1'] = 'If MOD Stop Spammer is enabled, every time we check a member:';
$txt['stopspammer_api_key_sub'] = 'If you want to use your own API key you must go first to <a href="http://www.stopforumspam.com/signup" target="_blank">www.stopforumspam.com</a> to sign up for one and write it here. If you haven\'t got one you cannot report spammers with this mod.<br /><br />If you need help with this configuration or with anything else about Mod Stop Spammer, apart from the support forums, you can also ask for online help. If you have already installed Mod httpBL you can see how to ask for online help going to Admin => MOD httpBL => Help. If you haven\'t got it you can <a href="http://www.snoopyvirtualstudio.com/contact.php?language=english" target="_blank">see more info here</a>.';

// New in version 2.3.9
$txt['stopspammer_settings'] = 'MOD Stop Spammer settings';
$txt['stopspammer_enable_sub'] = 'With this check-box checked the mod is ON. With the check-box unchecked the mod is OFF.';
$txt['stopspammer_error_no_api_key'] = 'You cannot report a spammer without an API key from www.stopforumspam.com<br /><br />You need to register on their site first, ask them for an API key and then navigate inside your forum to:<br />Admin => Members => Registration => Settings<br />Scroll down to Stop Spammer settings, write your API key there and save your settings.';
$txt['stopspammer_no_connect_1'] = 'Mod Stop Spammer is ON but there is no connection just now with Stop Forum Spam. Please try later.';
$txt['stopspammer_no_connect_2'] = 'If the problem persists ask for help in the <a href="http://www.snoopyvirtualstudio.com/foro/index.php?board=31.0" target="_blank">official support forum</a>.';
$txt['stopspammer_new_version_1'] = 'Mod Stop Spammer is ON but it is not up-to-date.';
$txt['stopspammer_new_version_2'] = 'There is a new version of this mod. The version you have is: ';
$txt['stopspammer_new_version_3'] = '<a href="http://www.snoopyvirtualstudio.com/foro/index.php?board=31.0" target="_blank">Please update it here whenever you can</a> to the new version: ';
$txt['stopspammer_all_ok'] = 'Mod Stop Spammer is ON, it is up-to-date and the connection with Stop Forum Spam is perfect.';
$txt['stopspammer_is_off'] = 'Mod Stop Spammer is OFF.';
//   MOD Stop Spammer - END

// Topic Solved
$txt['topic_solved'] = 'Topic Solved';
$txt['topic_not_solved'] = 'Topic Not Solved';
$txt['topic_solved_quick'] = 'Mark selected as solved';
$txt['topic_solved_quick_confirm'] = 'Are you sure you want to mark selected topics as solved?';

$txt['topic_solved_board'] = 'Topic Solved Board';
$txt['topic_solved_board_desc'] = 'Enables the Topic Solved feature in the board';

$txt['topic_solved_log'] = 'Topic Solved Log';
$txt['topic_solved_no_log'] = 'There are no topic solve actions logged.';
$txt['topic_solved_desc'] = 'Lists topic solved actions that have been performed by moderators on your forum.';
$txt['modlog_topicsolved_log_desc'] = 'Below is a list of all the topic solved actions that have been carried out by moderators of the forum.<br /><b>Please note:</b> Entries cannot be removed from this log until they are at least twenty-four hours old.';
$txt['modlog_ac_solve'] = 'Solved &quot;{topic}&quot;';
$txt['modlog_ac_not_solve'] = 'Un-Solved &quot;{topic}&quot;';

$txt['permissionname_solve_topic'] = 'Marks topics solved';
$txt['permissionhelp_solve_topic'] = 'This permission allows a user to a topic solved.';
$txt['permissionname_solve_topic_own'] = 'Own topic';
$txt['permissionname_solve_topic_any'] = 'Any topic';
$txt['permissionname_simple_solve_topic_own'] = 'Mark their own topic as solved';
$txt['permissionname_simple_solve_topic_any'] = 'Mark anyone\'s topic as solved';

$txt['topic_solved_error_no_board'] = 'Sorry, topic solved feature is not enabled in this board.';
$txt['cannot_support_tools_solve_topic_own'] = 'You cannot mark your topics as solved.';
$txt['cannot_support_tools_solve_topic_any'] = 'You cannot mark topics as solved.';
// Topic Solved

$txt['pm_register'] = 'Send pm to new members';
$txt['pm_register_id'] = 'Select the ID of the sender';
$txt['pm_register_username'] = 'Select the Username of the sender';
$txt['pm_register_subject'] = 'The subject of the PM';
$txt['pm_register_body'] = 'The message of the PM (BBCODE)';
$txt['pm_register_body_desc'] = 'This is where you set the message that you would like to send to the user. To insert the username of the user just insert "<b>{$username}</b>".  For forum name use "<b>{$forumname}</b>".';

$txt['googleAnalyticsCode'] = 'Google Analytics code<br /><span class="smalltext">E.g. UA-00000000-0</span>';

?>
Title: Re: PaypalDonations
Post by: Chalky on December 09, 2013, 01:13:44 PM
It's easier if you attach the actual file rather than copying and pasting it  ;)
Title: Re: PaypalDonations
Post by: Arantor on December 09, 2013, 01:19:08 PM
Hmm, I was suspecting that maybe you had ended up with two copies of the mod's code in there but that's not it.

Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 01:26:02 PM
File attached for ease :)
Title: Re: PaypalDonations
Post by: DarkAngel612 on December 09, 2013, 01:39:16 PM
Try this:

Go to: duplicate file for editing.

sources/subs.php


Find:

                'paypal' => array(
                'title' => $txt['paypal'],
                'href' => $scripturl . '?action=paypal',
                'show' => $context['allow_paypal'],
                'sub_buttons' => array(
                ),
            ),


Replace with (changes are red):

'paypal' => array(
                'title' => 'Payments & Donations',
                'href' => $scripturl . '?action=paypal',
                'show' => $context['allow_paypal'],
                'sub_buttons' => array(
                ),
            ),


Save and upload your copy to server to replace it.


***EDIT****


I see what that is and no the code above will change the name in the meu bar.

What you want to do is go to your forum admin/portal area

I do not use that portal so not sure how it works but that is a block title and you can change it in admin---if it is like tiny portal is.

you could upload a screenshot of your portal block area to see.
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 02:11:00 PM
The title in use in all cases is "donations" not "paypal" so this doesn't seem right.
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 02:15:59 PM
$txt['paypal'] if the string that calls it

you need to change
$txt['paypal'] = 'Donations';
in modifications.english.php
to be
$txt['paypal'] = 'Payments & Donations';

(or wait...   are you using English-utf8?   If so, you will need to change modifications.english-utf8.php)
Title: Re: PaypalDonations
Post by: DarkAngel612 on December 09, 2013, 02:17:44 PM
Yes that is the way it appears to everyone....donations not paypal

But the first code I gave you is to customize the name in the menu and then the titles you see in the pink bar of your site is either the category or block of the portal and can be adjusted there in your forum admin section --- presuming it is like tiny portal.

if you I join you could give me admi for just long enough to see what it is like and then I can tell for certain if you can change it there for the title you want.
Title: Re: PaypalDonations
Post by: Chalky on December 09, 2013, 02:51:17 PM
Uhura, is the "Donations" actually the name of the page created in Simple Portal?  If so you would need to change it via the simple portal settings > pages and edit the title of that page.
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 03:23:28 PM
Here's how this looks in the admin panel:

The page is long with a big empty space in the center so I posted two images.

There is no way to change the page title from the admin panel. It must be done from the files.



Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 03:23:58 PM
Quote from: Kindred on December 09, 2013, 12:23:47 PM
but did you clear the FORUM cache?

How should that be done?
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 03:28:16 PM
Quote from: Kindred on December 09, 2013, 02:15:59 PM
$txt['paypal'] if the string that calls it

you need to change
$txt['paypal'] = 'Donations';
in modifications.english.php
to be
$txt['paypal'] = 'Payments & Donations';

After you make the text change:

admin > maintenance >clear forum cache


Also, I note that you never answered my other question...
Quote
(or wait...   are you using English-utf8?   If so, you will need to change modifications.english-utf8.php)

Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 03:32:20 PM
Quote from: Kindred on December 09, 2013, 02:15:59 PM
$txt['paypal'] if the string that calls it

you need to change
$txt['paypal'] = 'Donations';
in modifications.english.php
to be
$txt['paypal'] = 'Payments & Donations';

(or wait...   are you using English-utf8?   If so, you will need to change modifications.english-utf8.php)

Doing that changed the text in the menu bar @ the top of the page :)
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 03:37:05 PM
Quote from: Kindred on December 09, 2013, 03:28:16 PM
Quote from: Kindred on December 09, 2013, 02:15:59 PM
$txt['paypal'] if the string that calls it

you need to change
$txt['paypal'] = 'Donations';
in modifications.english.php
to be
$txt['paypal'] = 'Payments & Donations';

After you make the text change:

admin > maintenance >clear forum cache


Also, I note that you never answered my other question...
Quote
(or wait...   are you using English-utf8?   If so, you will need to change modifications.english-utf8.php)


Modifications.english.php... and it changed the wording in the top menu bar...not the wording I was aiming for. :)
Title: Re: PaypalDonations
Post by: Kindred on December 09, 2013, 03:38:59 PM
YES...   the same text is used to display the title in both places - both in the page title bar and the menu bar.

You can not change one without changing the other - unless you change the actual coding.
Title: Re: PaypalDonations
Post by: Chalky on December 09, 2013, 03:41:11 PM
There is also this one you could try changing in languages/ManageSettings.english.php:

$txt['payPalFO'] = 'Donations';
Title: Re: PaypalDonations
Post by: Uhura! on December 09, 2013, 03:46:36 PM
Quote from: Kindred on December 09, 2013, 03:38:59 PM
YES...   the same text is used to display the title in both places - both in the page title bar and the menu bar.

You can not change one without changing the other - unless you change the actual coding.

Gotcha!

OK. this works, thanks :)
Title: Re: PaypalDonations
Post by: DarkAngel612 on August 02, 2014, 05:32:50 PM
ok I am in here cause the powers that be have checked the file in the error and said it is not smf files being mean so .......this is what I posted:

Well I don't know what else to do but ask about this error message.
8: Undefined index: label
File: /home/severa/public_html/angelwingcreations/limbo/Themes/default/GenericMenu.template.php
Line: 327


It only appears when accessing the security link in admin and only with Paypal Donations as the one and only mod package installed.

This is a closed (no registrations allowed) for now but if this keeps happening I know not what to do.

Granted this package is from version 2.0 of SMF Snork's http://custom.simplemachines.org/mods/index.php?mod=273 (http://custom.simplemachines.org/mods/index.php?mod=273)

I have used this one many times in the past versions but now with 2.0.8 it coughs up that error.

No conflict with any other mod since I uninstalled, reuploaded fresh files to make sure it was gone, ensured its files were gone then reinstalled it to test.

still the error persists. I have looked all through the files it has for the word : Label and it is not there.

I have since removed it from the active packages and only have Tiny Portal now.

Any ideas what to do to not have this error? I fear that my active sites also have this error since it is used for donations. I saw the slightly newer versions offered but this one is perfect, I can have a block or link depending on the site.

I forgot...when this package is activated the error show up, with other packages...and yes I tried others to see, the error is not there.

Although in its file for the manual edits it does list the items for karma --- $txt['karmaLabel'] = 'Karma label';

that is the only "label" I found...would removing the word from its description there stop the error in admin?

The powers that be say: That line is the input field for visual verification (captcha) on the registration form.  That section of code has not been edited by the mod, it's identical to default code, so the problem is elsewhere, possibly one of the variable values has been affected by the mod.  You'd have to take this up with the mod author.

Hence here I be bugging ya too.

OH YES< I did a work around since I have Tiny Portal installed too, I just made an html/java block and inserted our code in it. This works just as well but for those that are having trouble and do want the menu link as their way to access Paypal, maybe you can see what's up,
Title: Re: PaypalDonations
Post by: petewadey on May 02, 2015, 10:10:53 AM
Does this mod still work on 2.0.10? Thanks in advance
Pete
Title: Re: PaypalDonations
Post by: petewadey on July 30, 2016, 03:35:14 AM
Hi, I need to remove this mod from my forum. Can anyone tell me how? Thanks
Title: Re: PaypalDonations
Post by: Kindred on July 30, 2016, 06:59:53 AM
uninstall the mod?
Title: Re: PaypalDonations
Post by: petewadey on July 30, 2016, 07:26:09 AM
In my package manage it only gives me the option of delete or list files? No uninstall. All other mods have uninstall but not PaypalDonations. I have switched the button off so my members can no longer see it, but for good house keeping, I wanted to remove it.
Pete
Title: Re: PaypalDonations
Post by: Kindred on July 30, 2016, 07:42:08 AM
you have to set the emulation to a version of SMF that the mod supports internally...

http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: PaypalDonations
Post by: Apllicmz on June 14, 2020, 08:04:52 PM
i try to install forum



Call to undefined function mysql_fetch_assoc()
Title: Re: PaypalDonations
Post by: Arantor on June 14, 2020, 08:31:02 PM
The mod was not written to use SMF's proper DB functions and has not been updated for PHP 7.
Title: Re: PaypalDonations
Post by: Apllicmz on June 15, 2020, 04:05:19 AM
Yes I am using php 7 now it will be updated or I can change it
Title: Re: PaypalDonations
Post by: Arantor on June 15, 2020, 05:57:53 AM
The mod needs to be rewritten to use all the proper $smcFunc calls everywhere.
Title: Re: PaypalDonations
Post by: Apllicmz on June 15, 2020, 11:34:25 AM
Thanks the owner of the Mod is available here