vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add Product Actions to Lesane's Store Hack! (https://vborg.vbsupport.ru/showthread.php?t=48338)

BaBa2002 02-02-2003 05:56 PM

got a question
is it possible when users buy the item the they get a link to download instead of a email.

ChurchMedia 02-03-2003 02:57 AM

Quote:

Originally posted by BaBa2002
got a question
is it possible when users buy the item the they get a link to download instead of a email.

You could do this -- It would require 2 templates per downloadable item and some code modifications. I can get that to you if you really want it...

The only "danger" I can see is that the download link would not be secure -- so once it's bought, the user could share it with someone else....

It might be better to just strip out all of the shipping info stuff from the templates and from the code and then email them a unique download link....

BaBa2002 02-03-2003 09:26 AM

ok thx bud
and what about a page that creat a random password and protect the directory of the file or is that to much work?

ps i'm a newbi to php

ChurchMedia 02-03-2003 01:14 PM

Believe it or not, I'm a newbi too ;). I'm sure there's a way you could do it. Maybe when I have a few more months of programming under my belt I can write something like that....

ethics 02-09-2003 03:32 PM

Church. First of all, thanks again for doing this.

Question: I've installed the hack, added an item and tried testing it out. When I hit submit my order on top it said, "Could not send email" but it did send it and I got it in my email box with all of the pertinent information.

ChurchMedia 02-11-2003 02:09 PM

Strange... Double-check this line of code in the store chunk:

PHP Code:

mail$to$subject$message,"From: $bbuserinfo[email]") or print "Could NOT send mail"

and this one

PHP Code:

mail$to$subject$message,"From: [email]youremail@yourdomain.com[/email]") or print "Could NOT send mail"

If everything looks okay and you still get the message, just delete (in both lines):

Code:

or print "Could NOT send mail"
So, it would look like this:

PHP Code:

mail$to$subject$message,"From: [email]youremail@yourdomain.com[/email]"); 

That will get rid of the message. Good luck!

ethics 02-11-2003 10:40 PM

Thank you very much, sir.

ethics 02-13-2003 02:33 PM

Another question if I may.

Say I set quantity of 3. Anyway I can make the code say something like, you can't buy anymore once the quantity == to sold#?

ChurchMedia 02-13-2003 02:43 PM

That's a good idea and should be pretty simple. You would need to run a query to find out how many have been sold and then use an "if" statement. Unfortunately, I'm really swamped right now and wouldn't be able to code it for a couple of weeks. I'm actually a little new to PHP, otherwise I bet I could bang it out in a few minutes. If anyone else sees this request, feel free to give us some code. It would have to be hard-coded in the product action sections, otherwise a new field would have to be added and some admin modifications...

If no one comes up with something I'll get to it ASAP. Good luck :)

ethics 02-13-2003 07:07 PM

Sounds great. I wish I was a decent programmer. Unfortunately, I have a mental block (although I think I would have been very good at this).


All times are GMT. The time now is 11:11 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.01240 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_php_printable
  • (1)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