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

this is what i have for the attatchment.php edit. at the bottom is the only similar code that i have to the one you say i have to edit. is this correct?



PHP Code:
// Begin Download Credit System
if($vboptions['credit_mode'])
{
    
// quick check for exceptional groups not restricted by this credit system
    
if(!in_array($bbuserinfo['usergroupid'], explode(','$vboptions['credit_noapplied'])))
    {
        if(
$bbuserinfo['userid'] != $attachmentinfo['userid'])
        {
            
$usercredits $bbuserinfo['credits'];
            
$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 credits = credits - 
$cost 
                    WHERE userid = 
$bbuserinfo[userid]
                "
);
            }
        }
    }
}
// End Download Credit System
if ($attachment['postid'] == AND $bbuserinfo['userid'] == $attachmentinfo['userid']) 
Reply With Quote
  #23  
Old 04-04-2005, 07:28 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

and this one is for the newattatchemnt.php im not sure if this is correct either. if theres anything you can help me with ide appreciate it. or is it that this addon isnt going to work for my obard?

PHP Code:
        eval('$parentattach .= "' fetch_template('newpost_attachmentbit'00) . '";');
                
// Begin Download Credit System
        
if($vboptions['credit_mode'])
        {
            
// check if the system apply to only certain forums
            
if(empty($vboptions['credit_sysapplied']) OR in_array($foruminfo['forumid'], explode(','$vboptions['credit_sysapplied'])))
            {
                
$totalcredits $attachcount $vboptions['credit_perattach'];
                
$DB_site->query_first("UPDATE " TABLE_PREFIX "user 
                    SET credits = credits + 
$totalcredits 
                    WHERE userid = 
$bbuserinfo[userid]
                "
);
            }
        }
        
// End Download Credit System

    
}

Reply With Quote
  #24  
Old 04-05-2005, 07:51 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I've made a little typo.

Redownload the zip, and redo the edits to attachment.php and newattachnent.php.
Reply With Quote
  #25  
Old 04-05-2005, 08:00 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Deaths
Sorry, I've made a little typo.

Redownload the zip, and redo the edits to attachment.php and newattachnent.php.

ok im going to do this now. thanks
Reply With Quote
  #26  
Old 04-05-2005, 08:24 AM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok hell of a job deaths. this is a great hack and now it works. what ever you changed was my issue. it works fine i tested it every way and i thank you for your time and effort. cant wait for your next projects. now that i know a little more ill try to help you out on the questions.

And everyone make sure to click install! very important
Reply With Quote
  #27  
Old 04-05-2005, 08:37 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad to hear you got it to work .
Reply With Quote
  #28  
Old 04-20-2005, 11:30 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is me who did a bad install or if member does not have enough points, thumb shows as broken?
Reply With Quote
  #29  
Old 04-20-2005, 01:43 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deaths, quick question: In order to encourage uploads, can this be made that portion of points taken from downloading member is given to member who uploaded? If yes, I could setup a forum like a mp3 portal.
Reply With Quote
  #30  
Old 04-20-2005, 02:57 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be very complicated, as you'd probably have to create a new table for that.

This is simply an addon, and what you are asking is changing a rather simple hack into a major addition.

I'm currently very busy, but when I find some time, I'll try creating it for you. (Can take a couple of weeks, though)
Reply With Quote
  #31  
Old 04-27-2005, 05:01 PM
VBUsers's Avatar
VBUsers VBUsers is offline
 
Join Date: Aug 2004
Posts: 830
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
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 02:38 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.04998 seconds
  • Memory Usage 2,324KB
  • 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
  • (2)bbcode_php
  • (1)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