vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Paypal Donations for vBulletin 3.0.7 (https://vborg.vbsupport.ru/showthread.php?t=82978)

VViper 06-13-2005 01:13 AM

This is really good stuff but how do your users actually donate?
I click on the $ button it takes me to the donations page and shows goals and the PAYPAL logo but how do thet actually start a donation process.

I worked it out,
You actually go to Admincp and make a button.
Then they can click on it and make a donation.
Hope this helps someone else.

Cloudrunner 06-13-2005 01:15 AM

Quote:

Originally Posted by VViper
This is really good stuff but how do your users actually donate?
I click on the $ button it takes me to the donations page and shows goals and the PAYPAL logo but how do thet actually start a donation process.

by clicking the donation button on the donate page.

the ones you must add in the AdminCP.

Cloudrunner 06-13-2005 01:22 AM

Quote:

Originally Posted by VViper
This is really good stuff but how do your users actually donate?
I click on the $ button it takes me to the donations page and shows goals and the PAYPAL logo but how do thet actually start a donation process.

I worked it out,
You actually go to Admincp and make a button.
Then they can click on it and make a donation.
Hope this helps someone else.

I do believe I put that in the notes at in the first post about this system here....I could be wrong though...*goes to look to make sure it's there...yep it's there...*

dsboyce8624 06-13-2005 01:24 AM

Quote:

Originally Posted by Cloudrunner
I do believe I put that in the notes at in the first post about this system here....I could be wrong though...*goes to look to make sure it's there...yep it's there...*

Now whos the smart ass?

ROFL

Cloudrunner 06-13-2005 01:38 AM

Quote:

Originally Posted by dsboyce8624
Now whos the smart ass?

ROFL

I'm gonna go with....

ME!

:-P

I'm just playin anyway, you think someone might take offense at that? I hope not...

Oh, for those of you who don't know me, I am opinionated. Some may call me an a$$hole at times, but I will try to fix any problem with this hack that I can, I promised to support it, but (seeing as how my philosophy on life is to say it bluntly) I will call things as I see them.

If I am wrong, I will admit it, but since I can take things with a grain of salt I expect others to do the same. If you find a problem somewhere tell me, and I'll fix it if I can. I expect the same from anyone who installs this as well. If I'm being a jerk, tell me and I'll adjust my shot group. Again, I expect the same from others as well.

Just letting you all know where I'm coming from so we on the same sheet of music here. Now, let's see how this thing works out shall we?

KevinL 06-13-2005 01:41 AM

Set up just fine! Very easy.

Great work guys :)

Silly question though, can I get paypal to open in a new window? You know...so they dont leave my site :laugh:

dsboyce8624 06-13-2005 01:43 AM

Wow, man, you got way serious.

I was just playing!

dsboyce8624 06-13-2005 01:45 AM

Quote:

Originally Posted by KevinL
Set up just fine! Very easy.

Great work guys :)

Silly question though, can I get paypal to open in a new window? You know...so they dont leave my site :laugh:

You'd have to edit the vBa template to add a
Code:

target="_blank"
to the URL.

Cloudrunner 06-13-2005 01:46 AM

Quote:

Originally Posted by KevinL
Set up just fine! Very easy.

Great work guys :)

Silly question though, can I get paypal to open in a new window? You know...so they dont leave my site :laugh:

if you do that, then the user will end up on your site twice after donating. Plus if they decide to cancel the transaction midway through it, they get returned in the same window, again, having two windows open.

The way the buttons work as well prevent this from happening to my knowledge, but I will check into it and see if there is a way to do that or not.

Cloudrunner 06-13-2005 01:47 AM

Quote:

Originally Posted by dsboyce8624
Wow, man, you got way serious.

I was just playing!

Nah not serious...just wanted to make sure peeps knew where I was coming from before I ended up pissing someone off LOL

KevinL 06-13-2005 01:47 AM

Quote:

Originally Posted by dsboyce8624
You'd have to edit the vBa template to add a
Code:

target="_blank"
to the URL.

ahhhhhh I was trying to do it in the donations_bits template.

Thanks!

dsboyce8624 06-13-2005 01:48 AM

Oh, I thought he wanted the Donate button to open donate.php in a diff window. But yeah either way, then you end up with two windows on the site since after paypal it returns you to the site.

Cloudrunner 06-13-2005 01:48 AM

Quote:

Originally Posted by dsboyce8624
You'd have to edit the vBa template to add a
Code:

target="_blank"
to the URL.

the button is created via a form tag
HTML Code:

<input type="button" etc....>
I don't know if there is a way to make that open in a new window or not without breaking the system (onClick is already being used). If someone could correct me on this if I'm wrong, please do. I'm not well versed in Javascript.

KevinL 06-13-2005 01:49 AM

Quote:

Originally Posted by Cloudrunner
if you do that, then the user will end up on your site twice after donating. Plus if they decide to cancel the transaction midway through it, they get returned in the same window, again, having two windows open.

The way the buttons work as well prevent this from happening to my knowledge, but I will check into it and see if there is a way to do that or not.

okie dokie that works for me :)

Edit*

Thanks for the answers guys. Since it returns to the site then there is no reason for it. :)

dsboyce8624 06-13-2005 01:50 AM

Quote:

Originally Posted by Cloudrunner
Nah not serious...just wanted to make sure peeps knew where I was coming from before I ended up pissing someone off LOL

Listen, you've done this before, I'm a virgin.

I don't think if it were just me, I could handle all the questions at once, much less fix the problems.

So if they can't take a joke now and then . . . well, you know.

Cloudrunner 06-13-2005 01:50 AM

Quote:

Originally Posted by KevinL
Set up just fine! Very easy.

Finally...sheesh...

LOL

With all the troubles that came up at first I thought this thing would die before it even had a chance ROFL

dsboyce8624 06-13-2005 01:51 AM

Na, just gotta get the steam up.

TTG 06-13-2005 02:05 AM

Yeah .. the crowds at the back 'o the bar go wild .. installed and working like a charm.
One question .. how can I change the $ to ? in the donation goals ?

Clicked install :)

dsboyce8624 06-13-2005 02:08 AM

Quote:

Originally Posted by TTG
Yeah .. the crowds at the back 'o the bar go wild .. installed and working like a charm.
One question .. how can I change the $ to ? in the donation goals ?

Clicked install :)

I believe it's in the phrases. One sec.

EDIT: in_donations_towards_our_goal_of is one, just have to weed through to find the rest, and some are in the templates.

Cloudrunner 06-13-2005 02:08 AM

Quote:

Originally Posted by TTG
Yeah .. the crowds at the back 'o the bar go wild .. installed and working like a charm.
One question .. how can I change the $ to ? in the donation goals ?

Clicked install :)

it's phrased, just change all the $ calls in the phrases and that should do it. Some are in the templates though...

If you see a variable like this: $$total with the double '$' that's the dollar sign, the second one is the string identifier, you can change that first one without breaking anything. Don't do that to a single '$' though as that will break the variable in the template.

Hope that helps....(thinks about adding this as an auto thing based on the currency format you choose in the AdminCP)...

Cloudrunner 06-13-2005 02:12 AM

yep, I think I'll do that, I like that idea alot...thank you!

dsboyce8624 06-13-2005 02:13 AM

Quote:

Originally Posted by Cloudrunner
yep, I think I'll do that, I like that idea alot...thank you!

You're welcome!

Dennis smells an upgrade.

Cloudrunner 06-13-2005 02:14 AM

Quote:

Originally Posted by dsboyce8624
You're welcome!

Dennis smells an upgrade.

* Cloudrunner quirks an eyebrow

you okay? Sniffing too much server innards today?

dsboyce8624 06-13-2005 02:15 AM

Quote:

Originally Posted by Cloudrunner
* Cloudrunner quirks an eyebrow

you okay? Sniffing too much server innards today?

You said thank you, I was just being polite.

VViper 06-13-2005 02:15 AM

I didnt take offence.

I tend to just scim over stuff when doing things.

Like anyone else.

It was there and i missed it.

Thanks for the quick reply though.

Cloudrunner 06-13-2005 02:16 AM

Quote:

Originally Posted by VViper
I didnt take offence.

I tend to just scim over stuff when doing things.

Like anyone else.

It was there and i missed it.

Thanks for the quick reply though.

no problem ;). I'm tired, so the
PHP Code:

$quick_replies NULL

until tomorrow evening.

dsboyce8624 06-13-2005 02:17 AM

Quote:

Originally Posted by Cloudrunner
no problem ;). I'm tired, so the quick replies will be null until tomorrow evening.

Well, unless you count my quickly typed, but not so quick witted replies for a few more hours, and again in the mornin'.

:smoke:

caimakale 06-13-2005 02:55 AM

OK, I am back.

I am still having the problem pulling the exchange rate info. I do get an error on my donate.php page which I am guessing is because of this.

But get this, I have the mod installed perfectly except for that error, I have run several transactions with sandbox, and everything is working perfectly!!!

I think it has something to do with my server running cron jobs.

Are there any settings in the ACP that could be causing this???

dsboyce8624 06-13-2005 02:56 AM

Quote:

Originally Posted by caimakale
OK, I am back.

I am still having the problem pulling the exchange rate info. I do get an error on my donate.php page which I am guessing is because of this.

But get this, I have the mod installed perfectly except for that error, I have run several transactions with sandbox, and everything is working perfectly!!!

I think it has something to do with my server running cron jobs.

Are there any settings in the ACP that could be causing this???

Show me the error.

caimakale 06-13-2005 03:00 AM

Code:

Warning: Division by zero in /modules/donate.php on line 33
is what is displayed on the CMPS page.

Code:

Warning: Division by zero in /donate.php on line 147
is on the donate.php page.

I am guessing it is a division by zero error because there aren't any values to pull from the database because I can't run that cron job.

dsboyce8624 06-13-2005 03:03 AM

Probably a good guess.

What do you get in the cron log if you run it manually?

caimakale 06-13-2005 03:15 AM

I get the exact same errors as before, and my database is still empty

dsboyce8624 06-13-2005 03:18 AM

These:

Code:

Warning: file(http://www.oanda.com/convert/fxdaily?value=1&redirected=1&exch=USD&format=CSV&dest=Get+Table&sel_list=): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

???

If so, try hitting the URL manually from your box.

What happens?

caimakale 06-13-2005 03:19 AM

Code:

Donations Currency Exchange Quotes


Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Warning: file(http://www.oanda.com/convert/fxdaily...sel_list=USD): failed to open stream: Connection refused in /includes/cron/donation_currency_exchange.php on line 29

Warning: implode(): Bad arguments. in /includes/cron/donation_currency_exchange.php on line 31

Done


dsboyce8624 06-13-2005 03:21 AM

See above post.

The second error, bad argument is due to not getting an answer from the first error.

Can you get to the site from you server?

You know you can also disable the exchange rate stuff in the settings on ACP.

dsboyce8624 06-13-2005 03:34 AM

Alright, this'll wait until tomorrow then, gotta hit the sack.

caimakale 06-13-2005 03:38 AM

Thanks, I don't have shell access on my server to try to access the site.

In the ACP the only option is to show the currency box or not, not to actually disable it. And even at that, I think it will still need a number for US dollars.

Get some sleep, I will keep plugging away at it.

caimakale 06-13-2005 03:56 AM

Can anybody who has installed this hack please dump the donation_currency_exchange table from your database and post it here?

I would like to update this and see if it takes care of my error messages.

Thanks

guvner 06-13-2005 05:04 AM

Quote:

Originally Posted by caimakale
Can anybody who has installed this hack please dump the donation_currency_exchange table from your database and post it here?

I would like to update this and see if it takes care of my error messages.

Thanks

here you go :)

guvner 06-13-2005 05:30 AM

Cloudrunner,

Great hack - had the challenge of a previous version haunting my DB, but your early revision fixed it up really well ! :)

A quick question, during the install, there were a couple of optional edits to the postbit and the memberinfo page - where can I find them without running through the install again (which obviously I can't do ;)) - I want to remove the postbit code until it's ready to run officially.

Great work and thank you!

Mike :)


All times are GMT. The time now is 08:23 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.01788 seconds
  • Memory Usage 1,851KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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