Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Addon]Download Credit System with uCash Details »»
[Addon]Download Credit System with uCash
Version: 1.00, by Deaths Deaths is offline
Developer Last Online: Mar 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-28-2005 Last Update: 04-04-2005 Installs: 32
 
No support by the author.

Requested by some people, so here it is!
Basicly the name says it, its an addon for tnguy3n's hack "Download Credit System".

There was a small typo in the install file, if you downloaded before 4-5-2005, please redownload, and redo the edits to attachment.php and newattachment.php!
The install file contains all the info you need.

Stats:
  • 0 Queries executed
  • 4 File edits.
  • 1 template edit.

Enjoy!

Download Credit System may be found here: https://vborg.vbsupport.ru/showthrea...ewpost&t=78953

An addon to this addon can be found here: HACK MODIFICATION - "PAY" POINTS IN SPECIFIC FORUMS INSTEAD OF PLAIN SUBTRACTION

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 05-07-2005, 03:43 AM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the code, but it didn't seem to work. I noticed that points were not getting deducted from the person downloading, nor was the person who uploaded the attatchment receiving points.
Reply With Quote
  #43  
Old 05-07-2005, 03:51 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

have you enabled the Download Credit System?
Reply With Quote
  #44  
Old 05-07-2005, 03:53 AM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes. When I switched the code back to how it was, points were getting deducted like usual. Just tried again, and same thing.
Reply With Quote
  #45  
Old 05-07-2005, 03:59 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just a simple db insert, nothing else.

Quote:
$DB_site->query_first("UPDATE " . TABLE_PREFIX . "user SET uttpoints=uttpoints-$cost WHERE userid = $bbuserinfo[userid]");
$DB_site->query_first("UPDATE " . TABLE_PREFIX . "user SET uttpoints=uttpoints+$cost WHERE userid = $attachmentinfo[userid]");
Reply With Quote
  #46  
Old 05-07-2005, 04:02 AM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
This is just a simple db insert, nothing else.
Sorry, I'm not exactly sure what I do with that code?
Reply With Quote
  #47  
Old 05-07-2005, 04:04 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go back to post number 39 above.
Reply With Quote
  #48  
Old 05-07-2005, 04:11 AM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, you're just saying that it's a db insert?

Hmm..I have no idea what's wrong and I really want to get this to work.

edit - Maybe this problem comes hand with another problem I'm having with the hack - It doesn't give the person who uploaded the attatchment any points either? Any help on that?
Reply With Quote
  #49  
Old 05-07-2005, 04:16 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. You need
1-to install original hack
2-Install Deaths changes
3-Apply the change in attachment.php in post 39
4-put the conditional in postbit
5-make sure that you are not an admin when you test it.
6-make sure the tester *does not* have enough points and watch him being stopped
7-try with a tester with enough points. Jot down how many points he has before, then see if is minus what you set in your vboptions. Also refresh page and jot down how many points uploader has.

Forgot to add: make sure attachment is downloadable, not smaller than thumbsize if it's an image. It has to be clickable.


Works fine for me. Good luck.

The only negative is that the poor member viewing attachment gets deducted every time.
Reply With Quote
  #50  
Old 05-07-2005, 04:26 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only difference between Deaths code and this one is the addition of
Quote:
$DB_site->query_first("UPDATE " . TABLE_PREFIX . "user SET uttpoints=uttpoints+$cost WHERE userid = $attachmentinfo[userid]");
to give the points to uploader. So it does not make sense that nothing is happening and that it works well without this.
Reply With Quote
  #51  
Old 05-07-2005, 07:19 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Follow the instructions here.

EDIT: Ah, I see you have already replied
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04568 seconds
  • Memory Usage 2,302KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete