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)

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 12:41 PM.

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.01645 seconds
  • Memory Usage 1,745KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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