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
  #32  
Old 05-02-2005, 04:46 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lowandloudinc
i fixed that issue-----
but


how can i make it so that when i get a new registered user he automatically gets 45 points in his account with out me having to give him points so he can download stuff. that would be an excellent add on for me. cause now i have to give each one points and its a hassle. thanks deaths your the man!

i really need a bump to this request. who can help me out?
Reply With Quote
  #33  
Old 05-02-2005, 02:30 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must've missed this, sorry guys .

This can easily be done using phpMyAdmin.
Go to your forums DB, edit the "user" table, and find the "uttpoints" row.
Edit it, and set the 'default' field to whatever you want (40 in your case).

If you want to do this for the Credit system, just edit the 'credits' row
Reply With Quote
  #34  
Old 05-02-2005, 05:09 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deaths
I must've missed this, sorry guys .

This can easily be done using phpMyAdmin.
Go to your forums DB, edit the "user" table, and find the "uttpoints" row.
Edit it, and set the 'default' field to whatever you want (40 in your case).

If you want to do this for the Credit system, just edit the 'credits' row

ok i will try this right now and edit this post when it works. thanks deaths your the man!


yup it worked like a charm. i tested it and everything. thanks deaths!
Reply With Quote
  #35  
Old 05-02-2005, 06:40 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem, glad I could be of help
Reply With Quote
  #36  
Old 05-05-2005, 02:24 AM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.

Also, does the credits received per attatchment option work? If so, mine does not work and I have no idea why.
Reply With Quote
  #37  
Old 05-05-2005, 06:24 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That has been requested before, but unfortunately I'm not the person to ask this to .
I simply coded this addon to make it work with uCash, if you want that addition you'll need to ask in the actuall hack's thread (https://vborg.vbsupport.ru/showthread.php?t=78953).

EDIT: Don't have a clue why that is... is anyone having this problem?
Reply With Quote
  #38  
Old 05-05-2005, 07:03 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey mix you probably skipped a step. as long as you follow the steps you should be good.
Reply With Quote
  #39  
Old 05-06-2005, 08:00 PM
MixMakers MixMakers is offline
 
Join Date: Apr 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just checked it over again and everything seems fine...Help please!

Also, not sure if it's meant to be this way or not, but when a user posts a thread or reply, he will get points from the uCash hack, and also points from the credit system hack.

Just giving you a heads up.
Reply With Quote
  #40  
Old 05-06-2005, 10:51 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MixMakers
Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.

Also, does the credits received per attatchment option work? If so, mine does not work and I have no idea why.
Dark Visor did it for me. Here is the code, with his blessings.
In attachment.php replace entire block of

Quote:
// Begin Download Credit System
...
// End Download Credit System
with:

Quote:
// Begin Download Credit System
if($vboptions['credit_mode'])
{
// quick for exceptional groups not restricted by this credit system
if(in_array($attachmentinfo['forumid'], explode(',', $vboptions['credit_sysapplied'])))
{
$usercredits = $bbuserinfo['uttpoints'];
$cost = $vboptions['credit_cost'];
if($usercredits < $vboptions['credit_cost'])
{
eval(print_standard_error('error_notenuffcredits') );
}
else
{
$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]");
}
}
}
// End Download Credit System
There is also a conditional to put in postbit to let people know that they are 'paying' x points to user for downloading.
Reply With Quote
  #41  
Old 05-06-2005, 11:11 PM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HACK MODIFICATION - "PAY" POINTS IN SPECIFIC FORUMS INSTEAD OF PLAIN SUBTRACTION

-------------------------------------------
1. Do what it says here.
-------------------------------------------

-------------------------------------------
In showthread.php, find:
-------------------------------------------

PHP Code:
$show['viewpost'] = iif(can_moderate($thread['forumid']), truefalse);
$show['managepost'] = iif(can_moderate($thread['forumid'], 'candeleteposts') OR can_moderate($thread['forumid'], 'canremoveposts'), truefalse); 
-------------------------------------------
Add after:
-------------------------------------------

PHP Code:
$show['creditrequired'] = iif(in_array($thread['forumid'], explode(",",$vboptions['credit_sysapplied'])), 1, -1); 
-------------------------------------------
In showpost.php, find:
-------------------------------------------

PHP Code:
$post['postcount'] = $postcount
-------------------------------------------
Add after:
-------------------------------------------

PHP Code:
$show['creditrequired'] = iif(in_array($threadinfo['forumid'], explode(",",$vboptions['credit_sysapplied'])), 1, -1); 
-------------------------------------------
In postbit & postbit_legacy templates, find:
-------------------------------------------

PHP Code:
<if condition="$show['thumbnailattachment'] OR $show['attachments'] OR $show['imageattachment']"
-------------------------------------------
Add after:
-------------------------------------------

PHP Code:
<if condition="$show[creditrequired]==1 AND $vboptions[credit_mode]==1">
<
div align="center" style="font-size: 8pt">
<
b><br /><br />NoteBy downloading attachments from this forumyou automatically pay $vboptions[credit_costpoints to the attachment owner.</b>
</
div>
</if> 
-------------------------------------------
Add a credit_sysapplied setting into this hack's setting group. This is a plain text field. In it, input forum IDs of the forums you want this add-on to work in.
-------------------------------------------

Done!
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 07:28 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.04520 seconds
  • Memory Usage 2,332KB
  • 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
  • (6)bbcode_php
  • (5)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