Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Download Credit System Details »»
Download Credit System
Version: 1.00, by tnguy3n tnguy3n is offline
Developer Last Online: Sep 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.0.7 Rating:
Released: 03-27-2005 Last Update: Never Installs: 57
DB Changes
 
No support by the author.

Author: tnguy3n (Thinh Nguyen)
Live Demo: http://www.all4actions.net
Description:
This hack allows admin to set a specific amount of credit required to download each attachment. Admin can assign which forums this hack to take effect, excluding usergroups not to be restricted by it, resetting user's credit ...
Users can earn credits by making threads/replies, or sharing their files (upload). This hack may become handy in some ways, it forces members on your board to post more to earn credits, also to prevent leechers.
Default settings of of Download Credit System is off. Go to Admincp -> vBulletin Options -> Download Credit System to activate it.

VERSION v.1.1 is newest release. If you installed previous version, please reverse it (actually, just 3 files: includes/functions_newpost.php, attachment.php, newattachment.php), then re-install new one.

Features:
- Ability to reset users credits
- Exceptional Groups
- Credit System Applied To Specific Forums
- Credits Per Post
- Credit Per Thread
- Credit Per Attachment
- Download Cost (users download their own attachments at no cost)
- Pet Owning Cost **

Planned features: (next release)
- ucash/ushop integration
- paypal integration

Queries (run installer http://yoursite/forum/admincp/credit..._installer.php)
File Modification: 4
Template mod: 2
Installation Time: 3-5 mins
Tested in vb 3.0.3 -> 3.0.7

Pls click INSTALL button if you use it.

Show Your Support

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

Comments
  #17  
Old 03-29-2005, 08:52 AM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

check your settings, Credit System For Forums. Leave that part blank or the forum your post replies must be included there.
Reply With Quote
  #18  
Old 03-29-2005, 09:07 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tnguy3n what part of code have u updated so members can download there own attachments for free as already installed it so dont want to have to re-do it all.
Reply With Quote
  #19  
Old 03-29-2005, 12:27 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

heres the problem m8

as you can see by the pic u need a credit to actually view the pic that is attached whihc is useless really.

Ok have messed with this for a few hours and the hack simply dont work.
it works if u want every attachment on your board to be paid for with credit but the option in admin to set certain forums certainly dont work.

I had set forum id 2 in admincp as the only forum which people need credit for to download but any attachments in any other forum also fall under the credit system even though they are not listed in admincp.

So it seems it covers every attachment on all the board inc all sections.

if these bugs could be solved this would be a good hack to have.

1 - maybe have an option to exclude forums
2 - jpegs or gifs do not require credits
3 - bug where it covers every attachment on the board - and not sections. (forum IDS)
Reply With Quote
  #20  
Old 03-29-2005, 01:09 PM
Wential Wential is offline
 
Join Date: Aug 2004
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic!
Reply With Quote
  #21  
Old 03-29-2005, 01:24 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Seems like a cool idea this one, but I was merely wondering if I could manually alter the credit number in the AdminCP? Like, if a user has 76, I can alter the number to f.ex. 50?
Reply With Quote
  #22  
Old 03-29-2005, 01:32 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah u can alter credit for any user just by going to admincp and looking up that user -there is a new box there under the reputation which says how mucj they got.You can give or take at will.

But hack still has serious flaws to it at moment.


https://vborg.vbsupport.ru/showpost....6&postcount=18
Reply With Quote
  #23  
Old 03-29-2005, 01:58 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm, it's not so important about the attachments... I was thinking of kinda using this in a RPG setting, where the credit points can be used it a shop f.ex But thanks for the reply!
Reply With Quote
  #24  
Old 03-29-2005, 02:18 PM
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Location: U of I, Iowa
Posts: 846
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas.
Reply With Quote
  #25  
Old 03-29-2005, 03:00 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okies, I have a question... It seems that every user on my board (or at least the ones I looked at) had the same points as me (admin account). Even if I altered one user's account to have 8 points, it still displayed 4 points, which my account has (4 points)...

Any idea how to fix this? Thanks,

Edit in: Apparently only I (Superadmin) can view the credit points... The other usergroups (even other admins) can't...
Reply With Quote
  #26  
Old 03-29-2005, 03:15 PM
Julie's Avatar
Julie Julie is offline
 
Join Date: Mar 2005
Location: Oslo, Norway
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NitroMan
has anyone else had this problem
the post count not showing up or the credits
help if u can thanks
I have the problem that only I can see them, but did you add the code in the postbit_legacy template? At first I just added it in the POSTBIT template, but that didn't work.... Added it in postbit_legacy and it worked
Reply With Quote
  #27  
Old 03-29-2005, 03:45 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tnguy3n
I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas.
look forward m8 to the update and thanks

as for the forumids there was`nt any spaces as on that line all i had was

2

nothing else yet every other forum still wanted creidt to view a pic or attachment.

tbh im not really bothered about all forums have a price to download an attachment as can get round that by only allowing certain forums to be allowed to have attachments but the main problem is the jpegs and gifs
Need these to get around the problem and ill be happy.
Reply With Quote
  #28  
Old 03-29-2005, 11:58 PM
PixelFx PixelFx is offline
 
Join Date: Dec 2002
Posts: 1,117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks like a good hack, if you can add admincp to exclude specific files or images it from the credit / points system would be worth installing. also if you could make a phrase to change the name from credits to anything that would be cool. of if your using ucash system to have it take on the name points.
Reply With Quote
  #29  
Old 03-30-2005, 07:04 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've created an addon for it to work with uCash, find it here: https://vborg.vbsupport.ru/showthread.php?t=79000
Reply With Quote
  #30  
Old 03-30-2005, 08:15 AM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, this *might* work, I guess it's worth the try.

Find:
PHP Code:
// Begin Download Credit System 
BELOW, add:
PHP Code:
 $extension strtolower(file_extension($attachmentinfo['filename']));
 switch(
$extension)
 {
    case 
'gif':
    case 
'jpg':
    case 
'jpeg':
    case 
'jpe':
    case 
'png':
    case 
'bmp':
                 
        
$vboptions['credit_mode']=0;
        
$cmpt++;
                        
    break;

Reply With Quote
  #31  
Old 03-30-2005, 08:26 AM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what file ??

newattachment or attachment ?

in fact will try both

BRB
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 11:31 PM.


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.10309 seconds
  • Memory Usage 2,362KB
  • Queries Executed 30 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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