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 - VSa - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=236480)

Valter 02-20-2010 10:00 PM

VSa - PayPal Donate
 
1 Attachment(s)
Info:
-Advanced PayPal Donate system for vBulletin.

Features:
-Allow users to donate suggested or custom amounts, or both
-Set minimum amount accepted
-Set currency
-Block usergroups from using Donate system
-Donation listing
-Subscriptions (for Business/Premier PayPal Accounts)
-Donation bar
-Confirmed/Unconfirm/Delete donations
-Move or add confirmed donors to your VIP/Donor usergroup
-Donate stats (total donations, total amount, number of confirmed/unconfirmed donations)
-Block usergroups from viewing Donations or statistics details
-Add/Edit donations
-PM reports

View screenshots for more details...

Installation:
-Import XML file (as product): AdminCP > Plugin System > Manage Products > [Add/Import Product]


To set options:
-Go to: AdminCP > vBulletin Options > VSa - PayPal Donate

Versions:
v1.0 - Oct 13. 2005.
-First Release
v4.8.2 - Dec 29. 2008.
-Latest vB 3.x version
v5.0 - Feb 21. 2010.
-Updated for vBulletin 4
-Fixed known bugs
v5.0.1 - May 22. 2012.
-Quick fix for vBulletin 4.2 compatibility
v5.0.2 - Jun 09. 2012.
-Compatible with vB 4.2.1
-Fixed several style issues
-Fixed some permission bugs
v5.0.3 - Jun 10. 2012.
-Added back option to change Donate link color

madotds 02-21-2010 10:07 AM

Now this looks good :) I am off to install now Cheers

Mark

Edit 1: Whoops! I better wait for the files to be uploaded lol

Edit 2: Just to confirm all seems to be working great. Thank you Valter,

Installed/Rated and Voted

Valter 02-21-2010 10:08 AM

If you have PayPal Donate for 3.x installed:
- Save your Donation log to .txt or .sql, to have it in case something goes wrong during upgrade
- This product will automatically save your old data to a new table (used by vB4 version)
- Remove old version after upgrade if everything works as expected

Please report any bugs you discover.
Mark as Installed, and/or nominate/rate if you like it.

ShogunLord 02-21-2010 10:10 AM

Very nice indeed, I had been hoping you would re-code this one for vB4..

Let me be among the first to say a Big Thank You Indeed...

Regards..

atgv 02-21-2010 10:10 AM

1 Attachment(s)
Thanks Valter, VB4 looks & functions much better with your efforts & mods :)

Edit: Maybe in next update it would be nice to place donate button like attached picture

zbosskiller 02-21-2010 10:33 AM

Ohhhhhh YES.. Thanks Valter, much appreciated.

Z

IR15H 02-21-2010 10:38 AM

Thanks for this :).

--------------

Would it be possible to allow multiple currencies in a future version?

adamdavidconn 02-21-2010 10:43 AM

thanks, looks very nice.

What code to I have to put into templates if I want to have it appear in a custom location?

Jonluci 02-21-2010 11:22 AM

Installed....works great :)
Thanks...rated 5 :)

durdan1 02-21-2010 11:31 AM

Best mod out there right now for paypal. just like the previous from from cybpal.

molieman 02-21-2010 11:32 AM

Very "Nice".

I'm going to wait for a few things. :) # 2 is an important option to me.

Donor options:

1. Donor picks currency
2. Donor option to have their name displayed on public list (admins should always see this)
3. Donation Widget/block button (not a priority to me but would be nice)
4. Donation option on all pages, not just Forum

Excellent MOD, Thank you :) :) :)

KissOfDeath 02-21-2010 12:34 PM

Thank you for another great mod i had this on 3.8 and used to get donations on a regular basis, since i upgraded to vb4 i haven't received a donation since so this mod definatly works to get donations

I now have 3 of your mods just on my index page :)

