PayPal donation BBCode 0.1

Started by DoctorMalboro, May 14, 2010, 12:28:54 PM

Previous topic - Next topic

DoctorMalboro

PayPal donation BBCode


By DrHouse

Features:

  • Adds a PayPal button without any effort to any post or comment.
  • Just pasting an easy code you'll have it in your topic or post. ;)

Usage:

  • Go to your PayPal account.
  • go to the "sell on your web" tab.
  • Put the donation button.
  • Copy the code (see above) and paste it in the middle of the BBCode.

From this (example):
Quote<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHFgYJKoZIhvcNAQcEoIIHBzCCBwMCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCS5xvAqTj5rWS9s2ukTYzl2G5vASv+ZU9X3udWHkMr1f4I3vdc2w6pFsols0ojywQR9vFQoCDkfEBycOs50amFyNA5DczmpsMVFNJxUeHXHUVD/ioxJ+/EGGERAm1J6MxbXiTQ0ctzA4UGkLJxG0jMTgkVt8A/cgAlnZRucyEJ8jELMAkGBSsOAwIaBQAwgZMGCSqGSIb3DQEHATAUBggqhkiG9w0DBwQIlXfjWUY2iCGAcBTZVJIBccuc9J29c8Yyu13L1cW7F9xLAjaOQXBzi1V9FQe/UeRWwcyVpGD/JGXRC0KPBNv+wPAZgE1DmHCwMfX7ufxRIww0C1vYQYzYxJKzxuEV2HwaNS/LfSz83m31r2xeqRZ3cFhnNdVSMax9kmygggOHMIIDgzCCAuygAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRY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1xGlFgHFXwrEBb3dgNbMUa+u4qectsMAXpVHnD9wIyfmHMYIBmjCCAZYCAQEwgZQwgY4xCzAJBgNVBAYTAlVTMQswCQYDVQQIEwJDQTEWMBQGA1UEBxMNTW91bnRhaW4gVmlldzEUMBIGA1UEChMLUGF5UGFsIEluYy4xEzARBgNVBAsUCmxpdmVfY2VydHMxETAPBgNVBAMUCGxpdmVfYXBpMRwwGgYJKoZIhvcNAQkBFg1yZUBwYXlwYWwuY29tAgEAMAkGBSsOAwIaBQCgXTAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwGCSqGSIb3DQEJBTEPFw0xMDA1MDgxOTE3MDNaMCMGCSqGSIb3DQEJBDEWBBQiX4aN07hlE0i/RQYdScoU52tLzTANBgkqhkiG9w0BAQEFAASBgIni/xd121NZM6pOur5guhhWVOYRZYBRWG61m1QOAFvknynwlHylagwhp9hYiySK5Uv2wLwlvRasasHpbMJbrsRu2giFBWPcFSGAd0rY/fNwFkCau1a2jT6jCDB3OPpdnfvyNICRHdoTjNbWl/M1ADtB8MscWx1FOZiLKWfyqKnK-----END PKCS7-----
">
<input type="image" src="https://www.paypal.com/es_XC/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal. La forma rápida y segura de pagar en Internet.">
<img alt="" border="0" src="https://www.paypal.com/es_XC/i/scr/pixel.gif" width="1" height="1">
</form>
Take the bold part. And paste it like this:

Quote[paypal img=https://www.paypal.com/es_XC/i/btn/btn_donate_LG.gif bg=https://www.paypal.com/es_XC/i/src/pixel.gif]-----BEGIN PKCS7-----MIIHFgYJKoZIhvcNAQcEoIIHBzCCBwMCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0B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pdnfvyNICRHdoTjNbWl/M1ADtB8MscWx1FOZiLKWfyqKnK-----END PKCS7-----[/paypal]

img = the image you want to show
img2 = the background (usually leave it default.).

Update Map:
Quote0.1 = Initial Release.
ADDED: 1.1.11 support.
0.2 = UPDATED to 2.0 RC4 and 1.1.12

ScreenShots:



coolfx350

any plans of making this mod for 1.1.11?

DoctorMalboro

Quote from: petecheng on May 14, 2010, 06:53:35 PMany plans of making this mod for 1.1.11?
Yep, just trying to see if this mod is wanted and then make it in 1.1.11, maybe tomorrow you'll have it ;)

coolfx350


DoctorMalboro

Updated, now it has 1.1.11 support :)

Shole

I need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!

DoctorMalboro

Quote from: Shole on May 16, 2010, 07:19:20 AMI need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
Attach your Subs.php and Subs-editor.php

B.SkiLLs

I dont get it. So all it basically does is add a button ?? Because if you still have to add the code yourself then this mod isn't really that worth it. Its not to hard just to click and add a link code. Then paste it in anyways.

VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


DoctorMalboro

Quote from: B.SkiLLs on May 16, 2010, 01:32:56 PMI dont get it. So all it basically does is add a button ?? Because if you still have to add the code yourself then this mod isn't really that worth it. Its not to hard just to click and add a link code. Then paste it in anyways.
You don't need to paste the code, just the id of your button...

BellGab.com

Quote from: Shole on May 16, 2010, 07:19:20 AM
I need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
I have the same problem.
I'm using the latest RC version.

DoctorMalboro

Quote from: CoastGab.com on June 03, 2010, 04:45:47 AM
Quote from: Shole on May 16, 2010, 07:19:20 AMI need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
I have the same problem.
I'm using the latest RC version.

Quote from: DrHouse on May 16, 2010, 09:25:05 AM
Quote from: Shole on May 16, 2010, 07:19:20 AMI need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
Attach your Subs.php and Subs-editor.php

BellGab.com

Quote from: DrHouse on June 04, 2010, 09:58:26 AM
Quote from: CoastGab.com on June 03, 2010, 04:45:47 AM
Quote from: Shole on May 16, 2010, 07:19:20 AMI need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
I have the same problem.
I'm using the latest RC version.

Quote from: DrHouse on May 16, 2010, 09:25:05 AM
Quote from: Shole on May 16, 2010, 07:19:20 AMI need help i unistalled it but the pay pal button remained there what shall i do? It has even doubled!
Attach your Subs.php and Subs-editor.php
attached.

DoctorMalboro


B.SkiLLs

Quote from: DoctorMalboro on May 16, 2010, 03:38:08 PM
Quote from: B.SkiLLs on May 16, 2010, 01:32:56 PMI dont get it. So all it basically does is add a button ?? Because if you still have to add the code yourself then this mod isn't really that worth it. Its not to hard just to click and add a link code. Then paste it in anyways.
You don't need to paste the code, just the id of your button...
yeah that's what i mean.

Maybe would be a worth it mod if had a section on admin section and/or profile to store your ID for it so it would auto show when you hit the button.

VICKTORY THE UNDERDOG Documentary – Pitbulls the untold true story

This is a must read & watch. Then Buy your DVD today. You will not regret it. Totally AWESOME. Best i ever seen. --
 
____________________
Message approved by
: [B. SkiLLs]
 


ontime

Hi i installed this mod SMF 2.0 RC3 I only had half icon in post reply section,I went to uninstall this mod when i did it added another entree in subs.php Itried reinstall then uninstall again it added 2 more entries not to mention it really slowed the forums down. So i did a manual uninstall on
Subs.php,Subs-Editor,Modifications.English,deleted paypal.gif now the forums are back to full steam
http://www.fweclan.com/smf

Matthew K.

I think you're misunderstanding the purpose of this mod.

This mod anyone to post a PayPal donate button, in their post.
Quote from: B.SkiLLs on July 19, 2010, 05:25:53 PM
Quote from: DoctorMalboro on May 16, 2010, 03:38:08 PM
Quote from: B.SkiLLs on May 16, 2010, 01:32:56 PMI dont get it. So all it basically does is add a button ?? Because if you still have to add the code yourself then this mod isn't really that worth it. Its not to hard just to click and add a link code. Then paste it in anyways.
You don't need to paste the code, just the id of your button...
yeah that's what i mean.

Maybe would be a worth it mod if had a section on admin section and/or profile to store your ID for it so it would auto show when you hit the button.



Matthew K.

Also, after seeing people have problems uninstalling, I looked into the XML and I guessed right.

There is a problem with uninstalling, for both 2.0 and 1.1 with your current packages. I am sending you a PM with updated packages that resolve the error.

ontime

Hi yes it did put the donate button to add PayPal to the post,but the PayPal button you push  to add PayPal to the post was only half a button,so i tried to uninstall then reinstall to correct the button,every time i uninstalled and reinstall it added duplicate entries in the .php files,and then it caused the forums to really get sluggish so i did a manual uninstall
Thank You Ontime

P.S I fully understand  the mods functions.

DoctorMalboro

Yep, i need to update it. Give me a sec and i'll update it ;)

Matthew K.

I recoded package-info.xml, and changed some of the system a little bit...I would suggest taking a peak at the Package-SDK topic too.

Just take a peak at the PM I sent you.
Quote from: DoctorMalboro on August 31, 2010, 07:34:43 PM
Yep, i need to update it. Give me a sec and i'll update it ;)

Advertisement: