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
(http://img151.imageshack.us/img151/1325/paypalsample16zu.gif)
(http://img154.imageshack.us/img154/3778/paypalsample23ki.gif)
(http://img224.imageshack.us/img224/2055/permissionspaypal6rm.gif)
(http://img335.imageshack.us/img335/3830/permissionspaypal26oc.gif)
I`m gettting an error in Index.template.php when trying to install this. Is there a fix ???
How to center?
http://arkserver.servehttp.com/index.php?action=paypal
works here.
//edit
edit nvm
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
I got it to work on my test site. It was a tab it couldnt put in. It works now.
good mod but is possible do that only certanly users gropus view it? i not want that all users groups see the message
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
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!
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
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?
Thanks! This is gr8!! :)
*EDIT*
i get this error
Quote3. Execute Modification ./Themes/default/index.template.php Test failed
what do I do ??
Awesome! Everything seems to work perfectly now!
Thank you - this makes my life easier :)
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
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 :)
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'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
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
Nice mod, but I'm getting the error below. Any thougts?
QuoteUnable to load the 'main' template.
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
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.
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
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.
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
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!
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... :)
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.
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.
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.
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.
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
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
Yep that fixed it cheers. ;D
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?
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
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.
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 . '"> </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 . '"> </td>' : '';
After it add
// the [paypal] button.
echo ($current_action=='paypal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </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 . '"> </td>' : '';
Save and upload the modified file and the mod will now work!
Gerry[/code]
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.
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.
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.
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
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.
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
thanks man. Im gonan try it out right now
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
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
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]
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.
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
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?
Only bad thing is most themes that i have seen doesn't have the donate button avaliable.
You have to add it to any theme other than the default.
Yes but don't you need a button already made for the theme?
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.
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?
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?
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
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?
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!
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.
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!
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. (http://www.meliorists.com/images/smf.butt.donations.gif) or this one I just made: (http://www.meliorists.com/images/smf.butt.donations.h.gif)
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!
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'
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! :)
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.
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?
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
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/)
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 )
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?
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))
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.
I think you have to add the button image. I`m pretty sure anyway, unless you have already.
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.
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
Does this automatically add them to a group after donation or no?
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 :).
Thank you very much.
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?
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
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?
Could someone reply to my question one page above ? I really need help.
Everything the mod failed on you will have to do those modifications yourself manually.
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
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
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
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
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?
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.
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.
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?
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
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:
(http://img512.imageshack.us/img512/8033/untitled0om1.png)
any update?
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
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
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
Execute Modification ./Sources/ManagePermissions.php Test failed
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.
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?
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
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?
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?
does it work on v1.0.7?
No I don`t believe it does
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!
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
You could do those edits manually. All the edits should be in the .xml file thats packaged with the mod.
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
This mod is only available with SMF1.1 rc2
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.
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)
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.
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
Thanx buddy... I'll give it a try ;D :D
Anytime. :)
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.
The add_settings.php is not working.
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?
It isn't working from the install package.
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
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 ;)
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.
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
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.
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
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.
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.
Great mod snork - works like a dream, thanks ;D
How does one go about integrating this into a theme other than default? Is there a thread that shows how to do this?
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
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.
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.
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.
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....
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.
Are the instructions for doing so in this thread? I'll take a look....
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
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.
Has anyone tested this on 1.1?
Mine seems to be working fine.
hey snork. great mod.. if i could just get it to save the settings lol :D
Is there any solution to that bug ?
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?
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
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
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 ?
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...
/me feels like a complete jerk for not searching for that second one. it works now. Thanks alot ;)
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
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.
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 . '"> </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 . '"> </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 . '"> </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 . '"> </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>
?? 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.
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
much thanks!
:D
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?
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.
@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.
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
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
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.
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,
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.
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.
i was refering to the default theme... thank you very much.
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.
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
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?
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
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.
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
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.
thanks for your help, snork.
this guy is good people, folks.
How do I get the donation button to work on other themes? Can someone please help me?
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 . '"> </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 . '"> </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.
Ugh.
I just tried to install this mod on 1.1.2
Nuffin happens. Helpeth please? Purdy please?
With sugar on top?!
=)
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.
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.
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.
it may also be because I need to update it for 1.1.2 ;D
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
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!
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 :)
i am lovin you!!! You know this, right?
Lizzy
The GPG Goddess
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
I Have the same Problem :-(
do you have other mods installed? If so which ones.
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
also i am using smf 1.1.2 fresh install
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
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
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?
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.
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
yes, and then try this after removing the .txt ;)
snork, i love you
i just needed you to know ;)
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
snork that worked bad a** thank you very much for all your help.
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:
(http://www.sixapart.com/typepad/widgets/images/chipin-screenshot.png)
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
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.
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
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
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
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
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??
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.
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.
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 . '"> </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 . '"> </td>' : ''
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:
(http://www.sixapart.com/typepad/widgets/images/chipin-screenshot.png)
Looked interesting, but I don't like the thought of giving a third party so much personal info.
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.
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.
Double check you made all the code changes, and that you ran the changes to the database?
-Snork13
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
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
I have checked the modsettings.php file and all the edits are there.
I installed this and everything went fine but the donate tab isn't showing up?
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!
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?
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.
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?
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?
???
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
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?
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?
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?
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.
I ran it through the package manager, then manually made the modifications to the ones that had a problem.
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.
Ok, I attached the file for you.
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'
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.
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.
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?
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?
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?
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
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.
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 :)
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,
(http://i26.photobucket.com/albums/c118/Benan/NoPp.png)
im using... SMF 1.1.2
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,
(http://i26.photobucket.com/albums/c118/Benan/NoPp.png)
im using... SMF 1.1.2
Can you check the default theme?
I reset theme to default, still no textboxes or donation related stuff.
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¤cy_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.
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 !
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.
(http://i26.photobucket.com/albums/c118/Benan/pp.png)
^ That doesnt look like your screenshots.
And i tried filling text boxes dont notice anything different in forum index.
Hi everyone, i need paypal donation Mod for smf 1.1.2
Thanks
try using search?
http://custom.simplemachines.org/mods/index.php?mod=273
ya, i know about that, but doesnt work with Smf 1.1.2
Its shows error.
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?
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.
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)
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
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...
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?
you will have to manually apply the mod to any template files in the Dilber theme...
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?
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 . '"> </td>' : '' , '
<td align="center" class="menubg' , $current_action == 'paypal' ? '2' : '' , '">
<a href="', $scripturl, '?action=paypal">' , $txt['payPal'] , '</a>
</td>';
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
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
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.
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
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?
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
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
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.
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: 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
Has anyone added the PaypalDonations mod to the Babylon Template. I would love to know how.
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
(http://img151.imageshack.us/img151/1325/paypalsample16zu.gif)
(http://img154.imageshack.us/img154/3778/paypalsample23ki.gif)
(http://img224.imageshack.us/img224/2055/permissionspaypal6rm.gif)
(http://img335.imageshack.us/img335/3830/permissionspaypal26oc.gif)
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
9. Extract File ./Sources/Paypal.php
10. Execute Code add_settings.php
Plz Plz help me I am not very good at SMF.Help appreciated a lot.
!!
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.
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
I have these mods installed:
Avatar on Member List
SMFShop
Reg Bar
YouTube BBC Tag (XHTML Compliant)
SMF Poll Mod
Profile Comments
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?
yes
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.
Execute Modification ./Sources/ModSettings.php ?? anyone
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
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
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
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
make for 1.1.3 soon lol.
I'm also waiting for it (1.1.3) .....
Let us know by when would it be available .....
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.
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 ... ???
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?
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 :(
i was runnng the Mod on 1.1 RC3. Then updated to 1.1.3 It works fine.
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 :(
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 ........
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?
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!!!!
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.
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 :(
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
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 .... ;)
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 !
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.
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.
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 !
I also have the same problem with ./Sources/ModSettings.php Test failed
What file to i need to edit manually?
Anyone? Im using Metallic-Abyss-1.1
www.gfx-genie.co.uk
<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>
Could you please put where this goes i think in the modification.xml? I have replaced it still have the same error.
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
That makes no sense to me.
In that link, that was .mod or .xml.
You said changes in the Modsetting which is php.
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.
Nevermind ill leave it.
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 !
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
ok , thnx .
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? :)
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 :)
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(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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);
}
?>
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(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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);
}
?>
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.
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
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(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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 . '"> </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 . '"> </td>' : '';
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(' ', ' ', '"3" ' . $txt['smf236'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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 . '"> </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 . '"> </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);
}
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);
}
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
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 . '"> </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 . '"> </td>' : '';
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 . '"> </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 . '"> </td>' : '';
looks good, make sure you enable the mod in the admin section or you won't see the button :)
Quotemake sure you enable the mod in the admin section or you won't see the button
(http://holdenbarina.pammie.me.uk/Forums/Smileys/default/doh.gif)
~I knew that really~ ;D
3. Execute Modification ./Sources/ModSettings.php Test failed
That's only failed. I am using 1.1.3.
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
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
how do u install this mod :(
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
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
and will this then apply to all my other themes ???
thanks it worked
thank you a lot for the mod :D
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
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.
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
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
thanks alot :)
brilliant mod by the way ;) in only a week i've got enough revenue to pay a whole years worth of webhosting
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
i live in the philippines, and paypal doesnt allow us to received funds, is there any donation mod that uses cc? :P
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?
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?
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
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.
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.
*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.
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
Thanks snork. I got my husband to fix it for me! It's a great MOD!
what i would like to know is how do you upload this to your forums?
any help would be greatfull thanks
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
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
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
Ive tried to download it, but ive got this error
Execute Modification ./Sources/ModSettings.php Test failed
how can i fix this?
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/)
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.
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.
Thanks for examining and fixing that file, greatly appreciated!
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
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.
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/)
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!!
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 >:( :D
What did you modified/added?
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!
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.
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
Thanks I'm using SMF Shoutbox 1.16
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?
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
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.
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
:-* :-* :-* :-* :-* :-*!!
It works!
Thank you SO much - for the mod itself & for sorting the problem.
:-* :-* :P
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 :)
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 ???
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);
}
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 ?
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
Hope this works,, but I have attached a copy of the file that you wanted.
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
is this the file you mean ?????
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.
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/)
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....
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 ;)
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
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?
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
This is what mine says:
DELETED SINCE IT GOT NO RESPONSE
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/)
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.
is it possible that this doesn't work on SMF 1.1.4 ?
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 :(
Same here on 1.1.4
This stinks, cos it's a great addition :(
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)
I updated the mod for 1.1.4, tested on a fresh/clean install, works great :)
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?
Please see another of my replies to you...your language settings are at fault...probably set to English utf8 not English.
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) (http://i21.tinypic.com/xknc50.jpg)
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.)
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?
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.
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. :)
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?
No it doesn't.
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
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) (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.)
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
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. ???
ok i got this to go into my forum now all i need is to get it installed
Instructions on how to manually install a mod:
http://docs.simplemachines.org/index.php?topic=402
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?
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)
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
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
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)?
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
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/
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/
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
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?)
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/
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
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>
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/
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');
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/
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/)
I would be happy to look around, contact me via pm.
-snork13
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
(http://img151.imageshack.us/img151/1325/paypalsample16zu.gif)
(http://img154.imageshack.us/img154/3778/paypalsample23ki.gif)
(http://img224.imageshack.us/img224/2055/permissionspaypal6rm.gif)
(http://img335.imageshack.us/img335/3830/permissionspaypal26oc.gif)
this mod in spanish utf8 ?
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
(http://img151.imageshack.us/img151/1325/paypalsample16zu.gif)
(http://img154.imageshack.us/img154/3778/paypalsample23ki.gif)
(http://img224.imageshack.us/img224/2055/permissionspaypal6rm.gif)
(http://img335.imageshack.us/img335/3830/permissionspaypal26oc.gif)
this mod in spanish utf8 ?
no just default/english
I get this,
3. Execute Modification ./Sources/ModSettings.php Test failed
Is there any way around this ?
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.
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
3. Execute Modification ./Sources/ModSettings.php Test failed
Ok to go ahead?
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
Same as me!
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/)
When I logged in with the test account you gave me it work great. Are you using the default theme?
I can tell right now that the change to index.php have not been done. Can you check that file
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.
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/)
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.
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/)
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 ?
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?
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
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.
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
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.
I've uninstalled some mods but still have this error. >:( >:(
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:
(http://img516.imageshack.us/img516/5849/donatebuttonicd9.gif)
Italic & Bold:
(http://img266.imageshack.us/img266/1858/donatebuttonibcv5.gif)
Enjoy!
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
Bump? ;D Thanks! (Hope I'm not breaking rules by bumping this...)
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
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!!
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)
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...
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
I would ask in the modification thread. Maybe this could be moved, so I can help you out further.
-snork13
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).
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? )
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
Oh, I didn't even see the Mods & Packages area...my bad. Thanks for the link, I'll check it out.
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
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.
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.
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
You could add the language changes to the UTF8 file
i.e. overwrite the UTF8 file with the English file?
No just add the line from the modification
Ill be home in a few hours and can give better how-to
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.
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
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
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?
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
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.
mine is only working in the default theme its not working in the other theme i am using pirates plzz help
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
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.
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
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!
Any chance of upgrading to 2.0?
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
Ok thanks
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
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.
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*
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.
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
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',
thank you very much!! O:)
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
I get this error ......... need help .......
3. Execute Modification ./Sources/ModSettings.php Test failed
Thanks in advance
Any news about a SMF 2.0-compatible package ?
just wondering if it could be updated to work on 1.15?
Cheers!
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
Hi there Snork is there any news on the Donation package for SMF 2.0, thanks Damo1981
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.
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?!?
My version of SMF is 1.5. The mod doesn't work for me. What version do I have to have?
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.
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.
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.
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
1.1.5
Sounds like a great mod. Wish it was available for smf 2.0
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.
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
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
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
My best guess would be to use the manual install instructions, but backwards (like delete what it adds).
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
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.
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.
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
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
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
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!
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.
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
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. :)
I'm trying to istall this mod, but I receive this message
what can I do?
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. :)
ops
thank you
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!
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!
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.
Can't see it.
Do I have to join to view the donate button?
As far as remember i didnt allow guest to view it tho...wait i'll allow it. Or care to join?:p
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
you have installed the mod twice... you will have to manually remove the duplicate code(s)
3. Execute Modification ./Sources/ModSettings.php Test failed
?????????????????????
i am using 1.1.8 version
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
Will this be compatible for 2.0 RC1-1 anytime soon?
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
Snork, any idea about the error I encountered please?
Chas
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
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
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
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.
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
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
i used this mod on my last forum, i was wondering if this will be capable for 1.9 anytime soon?
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ésolé, vous n\'êtes pas autorisé à 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églé, 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é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élécharge un flux XML/RSS du forum.';
Add after:
$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';
Any luck this will be available for 1.9?
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
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ésolé, vous n\'êtes pas autorisé à 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églé, 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é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élé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
Thanks snork13.
The next updates will update your mods?
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.
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 :)
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.
I dont suppose there is anyway to have donations sent as gifts is there? (to avoid paypal charges etc?)
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 ;)
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?
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 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ésolé, vous n\'êtes pas autorisé à 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églé, 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é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élécharge un flux XML/RSS du forum.';
Add after:
$txt['whoall_paypal'] = 'Voir les <a href="' . $scripturl . '?action=paypal">Dons</a>.';
commited
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?
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