1 question about this one, my paypal account is Dutch so when ever someone attempts to donate via this mod the paypal donate page comes up in dutch and most of my forum members are English so i lose potential donations just because people can't understand the page when it opens at the pay pal side.

Before this mod i put my own text link in the nav bar and the link location was "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=xxxxxxxx" and that made it open the paypal page in English, is their anyway to incorporate this into your mod?

mitch84 02-21-2010 12:49 PM

hi, how add another pay site? I use alertpay, thank you

exyuteam 02-21-2010 01:09 PM

Quote:

Originally Posted by atgv (Post 1987922)
Thanks Valter, VB4 looks & functions much better with your efforts & mods :)

Edit: Maybe in next update it would be nice to place donate button like attached picture

I agree ;) And THANKS VALTER FOR THIS USEFUL MOD!!!! Now, I must start to prepare my forum for upgrade to ver. 4.x.x :)

manofphat 02-21-2010 01:20 PM

Thank you very much for converting this!

sodagod 02-21-2010 01:38 PM

Thanks SO much for making this dude... now vb4 has a decent paypal donate mod :D <3 I will soon have it up on http://codnation.net :)

Mike_K 02-21-2010 01:44 PM

Perfect! Nominated for MOTM.:up:

GreigM 02-21-2010 01:52 PM

Great mod thanks, would be good to add donate as a tab in the navbar :)

venom2124 02-21-2010 02:02 PM

Another great mod that I was missing. Thanks

venom2124 02-21-2010 02:23 PM

Love this mod already, but when i manually enter donations the username always shows as unknown.

Bouncer222 02-21-2010 02:48 PM

Ah finally a donation bar!!

zbosskiller 02-21-2010 02:58 PM

Quote:

Originally Posted by venom2124 (Post 1988079)
Love this mod already, but when i manually enter donations the username always shows as unknown.

Are you typing in the UserID or Username? For example, I'm the admin on my account who set up the entire site and my id = 1

The mod doesn't accept usernames, only numbers.

Hope this helps

Z

Bouncer222 02-21-2010 03:02 PM

When you choose custom it loads the paypal page with a donation of $5.00. Is this only me or is anyone else getting this too?

EDIT: It actually does this for any amount, it still puts it as 5.00, anyone know how to fix this?

icemann 02-21-2010 03:39 PM

Been waiting for this, thanks! :cool:

BlackJacket 02-21-2010 05:27 PM

Finally! Thanks for the update and tagged for later.

venom2124 02-21-2010 05:28 PM

Quote:

Originally Posted by zbosskiller (Post 1988094)
Are you typing in the UserID or Username? For example, I'm the admin on my account who set up the entire site and my id = 1

The mod doesn't accept usernames, only numbers.

Hope this helps

Z

Yeah that helps out a lot, but how do I figure out the user id then.

Mike_K 02-21-2010 05:41 PM

Quote:

Originally Posted by Bouncer222 (Post 1988099)
When you choose custom it loads the paypal page with a donation of $5.00. Is this only me or is anyone else getting this too?

EDIT: It actually does this for any amount, it still puts it as 5.00, anyone know how to fix this?

I have no problem with this. Can choose every amount I want and it is correctly forward to the PayPal form.

Bouncer222 02-21-2010 06:03 PM

Quote:

Originally Posted by Mike_K (Post 1988214)
I have no problem with this. Can choose every amount I want and it is correctly forward to the PayPal form.

Well you can try it here www.brotherhoodofgamers.com , click the donate button in the navigation or go to forums and you'll see the bar appear, click donate for any amount, and it shows up on paypal as 5 bucks. I have no clue why.

Plus, how do I make the Bar show up on EVERY page?

Mike_K 02-21-2010 06:30 PM

Hmmmhhh... did you enable the custom amount in the Admin-CP?

I miss there a field where I can put in the amount after choosing the "custom" option.

At me it looks like this:

https://vborg.vbsupport.ru/external/2010/02/14.png

Bouncer222 02-21-2010 06:48 PM

Yeah I enabled it. but even if you choose a different amount, it still shows 5 dollars, go ahead and try it..

http://www.brotherhoodofgamers.com/misc.php?do=donate

Is it the same for you?

Mike_K 02-21-2010 06:56 PM

As I said there is missing a field wich allows to put in the amount.
The field must be shown after choosen "custom".

I don't know why it doesn't work at your site.

Bouncer222 02-21-2010 07:17 PM

yeah but aside from the custom option... choose idk $100 dollars for example.. on the paypal page it shows up as 5 bucks, does it show up like that for you?

chingon 02-21-2010 07:23 PM

Thank you for this.

Where in the xml can I edit "donate" to say "Paypal Donations" on the navbar link?

Mike_K 02-21-2010 07:27 PM

Quote:

Originally Posted by Bouncer222 (Post 1988287)
yeah but aside from the custom option... choose idk $100 dollars for example.. on the paypal page it shows up as 5 bucks, does it show up like that for you?

Yes, always 5 USD

masterross 02-21-2010 08:30 PM

Quote:

Originally Posted by atgv (Post 1987922)
Thanks Valter, VB4 looks & functions much better with your efforts & mods :)

Edit: Maybe in next update it would be nice to place donate button like attached picture

Go to your style chose "Add New Template", Title "vsa_donate_navbar_link".
Template:
Code:

<vb:if condition="$vboptions['selectednavtab'] == 'donate'">
<li class="selected">
    <a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a>
</li>
<vb:else />
    <li><a class="navtab" href="misc.php?do=donate{vb:raw session.sessionurl_q}">{vb:rawphrase cybpaypal_donate}</a></li>
</vb:if>

Save.

After this go to "Plugins & Products/Add New Plugin"
In Product select "VSa - PayPal Donate"
In Hook Location "process_templates_complete"
In Title "VSa - PayPal Donate - NAVBAR"
In Execution Order: 5
In Plugin PHP Code:
PHP Code:

if ($vbulletin->options['vsapaypal_show_link'])
{
    if (
$_REQUEST['do'] == 'donate')
    {
        
$vbulletin->options['selectednavtab'] = 'donate';
    }
    
$template_hook['navtab_middle'] .= vB_Template::create('vsa_donate_navbar_link')->render();


Plugin is Active : Yes
Save


Enjoy!

Valter 02-21-2010 08:48 PM

Quote:

Originally Posted by Bouncer222 (Post 1988266)
Yeah I enabled it. but even if you choose a different amount, it still shows 5 dollars, go ahead and try it..

http://www.brotherhoodofgamers.com/misc.php?do=donate

Is it the same for you?

No JavaScript code loaded on your forums. I don't know why, but Donate form is dead without it.
Quote:

Originally Posted by chingon (Post 1988293)
Thank you for this.

Where in the xml can I edit "donate" to say "Paypal Donations" on the navbar link?

Phrase Manager.

Why playing with XML for such things?

TimberFloorAu 02-21-2010 08:54 PM

Can this be made into a sidebar widget Valter ?

GrossKopf 02-21-2010 09:30 PM

How can I manually enter the amount that has been donated so far?

SuperTaz 02-21-2010 10:02 PM

Installed. Thank you. :)

zbosskiller 02-21-2010 10:08 PM

Quote:

Originally Posted by GrossKopf (Post 1988387)
How can I manually enter the amount that has been donated so far?

Hey Andy,

If you click on 'Donation Goal' then choose 'View Donations' at the bottom of that loaded page you will see 'Add Donor Manually'. Just enter the UserID of the donor, the amount and leave the date blank. It will then add it to the list and PM the user if you have that set up in your options.

Remember, it's user number and not user name.

Z


All times are GMT. The time now is 06:24 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.01997 seconds
  • Memory Usage 1,826KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete