vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - vbDonator by Mary (https://vborg.vbsupport.ru/showthread.php?t=139642)

ImmortalForums 02-21-2007 11:37 AM

php version 5.2.1
mysql version 5

I am getting this error message:

PHP Fatal error: Using $this when not in object context in vbdonator_gateway.php

i have the vbdonator.php amd vbdonator_gateway.php file in the same directory as my forum index.php file

how do i fix this? the donations come in, but i never see them show up on the page unless i manually edit the database

also, can someone clarify exactly whats being said with the IPN thing? in mbmpayment i see this:

$url .= "&notify_url=".urlencode($vbulletin->options["bburl"] . "/vbdonator_gateway.php?method=paypal");

so isnt that essentially building the IPN 'callback'? are the posts above for calling the script manually?

would something like suhosin and/or eaccellerator affect this?

manofphat 02-21-2007 01:26 PM

Could you maybe add a way for admins/supermods to be able to edit what members put in their messages?

DevinM 02-21-2007 04:30 PM

Beautiful! Got it installed today and left a few suggestions on your forums!

Well done!

cashpath 02-21-2007 09:03 PM

Can anyone confirm that IPN is working with this? I have IPN set up but have had to manually add each donation so far they don't show up anywhere but in my paypal account- the email (from vbdonator) is also not sent.

ImmortalForums 02-22-2007 11:35 AM

Quote:

Originally Posted by cashpath (Post 1187825)
Can anyone confirm that IPN is working with this? I have IPN set up but have had to manually add each donation so far they don't show up anywhere but in my paypal account- the email (from vbdonator) is also not sent.

can you explain how you 'set up' IPN? did you check your apache error logs? i bet you are seeing the same thing i am about $this.

i bet if you looked in your database you would see them too.

i dont like way the amount given isnt stored anywhere unless the notify url is contacted. way too much of a potential for lost info.

cashpath 02-22-2007 12:48 PM

I meant that I turned on IPN in paypal.... I think I will just use a different donations hack.

ImmortalForums 02-22-2007 01:03 PM

i got around my errors by changing the following line:

$this->transaction_id = $_REQUEST['txn_id'];

to this:

$transaction_id = $_REQUEST['txn_id'];

and now it works as expected

2 questions come up tho. 1, Why is $this used at all and 2, the variable transaction_id isnt used in the script at all. it seems that $transid = $_REQUEST["custom"]; is where the transaction ID is getting pulled from

either way its working, but these look like issues that could be cleaned up in the code unless i am missing something

MaryTheG(r)eek 02-23-2007 05:13 AM

Quote:

Originally Posted by ImmortalForums (Post 1188277)
i got around my errors by changing the following line:

$this->transaction_id = $_REQUEST['txn_id'];

to this:

$transaction_id = $_REQUEST['txn_id'];

and now it works as expected

2 questions come up tho. 1, Why is $this used at all and 2, the variable transaction_id isnt used in the script at all. it seems that $transid = $_REQUEST["custom"]; is where the transaction ID is getting pulled from

either way its working, but these look like issues that could be cleaned up in the code unless i am missing something

4.- Copyright

This script cannot be redistributed, reproduced, or published in any way. Modifying this script and sharing or publishing your modification A-N-Y-W-H-E-R-E (including here) without the author's written permission is strictly prohibited. The same applies for writting addons or integrading it with any other software or module (eg vbAdvanced).

...and you know why? Because something which is working for you, dosen't means that it will work for the others. Everything is depending on many parammeters. eg PHP version, MySQL version etc.

MaryTheG(r)eek 02-23-2007 05:21 AM

Quote:

Originally Posted by cashpath (Post 1188268)
I meant that I turned on IPN in paypal.... I think I will just use a different donations hack.

Here is another one:
https://vborg.vbsupport.ru/showthread.php?t=123181

NeRilkA 02-23-2007 01:19 PM

French Language :)

Translator: me :p

great work Maria, as always :)


All times are GMT. The time now is 09:59 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.01452 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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