![]() |
Download Credit System
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. |
installed and works fine - was real easy installation as well.
One problem - it costs us our own credit to download any attachments we have uploaded.Should`nt anything we upload be free for us to download - but besides that it does what it says on the can :) Well done m8 - quick and easy way to make people be active if they want something |
hum... we win points by posting etc... good thing, but would it be handy to compare with the other point systems (uShop etc) so there is no double points anywhere?!
or making this system compatible with the uShop would be even better... no need to edit all the files, just the download part...!!! (these are suggestions thought!) |
good points, lasto. and thanks for the feedbacks guys. making it compatible with uCash system is on my todo list already. :)
|
you know for posts - 0.25
they never add up i did four replys in suscession so should of got 1 point after the fifth reply it still never showed up infact something aint right i set it so u get 1 point for new thread and 1 point for each attachment now just done a new thread and added an attachment with it but i only got 1 point altogehter ?? |
Quote:
|
tnguy3n i would actually use this but at moment im using it local on me comp.
Is this possible - if attachment is RAR then credit to download if attachment is jpeg or gif its free so no credit needed - as i run a map forum for RTCW and ET and people upload maps as rars but they also add a preview pic and dont want to start charging people to view a preview pic. Also this needs fixing badly Quote:
|
another great suggested feature. You can just put an if...else statement in newattachment to check whether the uploaded file is within "credit-up" extensions.
I'll look into it later of the day (run for class now). |
cheers m8 not sure how to do the statement so any help appreciated on that - catch u laters when u back from class.
|
I would love to see this integrated with ushop
|
dont use ushop - so just happy to have them few bits above fixed.
|
I made a few fixes just by now. users can download their own attachments with no cost; unfortunately, extension part still ain't work. :rolleyes:
|
has anyone else had this problem
the post count not showing up or the credits help if u can thanks |
Another suggestion would be allow others to purchase download credits via PayPal and update upon payment completion. I am sure many would gain use from this feature.
|
|
check your settings, Credit System For Forums. Leave that part blank or the forum your post replies must be included there.
|
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.
|
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) |
Fantastic!
|
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?
|
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 |
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! :)
|
I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas. |
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... |
Quote:
|
Quote:
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. |
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.
|
I've created an addon for it to work with uCash, find it here: https://vborg.vbsupport.ru/showthread.php?t=79000
|
Ok, this *might* work, I guess it's worth the try.
Find: PHP Code:
PHP Code:
|
what file ??
newattachment or attachment ? in fact will try both BRB |
EDIT
Ok am back - Its looking good so far - done a few test posts with 1 preview pic and 1 small test rar The rar wont download if got no credit which is fine but the pic loads fine :) will do a few more tests to see if its 100% but so far its looking good. EDIT (again) Ok can confirm that the code that Death posted does show image files while making people pay a credit to download the attached rar. add the code in attachment.php |
If you add it to newattachment.php it wont give credits for images, if you add it to attachment.php it wont ask credits for the images :)
|
Quote:
Thanks for testing :). |
Sorry, i still ain't able to complete integration with Ushop/Ucash nor pet system or Paypay due to my massive amount of skool work + works. However, I release this version v.1.1 of the hack (as update) to patch some minor bug in previous version. I didn't update instruction(no time), but you can reverse previous version of the hack, then install new one, v.1.1.
fixes in version 1.1. - system works in assigned forums - user download their own attachment for no costs - fix upload stats TO FIX BUG in inaccuracy of upload stats (multiple attachments), it's recommended to set max allowed upload attachment to 1. Features will be included in next release v.1.2 (working on it on my localhost now) - image files will be free to view - credit system applied to certain file extensions - Ucash/Ushop integration - vbpet integration - paypay integration v.1.2 expected to be released this weekend. stay tuned. and thanks Deaths + lasto for great inputs + suggestions. :up: |
If you wish, you may use my uCash integration code (can be found in my addon thread), and the 'Dont show image' (can be found in this thread) :).
You can edit my 'Dont show image' code to apply to other attachment types aswell, just add a new case line ;) |
thanks, I might use your uCash integration. for images, i used if statement to check if it's in "credit" array, return false if not. :)
|
Thats posible aswell :).
If you don't have any time, just send me a PM, I'll code the addons for you. |
thanks, I'll send you the project if I ain't be able to finish it this weekend. I'm pretty busy, skool + work already take away my whole day.
|
Ok mate, sounds good.
|
looking good and cheers
|
All times are GMT. The time now is 07:36 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|