PaypalDonations

Started by snork13, February 06, 2006, 11:36:58 PM

Previous topic - Next topic

ArkServer

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?

PrizeLive.com

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?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!


Bigguy

No I don`t believe it does

ArkServer

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!

Parijs

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

Bigguy

You could do those edits manually. All the edits should be in the .xml file thats packaged with the mod.

mickyd2006

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
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Bigguy

This mod is only available with SMF1.1 rc2

mickyd2006

#109
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.
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Bigguy

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)

mickyd2006

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.
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Bigguy

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

mickyd2006

Thanx buddy... I'll give it a try  ;D :D
High Quality Low Cost CMS Installations - Just-Installs.com

SOHK: School Of Hard Knox - Hard Hitting Lessons In Life


I Wonder:

What Exactly Did The Man Who Invented The Drawing Board Go Back To?
Why Are Disasters Always Described As Great?
What Platform Was Windows Designed On?

Bigguy


littleone

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.

Jay T

The add_settings.php is not working.

littleone

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?

Jay T

It isn't working from the install package.

snork13

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
Mods
Please DO NOT PM me with requests for individual support, but post your questions and concerns in the appropriate section of the forum where other users can benefit from them as well. Thank you.
I have been super busy as of late. Working on updates to all my modifications for 2.0.1

Advertisement: