PaypalDonations

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

Previous topic - Next topic

Bronwyn Mawr

#60
Here is the code i used for the Classic Theme and it worked...

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

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



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

---

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

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

---

Enjoy!
            
BM

Bronwyn Mawr

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'
BM

Viceroy

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 [nofollow] . Anyhow, I am wanting to use something like this for a website of mine over at http://www.uoradio.com [nofollow] . Thanks! :)

Wise Justine

#63
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.
hxxp:usfex.musann.com [nonactive]

Sheepdog360

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?

snork13

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
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

Sheepdog360

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

yellow1912

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 )
My SMF forum ^^
An Ecommerce site I help to build

Sheepdog360

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?

yellow1912

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))
My SMF forum ^^
An Ecommerce site I help to build

irvol

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.

Bigguy

I think you have to add the button image. I`m pretty sure anyway, unless you have already.

irvol

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.

Sheepdog360

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

Captain_Morrigan

Does this automatically add them to a group after donation or no?

Søren Bjerg

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 mod for that functionality :).
RUNE HORDES dot INFO - SMF 1.1.10 w/ Custom Profile Mod... and various permissions hooks and template changes (new topic form).

Captain_Morrigan


Elegant John

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

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?

snork13

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
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

Elegant John

#79
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?

Advertisement: