vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - PayPal Easy Donate - vB 3.6 (https://vborg.vbsupport.ru/showthread.php?t=123181)

DementedMindz 11-09-2006 08:24 PM

Quote:

Originally Posted by NiTRoN
donations module has one error..

edit donation.module and search for

PHP Code:

<input type="hidden" name="item_name" value=

and replace whole line with ...

PHP Code:

<input type="hidden" name="item_name" value="$vboptions[billspp_payfor]/> 

is correct..

the other one places your userid.. instead the "Donation Description from settings"

ill take a look at it and see but it had all the info in there before

Raydar 11-10-2006 05:23 AM

Great looking hack.

What is the other zip file for (modules) please?

Thanks

Reggie

Billspaintball 11-15-2006 11:29 PM

Quote:

Originally Posted by Reg Car (Post 1114051)
Great looking hack.

Thanks! :D
Quote:

What is the other zip file for (modules) please?
Its only for users of vB CMPS.
It allows them to have the donations block on a vB CMPS page.

KenDude 11-16-2006 04:10 AM

Billspaintball and Dementedmindz,

Nice mod, but one problem, the CMPS module doesn't show up on the home page.

First I downloaded the PHP files, images, etc. and installed all of that and configured it in the admin cp and the donate link appears in the NavBar, everything worked as advertised.

Then I used the CMPS to upload the module that I got in the other zip file and the module shows up in the module manager, I made sure it was turned on, I made sure users had permissions to it, but alas it doesn't show up on the home page. :(

Then I realized that I had to click Edit Pages in the CMPS manager section and then click on HomePage to edit it, then scroll down and activate the module because during installation I didn't tell it to update all pages because I don't want it everwhere, just on certain pages like the home page.

Now all is well, module shows up, but one small item. If they click the Navbar link to donate it pre-populates the dollar amount to the default I set ($25.00), but in the module the dollar amount defaults to zero. Is that a manual edit in the adv_portal_paypal template or a bug?

Thanks!

DementedMindz 11-16-2006 07:06 AM

send me a pm with link and i can take a look for you.

KenDude 11-16-2006 12:36 PM

Sent you the link but answered my own question.

In adv_portal_paypal find the line that has the payment amount on it (0.00) and change it to the following:

<input type="text" name="amount" size="6" value="$vboptions[billspp_defaultamount]" />

Replacing the 0.00 with $vboptions[billspp_defaultamount]

This will then pick up the default amount you set in the admin panel and display it in the module on the home page instead of the 0.00.

Stavs16 11-17-2006 01:10 AM

do u know how to centre the icon? because it leans towards the right side, and i would like it in the centre (PAYPAL LINK).

Billspaintball 11-17-2006 01:35 AM

Quote:

Originally Posted by KenDude (Post 1118563)
Sent you the link but answered my own question.

In adv_portal_paypal find the line that has the payment amount on it (0.00) and change it to the following:

<input type="text" name="amount" size="6" value="$vboptions[billspp_defaultamount]" />

Replacing the 0.00 with $vboptions[billspp_defaultamount]

This will then pick up the default amount you set in the admin panel and display it in the module on the home page instead of the 0.00.

Sorry, I must not have updated the module when I added the suggested amount option to the adminCP. :(

I will release an update with this (and all the new supported currencys shortly. )

Billspaintball 11-17-2006 01:38 AM

Quote:

Originally Posted by Stavs16 (Post 1119076)
do u know how to centre the icon? because it leans towards the right side, and i would like it in the centre (PAYPAL LINK).

Edit the template called billspp_buttoninsert

change

PHP Code:

<div align="right"><a href="billspaypal.php"><img src="$stylevar[imgdir_misc]/donate.gif" border="0" alt="Make payments with PayPal - it's fast, free and secure!" /></a></div

to

PHP Code:

<div align="center"><a href="billspaypal.php"><img src="$stylevar[imgdir_misc]/donate.gif" border="0" alt="Make payments with PayPal - it's fast, free and secure!" /></a></div

(I think that ought to do it, Im at work atm so I cant test it )

simalert 11-28-2006 12:55 AM

Any chance of getting this to put the donators in to a VIP user group once they donate automatically?

Thanks :)


All times are GMT. The time now is 05:04 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.01449 seconds
  • Memory Usage 1,754KB
  • 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
  • (4)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