vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Bills PayPal Donations Lite - 4 (https://vborg.vbsupport.ru/showthread.php?t=236380)

Billspaintball 02-19-2010 10:00 PM

Bills PayPal Donations Lite - 4
 
1 Attachment(s)
Hack Description

This hack is the easiest way to add the ability to accept PayPal donations for your site.
You simply upload 2 php files, and a couple of images and then import the product XML and thats it!
No messing round with template edits or anything like that, its all done for you! :)


Some features of this hack are:
  • No need to modify or edit any vB files!
  • Automaticly adds 'Donate' link on Navbar next to the FAQ link if desired.
  • Simple once off setup in the Admin Control Panel.
  • All PayPal settings such as preferred currency are set in the Admin CP.
  • The Donors forum username is on the emailed receipt from PayPal.
  • People do not have to be registered on your site to donate.
  • You and toggle the PayPal Verified seal on or off.
  • Works with default IE settings!
  • Configurable Thank you page for donors
  • Default / suggested donation amount if desired
  • Fully Phrased
Well thats about it for the moment. I may add more features later, if there is a demand for them.

Please note that you have to have either a Business or Premiere PayPal account, else you will need to upgrade to one of these before you can accept donations. Its easy to do, just follow the guide on the PayPal site.

Also note that this is a product, not a plug-in. You must import it using the import product feature in the Admin CP.

I will try and offer support, but work and family commitments mean I don't have much free time.

This script has been confirmed as working on
  • vB 4.01


Known Bugs
  • None


Change log

Version 4.00 (20th Feb 2010)
  • First release for vB 4.*
  • Will only work with vB 4.* or newer


Click on Install
If you have this script installed then please click on the install link because;
  • You will get notified if any security issues are reported.
  • You will get notified when there are any upgrades to this script
  • It gives me a warm fuzzy feeling and motivates me to develop more :)

IMPORTANT
This is my first real conversion for vB 4.x and as such probably contains some bugs.
I would recommend testing on a test forum first.

Billspaintball 02-20-2010 10:16 AM

Manual Template Edit
(if using modded navbar without the default hooks)

If your using a custom Navbar (or none at all) or just want to have the link to the donations page somewhere else, just add the following code into the desired position in your template.

Code:

<!-- BPPL PayPal Donations Link -->
<a href="bppl_donate.php?">{vb:raw vboptions.bppl_titlepage}</a>

If you wish to use a button image instead, use this code
Code:

<!-- BPPL PayPal Donations Link -->
<div>
<a href="bppl_donate.php"><img src="{vb:stylevar imgdir_misc}/donate.gif" border="0" alt="{vb:rawphrase bppl_ppimagetxt}" /></a>
</div>


atgv 02-20-2010 10:18 AM

+1 reserved

Cadellin 02-20-2010 10:18 AM

Sounds like just want I need :) - I install this evening and take a look.

Have you any plans for stats tracking? E.g. how much recieved this month, monthly targets etc... I'm sure a great many people would love to see a donations mod with stats tracking :)

Jonluci 02-20-2010 10:48 AM

Quote:

Originally Posted by Cadellin (Post 1987185)
Sounds like just want I need :) - I install this evening and take a look.

Have you any plans for stats tracking? E.g. how much recieved this month, monthly targets etc... I'm sure a great many people would love to see a donations mod with stats tracking :)

yes that would be great.
Also are the Donors moved to a different group on successful completion?

pablete 02-20-2010 01:50 PM

Quote:

Originally Posted by Jonluci (Post 1987200)
Also are the Donors moved to a different group on successful completion?

This is interesting....

venom2124 02-20-2010 03:04 PM

Great work better than what I had. Thanks.

ChopSuey 02-20-2010 03:47 PM

Pretty neat but i'll wait for VSa paypal donate :D insallted :)

Bouncer222 02-20-2010 05:46 PM

Well it's nice seeing all these donating mods coming out... But the BIG feature they are ALL lacking is the donator bar, IT MOTIVATES people to DONATE.

Without it, a donate button is nothing if the user doesn't know what the goal is or what the site wants.

Trip3151 02-20-2010 09:28 PM

Quote:

Originally Posted by Bouncer222 (Post 1987492)
Well it's nice seeing all these donating mods coming out... But the BIG feature they are ALL lacking is the donator bar, IT MOTIVATES people to DONATE.

Without it, a donate button is nothing if the user doesn't know what the goal is or what the site wants.

100% agree with you !

meissenation 02-21-2010 04:45 AM

Quote:

Originally Posted by Bouncer222 (Post 1987492)
Well it's nice seeing all these donating mods coming out... But the BIG feature they are ALL lacking is the donator bar, IT MOTIVATES people to DONATE.

Without it, a donate button is nothing if the user doesn't know what the goal is or what the site wants.

Amen. I never thought it'd be such a hard concept but it seems like everyone that's been coding these keeps duplicating without bringing out new features that we are all missing from Cyb - Paypal Donation module in 3.8

TimberFloorAu 02-21-2010 07:18 AM

One of the major issues with previous paypal donation "thangs" where there was a leaderboard of paypal donatees...

Was the link grabbed the donation amount before hitting paypal, so forum owners get notified of a donation and then the connection fails for the user, or they have insufficient funds, or they change their mind... and the reality of what got donated bears little resemblance to actual donations.

If someone can code such a mod , I will install it right away, for now this is on my "tagged" list, because of the work the coder has done.

So well done mate. I hate seeing threads detract from what you have done, into begging messages for what they want.

rajubd 02-21-2010 09:49 AM

it will be perfect if you add target amount for this month in navbar below

Billspaintball 02-21-2010 10:20 AM

Quote:

Originally Posted by venom2124 (Post 1987369)
Great work better than what I had. Thanks.

Thanks :D
Quote:

Originally Posted by Bouncer222 (Post 1987492)
Well it's nice seeing all these donating mods coming out... But the BIG feature they are ALL lacking is the donator bar, IT MOTIVATES people to DONATE.

Without it, a donate button is nothing if the user doesn't know what the goal is or what the site wants.

This was designed as a basic one that does not make any database changes, hence no things that require databases to function correctly, such as goals in this version.

Its not designed to suit everyones needs, It's a basic one that is light and easy for anyone to install and use.

Quote:

Originally Posted by meissenation (Post 1987808)
Amen. I never thought it'd be such a hard concept but it seems like everyone that's been coding these keeps duplicating without bringing out new features that we are all missing from Cyb - Paypal Donation module in 3.8

Its not a hard concept, its just designed for a different market that what you (or I for that matter) require.
Truth be told, its not the one I use on my own site, I have ported this from Vb 3.x to give me experience in Vb4 before I tackle anything more complex, more than any other reason.

Quote:

Originally Posted by TimberFloorAu (Post 1987847)
One of the major issues with previous paypal donation "thangs" where there was a leaderboard of paypal donatees...

Was the link grabbed the donation amount before hitting paypal, so forum owners get notified of a donation and then the connection fails for the user, or they have insufficient funds, or they change their mind... and the reality of what got donated bears little resemblance to actual donations.

If someone can code such a mod , I will install it right away, for now this is on my "tagged" list, because of the work the coder has done.

So well done mate. I hate seeing threads detract from what you have done, into begging messages for what they want.

Thanks :D

And thanks for bringing this point up.
Your spot on with the issue about how to deal with donations that fail for various reasons.

Its a little complex to get around this, as you have to get the response from the paypal webserver before the data is submitted into the database if you want to avoid false results.
This is also an important consideration if you want auto group changes for donors as well.

Its certainly doable, infact Its the way I receive donations on my live website. (Before anyone asks, its not polished, only has the features I want, and has a couple of bugs so was never released as a mod).

But thats getting off topic for this mod I guess.

Gene Steinberg 02-21-2010 05:15 PM

I have a simple request: Instead of putting the Donate link in the nav bar, why not as a tab instead, which I think would be more prominent? Another PayPal mod does that. How about it, at least as an option?

Peace,
Gene

Billspaintball 02-21-2010 06:13 PM

Quote:

Originally Posted by Gene Steinberg (Post 1988202)
I have a simple request: Instead of putting the Donate link in the nav bar, why not as a tab instead, which I think would be more prominent? Another PayPal mod does that. How about it, at least as an option?

Peace,
Gene

I can add this as an option for the next release.

Gene Steinberg 02-21-2010 06:22 PM

Super.

Also an option to change the title, under New Donations.

Right now we have:

The Paracast Community Forums - BPPL Donations

I don't mind your name there, but I'd like to be able to change the former to The Paracast, so we can link to that page from other areas of the site.

Is there a hack that would let us do that now?

Peace,.
Gene

Billspaintball 02-22-2010 08:57 AM

Quote:

Originally Posted by Gene Steinberg (Post 1988244)
Super.

Also an option to change the title, under New Donations.

Right now we have:

The Paracast Community Forums - BPPL Donations

I don't mind your name there, but I'd like to be able to change the former to The Paracast, so we can link to that page from other areas of the site.

Is there a hack that would let us do that now?

Peace,.
Gene

You can chage it by changing a phrase in the XML file and reimporting with overwrite selected.

Like 253 or thereabouts, just change "- BPPL Donations" to whatever you like.
Might be an idea to increment the date field by 1 as well.
PHP Code:

<phrase name="bppl_pagetitle" date="1265936461" username="Bill" version="4.00"><![CDATA[- BPPL Donations]]></phrase



I will change this in the next release to just read "Donations" I think.

Gene Steinberg 02-22-2010 12:29 PM

1 Attachment(s)
Two questions.

1. Can I change the CDATA or whatever that refers to the forum name to something else? I tried just replacing that string and it didn't work.

2. This isn't your fault I'm sure since it happened before I installed your mod. But since upgrading from 4.0.1 to 4.0.2, I get a peculiar error message when installing or removing a mod.

See the attachment for what I'm referring to. Any clues what I should do to fix that?

Peace,
Gene

encryption 04-30-2010 10:16 PM

I just installed and it went ok. I did have to edit the bbpl_main template and replace two instances of this:

{$vbulletin->userinfo[username]}

with this:

{vb:raw $vbulletin->userinfo[username]}

I also had to do it once in bppl_donated.

GrowReport 08-25-2010 02:18 PM

Thanks encryption I had the same problem...used your fix, not all is good!

I did use this with vBH-Add new tabs and put the donate tab on the main navbar like the other main tabs. Now it gets noticed as it should. That was the simplest way I have ever added tabs.

vBH-Add new tabs
https://vborg.vbsupport.ru/showthread.php?t=228507

Dexter_kcd 09-20-2010 09:35 PM

I was using the 3.7 version of this mod, and was happy to see it for 4.x.

I did notice a couple of problems with it though:

1 - I also had to make the edit mentioned in this post.

2 - In the Admin CP >> Options >> Bills PayPal Donate Lite - 4.0, the setting for "Display Donations Link" keeps reverting back to the default "Text Link on Navbar." I have the link adding to my Tabs using another Mod, so I disabled the navbar link from this mod. A few minutes later I noticed the link was back in the Navbar. It looks like every time I open the options for this mod, it defaults back to "Text Link on Navbar", so if I hit save without remembering to change this, the unwanted text link comes back.

This is a problem because the same thing happens if I choose to show ALL options in my Admin CP. If I am looking for another option somewhere, and open all the options groups, make a change to something else entirely...well, this defaults back to "Text Link on Navbar" and inadvertently gets saved.

As a workaround, I edited the product XML to remove the link entirely.

Dexter...

victorvu 09-23-2011 02:29 PM

It is a great mod. I just came in and fix errors on the userinfo; however, I have another question that is, how can I add description under the Welcome message?

Thanks for the mod,

Victor:up:

too_cool_3 02-26-2012 07:25 PM

Also had to add vb:raw to {$vbulletin->userinfo[username]} in bppl_main and bppl_donated

Works great on vB 4.1.10, thanks Bill!

Perhaps, someone can update the first post to include this code update.

winky8300 09-29-2019 07:41 PM

Quote:

Originally Posted by encryption (Post 2029786)
I just installed and it went ok. I did have to edit the bbpl_main template and replace two instances of this:

{$vbulletin->userinfo[username]}

with this:

{vb:raw $vbulletin->userinfo[username]}


I also had to do it once in bppl_donated.

hello

i made these changes, but when i get the detail of the paypal donation, the username would not, i have this

Details of the purchase
Donation for my site from {$vbulletin->userinfo[username]}

what should I do to make the user appear correctly

thank you


All times are GMT. The time now is 10:57 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01210 seconds
  • Memory Usage 1,811KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (25)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete