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)
-   -   vBPurchase 1.0c.fl1 (https://vborg.vbsupport.ru/showthread.php?t=83231)

Virtuosofriend 06-21-2005 04:27 PM

Nice hack Ronin :)

Ron1n 06-21-2005 05:52 PM

Quote:

Originally Posted by Virtuosofriend
Nice hack Ronin :)

thanks m8

Ron1n 06-21-2005 05:56 PM

Quote:

Originally Posted by PixelFx
Question: If I change purchase.php to products.php will it effect the script at all?

You need to change *purchase.php* in every template to *products.php* and you need to change the same thing in the products.php page, order.php page, and purchaseadmin.php page if there are any instances of it in those pages. * = ANYTHING, it does not mean a literal *.

Quote:

Originally Posted by PixelFx
Suggestions: ? Does this hack allow you to select a file from location on your server? since the attachment system on php is max 2 megs? and if so are there any restrictions to file size.

I would change this so that it will allow you to link to a file. However, it wouldnt be secure. Anyone could just share the link. The way vBulletin actually does theres is each user has a unique link plus you have a directory you must log into in order to download. I dont plan to do something like that for this hack because it is just too in depth. I might make it so you can read in a file located on the server and put it into the database, but I might just make it so you have to link. Reading a file into the database would make it more secure, but it would also have some drawbacks if you had some files larger than 12 megs.

Edit: On a second thought, I might just create temporary files on the server so that the link will work for -- say -- 15 minutes, and after that the files will be deleted. That would have a lot of bugs though.

Here are the options, tell me which you would like to see:

- just link to a file (not secure)
- link to a file and read it in (secure, but wastes MYSQL space)
- you link to a file, and when a user downloads the script it creates a temporary file (many probable bugs depending on the user + server)

Madmax4321 06-22-2005 07:28 AM

Quote:

Originally Posted by Ron1n
Find:
Code:

$form .= '<input type="submit" name="submit" value="Checkout">';
Place below:
Code:

$form .= '<input type="hidden" name="notify_url"
value="http://www.domain.ext/dir/purchase.php?do=ipn">'

That will get it working with multiple IPN, so you can now remove whatever you had on your paypal account. I didn't notice this before, it was a good catch. Thanks for bringing it to my attention.

I think I will just build this into the next script, it makes it seem so much easier.


will adding this allow it to be used alongside paypal donations ??

Ron1n 06-22-2005 08:41 PM

Quote:

Originally Posted by Madmax4321
will adding this allow it to be used alongside paypal donations ??

i'm not sure what you mean by 'alongside paypal donations'... but it shouldnt interfere with any other scripts you have set up

Madmax4321 06-22-2005 08:44 PM

sorry i meant cloudrunners paypal donation hack can they work together with 1 ipn set at paypal ??

Ron1n 06-22-2005 09:54 PM

Quote:

Originally Posted by Madmax4321
sorry i meant cloudrunners paypal donation hack can they work together with 1 ipn set at paypal ??

here you dont have to set any IPN at paypal

PixelFx 06-22-2005 10:14 PM

Quote:

Originally Posted by Ron1n
You need to change *purchase.php* in every template to *products.php* and you need to change the same thing in the products.php page, order.php page, and purchaseadmin.php page if there are any instances of it in those pages. * = ANYTHING, it does not mean a literal *.

I would change this so that it will allow you to link to a file. However, it wouldnt be secure. Anyone could just share the link. The way vBulletin actually does theres is each user has a unique link plus you have a directory you must log into in order to download. I dont plan to do something like that for this hack because it is just too in depth. I might make it so you can read in a file located on the server and put it into the database, but I might just make it so you have to link. Reading a file into the database would make it more secure, but it would also have some drawbacks if you had some files larger than 12 megs.

Edit: On a second thought, I might just create temporary files on the server so that the link will work for -- say -- 15 minutes, and after that the files will be deleted. That would have a lot of bugs though.

Here are the options, tell me which you would like to see:

- just link to a file (not secure)
- link to a file and read it in (secure, but wastes MYSQL space)
- you link to a file, and when a user downloads the script it creates a temporary file (many probable bugs depending on the user + server)

I was just thinking, as far as attachment system goes, just to split up download into pieces with winrare or something .. does your system allow for multiple attachments with say one product in this case? just an idea .. (thinking outloud)

PixelFx 06-22-2005 10:16 PM

Quote:

Originally Posted by Madmax4321
sorry i meant cloudrunners paypal donation hack can they work together with 1 ipn set at paypal ??

from what paypal said to me this system makes it possible to bypass and yet still use the ipn system on your paypal account. its just the url is controled in the script rather than punching it into the url location on paypal.

Its accually a much better way and still secure :)

Madmax4321 06-22-2005 10:53 PM

cheers guys that makes life a lot easier ;)


All times are GMT. The time now is 11:49 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.01171 seconds
  • Memory Usage 1,750KB
  • 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
  • (2)bbcode_code_printable
  • (8)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