Log in

View Full Version : New Posting Features - Download Credit System


tnguy3n
03-27-2005, 10:00 PM
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/creditsystem_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.

lasto
03-28-2005, 03:48 PM
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

nexialys
03-28-2005, 03:48 PM
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!)

tnguy3n
03-28-2005, 03:55 PM
good points, lasto. and thanks for the feedbacks guys. making it compatible with uCash system is on my todo list already. :)

lasto
03-28-2005, 03:56 PM
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 ??

tnguy3n
03-28-2005, 03:59 PM
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 ??
sorry, i use int type in that column, so it rounds up .25 = 0 . I forgot to change that value back in my installer.

lasto
03-28-2005, 04:05 PM
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



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 ??

as you will penaliseing people who add attachments to their first post in a thread.

tnguy3n
03-28-2005, 04:12 PM
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).

lasto
03-28-2005, 04:16 PM
cheers m8 not sure how to do the statement so any help appreciated on that - catch u laters when u back from class.

Lionel
03-28-2005, 10:21 PM
I would love to see this integrated with ushop

lasto
03-29-2005, 12:12 AM
dont use ushop - so just happy to have them few bits above fixed.

tnguy3n
03-29-2005, 01:27 AM
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:

NitroMan
03-29-2005, 02:40 AM
has anyone else had this problem
the post count not showing up or the credits
help if u can thanks

AlienSector
03-29-2005, 07:51 AM
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.

Deaths
03-29-2005, 08:43 AM
I've created this addon for the hack:
[Addon]Download Credit System with uCash (https://vborg.vbsupport.ru/showthread.php?t=79000)

Enjoy :)

tnguy3n
03-29-2005, 08:52 AM
check your settings, Credit System For Forums. Leave that part blank or the forum your post replies must be included there.

lasto
03-29-2005, 09:07 AM
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.

lasto
03-29-2005, 12:27 PM
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)

Wential
03-29-2005, 01:09 PM
Fantastic!

Julie
03-29-2005, 01:24 PM
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?

lasto
03-29-2005, 01:32 PM
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.php?p=632906&postcount=18

Julie
03-29-2005, 01:58 PM
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! :)

tnguy3n
03-29-2005, 02:18 PM
I'll release updated version of this hack later of the nite.
@ lasto: don't use space between commas and forumids, just commas.

Julie
03-29-2005, 03:00 PM
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...

Julie
03-29-2005, 03:15 PM
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 :)

lasto
03-29-2005, 03:45 PM
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.

PixelFx
03-29-2005, 11:58 PM
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.

Deaths
03-30-2005, 07:04 AM
I've created an addon for it to work with uCash, find it here: https://vborg.vbsupport.ru/showthread.php?t=79000

Deaths
03-30-2005, 08:15 AM
Ok, this *might* work, I guess it's worth the try.

Find:
// Begin Download Credit System


BELOW, add:

$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;
}

lasto
03-30-2005, 08:26 AM
what file ??

newattachment or attachment ?

in fact will try both

BRB

lasto
03-30-2005, 08:36 AM
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

Deaths
03-30-2005, 09:13 AM
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 :)

Deaths
03-30-2005, 09:14 AM
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
Good to hear!
Thanks for testing :).

tnguy3n
03-30-2005, 01:50 PM
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:

Deaths
03-30-2005, 01:55 PM
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 ;)

tnguy3n
03-30-2005, 02:00 PM
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. :)

Deaths
03-30-2005, 02:01 PM
Thats posible aswell :).

If you don't have any time, just send me a PM, I'll code the addons for you.

tnguy3n
03-30-2005, 02:06 PM
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.

Deaths
03-30-2005, 02:17 PM
Ok mate, sounds good.

lasto
03-30-2005, 02:20 PM
looking good and cheers

ChrisSy
03-30-2005, 06:44 PM
what about a way of limiting how many credits a member can daily use?

lasto
03-30-2005, 06:49 PM
thats an excellant idea ChrisSy - lets hope its possible - say admin specify in admincp how much each user can use and if they go over that quoto then it will show em the error screen.

Deaths
03-31-2005, 06:48 AM
Hmm, I guess that could be done by adding an extra field, which resets dayly...

NitroMan
04-01-2005, 09:58 AM
can someone help me i have done this hack and
it wont show how many credits that u have

lasto
04-01-2005, 10:03 AM
it wont show credits m8 till you actually earned some.

Simple test - whatever forum u set up to allow credits in - go in there make a new thread and add a small rar as an attachment then your credits will show up.

NitroMan
04-01-2005, 10:24 AM
i left it balnk like tnguy3n said to do
and still dosent show

lasto
04-01-2005, 10:36 AM
u left what blank m8 ?
u still need to select a forum in admincp as to where the credits will be added.without this no credits will be issued.

put a forumid in the credit system in admincp then go do a new thread - it will work then.

NitroMan
04-01-2005, 10:46 AM
lasto i did that also as u suggested and it still didnt work

NitroMan
04-01-2005, 10:48 AM
and i keep getting this everytime i try to install it

There seems to have been a slight problem with the ###### database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.0.7:

Invalid SQL: ALTER TABLE user ADD credits INT(10) DEFAULT '0' NOT NULL;
mysql error: Duplicate column name 'credits'

mysql error number: 1060

Date: Friday 01st of April 2005 06:46:36 AM
Script: http://www.############.com/forums/admincp/creditsystem_installer.php?op=install
Referer: http://www.###########.com/forums/admincp/creditsystem_installer.php
Username:
IP Address:

NitroMan
04-01-2005, 10:50 AM
i have went in and removed the columns called credit
in the db and still when it gets to that point it stops

lasto
04-01-2005, 11:05 AM
u seem to be running the install again - DONT

the bit u need to set up is in vbull admincp/ then go to options scroll down to you see the download credit options.

NitroMan
04-01-2005, 11:10 AM
lasto i set the forums part i set it to 2,3 and still didnt work

lasto
04-01-2005, 11:30 AM
just been to your forums m8 - maybe u need to go over the hack again.Its a real easy one to install so its got to be a problem on your side as this hack does work as ive tested it to death.

NitroMan
04-01-2005, 12:11 PM
ok lasto go here and look
it still dosent show
how many credits u have only how many post

http://www.nitromanslounge.com/forums/showthread.php?p=83#post83

as u can see here it is installed right

lasto
04-01-2005, 12:20 PM
got to register to see that m8 - anyway if you are admin you wont see the credit in your own threads because in the setting above u have excempted yourself.

Remove the 6 and try to do a thread in the section which you desinated and see what happens then.

NitroMan
04-01-2005, 12:26 PM
still dosent show i have posted as a admin and as a supermoderator
and removed the 6,7 still dosent show
i removed the 6,7 before i posted as a supermod

NitroMan
04-01-2005, 12:41 PM
lasto what i am talking about is it is suspost to show how many credits u have available for downloading
and as u can see here it doesnt show it

Deaths
04-01-2005, 12:45 PM
Are you sure you edited your postbit template, and not your postbit_legacy?

NitroMan
04-01-2005, 06:35 PM
thanks deaths that is what it was i went by the install file and thought it was postbit_legacy

thanks for helping deaths

tnguy3n
04-02-2005, 03:07 AM
Sorry guys, for now, this hack only has installer which insert phrases & settings to vb database. I'll write an un-installer & update instruction in some time, hopefully this weekend. :)
and yeah, you edit postbit or/and postbit_legacy depending on what postbit style you use.

Julie
04-02-2005, 11:06 AM
Just bumping my question from before, with a slight editing :)

I can't see other's points, I just see my own on everyone elses posts. F.ex, user1 has 5 points, user2 has 2 points. When user1 views a post by user2, user1 sees 5 points, even though user2 has 2 points... Did that make sense?

I can't see other's real point count, just my own on everyone elses...

Anyone know why?

lasto
04-03-2005, 10:44 AM
lo tnguy3n any update on this ?

Skyline_GT
04-03-2005, 10:56 AM
very very nice mod

PixelFx
04-03-2005, 11:58 AM
once 1.2 is out and stable, this looks like a hack of the month for sure... :) I clicked install although prob won't install it till 1.2 .. looks great though.

lasto
04-03-2005, 02:29 PM
yep im waiting for update to this and agree once its sorted (minor problems its deffo HOTM) and its even better now that certain pics can be excluded.

Skyline_GT
04-03-2005, 08:34 PM
I hope the 1.2 version will be out later today:D

Deaths
04-04-2005, 06:52 AM
I'm still waiting for tn's go signal :/

VBUsers
04-05-2005, 07:55 AM
Just bumping my question from before, with a slight editing :)

I can't see other's points, I just see my own on everyone elses posts. F.ex, user1 has 5 points, user2 has 2 points. When user1 views a post by user2, user1 sees 5 points, even though user2 has 2 points... Did that make sense?

I can't see other's real point count, just my own on everyone elses...

Anyone know why?

i have this same error can anyone help??? i see my own points on all of my members posts. this is the code i entered into the postbit legacy

$vbphrase[posts]: $post[posts]
|<br><if condition="$vboptions[credit_mode] AND $bbuserinfo[credits]">Credits: $bbuserinfo[credits]</if>

tnguy3n
04-05-2005, 08:00 AM
sorry guys, I've been taken up by some other priorities. I postponed this project til Wednesday as I'll have some spare time.

@ lowandloudinc: user following code in postbit_(legacy)
$vbphrase[posts]: $post[posts]
|<br><if condition="$vboptions[credit_mode] AND $post[credits]">Credits: $post[credits]</if>

Julie
04-05-2005, 12:21 PM
sorry guys, I've been taken up by some other priorities. I postponed this project til Wednesday as I'll have some spare time.

@ lowandloudinc: user following code in postbit_(legacy)
$vbphrase[posts]: $post[posts]
|<br><if condition="$vboptions[credit_mode] AND $post[credits]">Credits: $post[credits]</if>

Thanks, that did the trick ;)

dcarr
04-07-2005, 08:35 PM
ok I got the pictures to work..but I also have the forumid problem. I've only got one forum chosen..yet every forum that has a zip or rar file is included. More importantly, I've had the hack running for 3 days and not 1 member of my board has a credit. I have the system set to give 1 credit for 1 post...but every member of my board sitll has 0 credits...even thouse with over 300 posts. Any ideas?

VBUsers
04-07-2005, 09:23 PM
they get credits after th hack. now when they post they get em. i dont think it back dates em. and im not sure about the setting it to one forum. i havent done that but ill try it and see if i can help you

lasto
04-07-2005, 09:52 PM
any update on this as yet ?

Skyline_GT
04-09-2005, 01:37 AM
yea. any update?

lasto
04-11-2005, 12:16 PM
any updates because hate to install this version on a live board and then u release a new one.Held off as long as possible can - Weds came and went :(

tnguy3n
04-11-2005, 04:26 PM
sorry, i still didn't have much of time to wrap up this hack. I'll look into it after classes today. :squareeyed:

PixelFx
04-13-2005, 11:55 PM
take your time, classes important, let us know when you have update ready ;)

Skyline_GT
04-18-2005, 09:18 AM
I got this error when runnig the insteller..


Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO setting VALUES ('credit_mode', 'creditsystem', '0', '0', 'yesno', 1, 0, 0);
mysql error: Column count doesn't match value count at row 1

lasto
04-18-2005, 09:30 AM
thought an update had been posted then :(

Marco van Herwaarden
04-18-2005, 09:44 AM
I got this error when runnig the insteller..You must be running a hack that has modified your setting table then.

Skyline_GT
04-18-2005, 09:45 PM
You must be running a hack that has modified your setting table then.
I wonde what can I do?

Marco van Herwaarden
04-19-2005, 03:31 AM
What MySQL version are you running?

Skyline_GT
04-19-2005, 03:51 AM
4.0.23-standard

Marco van Herwaarden
04-19-2005, 03:57 AM
Could you post which fields are in your setting table?

Skyline_GT
04-19-2005, 05:06 AM
settingid settinggroupid title varname value description optioncode displayorder grouptitle defaultvalue advanced volatile

if you mean fields in the setting table.

Marco van Herwaarden
04-19-2005, 06:00 AM
Yes this is what i mean.

The first 3 fields are NOT standard vB fields. They have been added by you or some hack that you have installed, and are the cause of this problem. I am afraid that this modification to the table will be causing you a lot of problems. Anyway you can figure out where these fields come from, and what they are used for?

Skyline_GT
04-20-2005, 07:02 AM
arg.... this is not good.. I wonder is it possible to make it work for my table?

Skyline_GT
04-20-2005, 07:06 AM
also, they have nothing there.
the title colume are all blank and the settinggroupid are all 0 and the settingid starts from 3154 to 3984

Wential
04-24-2005, 04:36 PM
Great job Tnguy3n! I just installed this and it's exactly what I needed to encourage posting. Big favor though? Is there any way to integrate this with PhotoPost to subtract credits when someone views a file and adds credits when they upload? I would willingly compensate you for this add-on, just PM me the details.

Wential
04-24-2005, 09:28 PM
I got the credit system to remove credits for PhotoPost showphoto. I'll show you what I did and you guys can perfect it. My version only removes 1 credit per photo/file view.

In ShowPhoto.php find

// end pages/nav ###

Add the following after it (on mine it's line 948)

// Begin credit download reduction
{
$DB_site->query_first("UPDATE vb3_user
SET credits = credits - 1
WHERE userid = $bbuserinfo[userid]
");
}
// End credit download reduction

Wential
04-25-2005, 11:54 AM
The bad news with my add-on is it doesn't stop people from viewing the Gallery files after the credits fall to zero. Can anyone improve it to do that?

spiceman
04-26-2005, 02:22 AM
The bad news with my add-on is it doesn't stop people from viewing the Gallery files after the credits fall to zero. Can anyone improve it to do that?
Is there a way of making it so that users can only view certain forums if they have a certain amount of credit...cause thats what i want to use it for...

Skyline_GT
04-26-2005, 11:11 PM
also, they have nothing there.
the title colume are all blank and the settinggroupid are all 0 and the settingid starts from 3154 to 3984

anyone has any thoughts?

Wential
04-26-2005, 11:36 PM
Sorry, no clue. This hack works great on a NON-hacked board, but other hacks could be your problem.

MixMakers
05-05-2005, 03:18 PM
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.

shiva
05-07-2005, 12:34 AM
err. I have a big problem. No settings are showing in the options, just the download credit header and save.

Maybe it's a bug with phrases, have to be reset or something, but double and triple checked everything. Anyway I can manually set it untill someone helps on this?

Lionel
05-07-2005, 12:52 AM
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.

I posted a way to do that in the other thread where you originally requested it.

shiva
05-07-2005, 12:57 AM
I had to remove it. Serves me right really, the author has disappeared, but it does work in that it totally restricts everyone from downloading anything at least. :)

In the meanwhile, the phrases are still there, so if someone can tell me how to get the settings in my admincp options to actually appear, appreicate it.

lebanon
05-11-2005, 01:40 PM
i have installed this along with death addon , and when i go to vb options
i only see
save and cancel button with nothing else !
what possibly could be wrong ?

CrazyLady
05-11-2005, 02:25 PM
A suggestion? Can we somehow add this?

When a member downloads a file and spends the 25 or 50 points to view the file the points spent go to the member who posted the file.

So if I spend 50 points to view a file "member A" uploads he gains the 50 points I spent.

thoughts?

VBUsers
05-11-2005, 04:15 PM
i have installed this along with death addon , and when i go to vb options
i only see
save and cancel button with nothing else !
what possibly could be wrong ?

are you sure you did the right edits the the admincp/index ? check it as well as your template edits.

shiva
05-12-2005, 03:01 AM
I get the same thing, I thing maybe it's not VB 3.07 I am using, as the text file is wrong in one of the instructions for a template edit. I've redid it 3 times, and get the same problem. Doesn't help there's two installation files as well.
Anyway, I gave up and removed it. (Thank goodness for backups) but still have the phrases there.

Don't you mean admincp/user.php, and not index.php? There's nothing I see for that file. Wish the author will show up and answer some questions, this is vital to my sites health, as not being able to limit downloads by user group is one of those "must fix" things in VB

lebanon
05-12-2005, 11:09 AM
are you sure you did the right edits the the admincp/index ? check it as well as your template edits.

I must agree with shiva as i see /user.php edits, i did suppose there is some for index , when i edited the user.php i read the code and ofcourse it was related to its right place.
If there is an index.php edit as i supposed then u probably missed it ?
If not then i missed something else which why am asking here ...

thesatman
06-04-2005, 03:24 PM
I've just installed this great hack but i have 1 small problem, if you have no credits and click the attachment link i receive the error screen for no credits... thats OK

BUT if you right click the attachment and click "save target as" It allows you to save the attachment to your PC!! even with no credits!!!

What i'd like to do is edit the postbit_attachment template so if the user as no credits the attachment link is replaced with "You have insufficient credits" I'm sure this ca be done using the If & Else tags in the postbit_attachment template but not sure how to do it :(

Any help please ?

Cheers
Chris.

bryan09
06-10-2005, 08:28 AM
I've created this addon for the hack:
[Addon]Download Credit System with uCash (https://vborg.vbsupport.ru/showthread.php?t=79000)

Enjoy :)
Anywat to change the

Total Upload: 3541 KB
Total Download: 76 KB

From KB to MB?

Rover416
06-13-2005, 07:06 PM
Hi.

I installed this hack and i set it to give members 5 credits for each upload.

The only thing is it is giving amounts,one user uploaded a attachment and it gave them 16 credits instead of 5.

Anyone know were i went wrong. :confused:

Thanks

bryan09
06-16-2005, 05:15 PM
Anyway to change the

Total Upload: 3541 KB
Total Download: 76 KB

From KB to MB?

Upz!

Skyline_GT
06-21-2005, 04:48 AM
are there gonna be any updates?

Skyline_GT
06-21-2005, 07:05 AM
what you need to do so it will give new users 10 points for a start?

ushkand
06-24-2005, 05:09 AM
What am I doing wrong? I did all the modifications, ran the installer but I don't see any options in admincp.

Skyline_GT
06-24-2005, 09:30 AM
What am I doing wrong? I did all the modifications, ran the installer but I don't see any options in admincp.
the query that you ran has some problems... that's why it doesn't show.. just go to your phpmyadmin and fix it there...

ushkand
06-24-2005, 03:13 PM
the query that you ran has some problems... that's why it doesn't show.. just go to your phpmyadmin and fix it there...

Thanks. For some reason my settings columns are not in the same order and hence had to manually change the values. But its working now. Thanks again.

Adam21
07-07-2005, 03:59 PM
Ran into the following errors when editing the postbit_legacy template.after i click "save",this comes out
************************************************** ********
The following error occurred when attempting to evaluate this template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/myforum/public_html/includes/adminfunctions_template.php(3096) : eval()'d code on line 201

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
************************************************** ********

So,i did a check on the "/includes/adminfunctions_template.php",this is what is put in the file

This is on line 3096 eval('$devnull = "' . $template . '";');

This is on line 201 UPDATE " . TABLE_PREFIX . "style

After i ignore,and go ahead and save this template,i tried to upload a attachment.All i see is the words in red "Need 5 credits to download" .Did not see user's own credits,posts to dates and others.however,i still can view my own attachment.
Can someone who have successfully uploaded this hack,or anyone with this problem before or just about anyone,can help me solve this problem please?

bryan09
07-14-2005, 05:37 AM
If I want to uninstall this script, what are the proper ways to do so?

csidlernet
07-20-2005, 09:13 AM
thanks. exactly what i've been looking for!

johnmmichael
07-28-2005, 12:23 AM
I installed the hack is showing ,everything ok but do Ineed to put tags or something like that ?

bryan09
08-01-2005, 05:21 PM
If I want to uninstall this script, what are the proper ways to do so?

Xalibur
08-05-2005, 10:30 AM
anyone done a port for this to 3.5 yet ?

xtreme-mobile
08-05-2005, 05:30 PM
haveing small probelm here

if i download an attachment ot create a thread etc its awarding or taking credits away from all my members not just me, any ideas how to fix this lol

regards

dean

xtreme-mobile
08-05-2005, 05:34 PM
also it still allows you to download even though you have no credits

xtreme-mobile
08-08-2005, 07:54 PM
anyone?

karanlikdunya
08-15-2005, 11:23 PM
this hack 3.05 RC2 work?

DETCOMPUTER
09-09-2005, 08:42 AM
sorry guys, I've been taken up by some other priorities. I postponed this project til Wednesday as I'll have some spare time.

@ lowandloudinc: user following code in postbit_(legacy)
$vbphrase[posts]: $post[posts]
|<br><if condition="$vboptions[credit_mode] AND $post[credits]">Credits: $post[credits]</if>


ooo :D :rolleyes: :banana: tanks

PixelFx
09-10-2005, 01:03 AM
Planned features: (next release)
- ucash/ushop integration
- paypal integration

How goes development on this?

tnguy3n
10-08-2005, 12:13 AM
I don't know if anyone's still using vb3.0.x, but I already ported this hack to vb3.5. I'm testing it on my localhost testboard and i'll post it up when it's bug-free. :)

karanlikdunya
10-10-2005, 08:18 PM
ok wating

Allan
10-16-2005, 07:49 PM
no update for vB 3.5 Gold ?

Rover416
10-16-2005, 07:50 PM
I hope it will be soon.

VBUsers
10-19-2005, 01:41 AM
i need a little help. i have members who are loosing points just by browsing. some people lose 20 to 50 points at a time. and i have it set up for each download to cost them 1 point. each member gets 300 when they register automatically. they also claim to be loosing rep points. it only happens with certain members. i try to copy the issue but i cant. i dont know where the bug is at. can anyone help me or has anyone had this issue? thanks in advance.

PixelFx
10-20-2005, 05:29 AM
i need a little help. i have members who are loosing points just by browsing. some people lose 20 to 50 points at a time. and i have it set up for each download to cost them 1 point. each member gets 300 when they register automatically. they also claim to be loosing rep points. it only happens with certain members. i try to copy the issue but i cant. i dont know where the bug is at. can anyone help me or has anyone had this issue? thanks in advance.

please let me know when you have the vb3.5.0 version of this, and can you make it please work with ucash while your at it :P

I have people downloading 4.7 gigs a day in files off my site, and I'd like some way to restrict new accounts to how much they can download at a give time. aka via usergroups ..

VBUsers
10-25-2005, 07:06 PM
i need a little help. i have members who are loosing points just by browsing. some people lose 20 to 50 points at a time. and i have it set up for each download to cost them 1 point. each member gets 300 when they register automatically. they also claim to be loosing rep points. it only happens with certain members. i try to copy the issue but i cant. i dont know where the bug is at. can anyone help me or has anyone had this issue? thanks in advance.


bump i still have this issue. can anyone help

board.trash
10-26-2005, 05:01 PM
hello i need this n1 hack for 3.5 gold

is an update comming soon ?

i hope so.. thx

tnguy3n
10-26-2005, 08:53 PM
will be ready this weekend.

board.trash
10-26-2005, 10:08 PM
will be ready this weekend.

thank you very much tnguy3n!!! thx thx thx

board.trash
10-28-2005, 07:39 PM
tnguy3n a question ... is it possible when i delete a contribution, the credit then deleted automatic by this hack ?

i hope you understand what i mean :D

thx for your answer :D

tnguy3n
10-29-2005, 10:12 AM
by contribution, do you mean uploaded file (or attachment)? if so, the credit is to stay the same for posters, but it wouldn't be so hard to implement this option to the hack. :)

Rover416
10-30-2005, 07:56 AM
will be ready this weekend.

Thank you for letting us know.

Its the only thing i need now.

board.trash
10-31-2005, 09:31 AM
by contribution, do you mean uploaded file (or attachment)? if so, the credit is to stay the same for posters, but it wouldn't be so hard to implement this option to the hack. :)

example:

i post a new contribution and i became a credit.

i delete the contribution and the credit is not deleted.

for the new version it would be nice when somebody delete the contribution, the credit is deleted too :)

hope u understand what i mean :D

stan111
10-31-2005, 12:00 PM
tnguy3n, will this credit system work with this also ?
https://vborg.vbsupport.ru/showthread.php?t=80833&page=1

thanks in advance
btw: did you get the Music Page worked ?

tnguy3n
11-11-2005, 12:40 AM
tnguy3n, will this credit system work with this also ?
https://vborg.vbsupport.ru/showthread.php?t=80833&page=1

thanks in advance
btw: did you get the Music Page worked ?

@ board.trash: I'll update this hack sometimes this weekend and adding that option to it, and also the one stan111 suggested.

board.trash
11-11-2005, 04:54 PM
@ board.trash: I'll update this hack sometimes this weekend and adding that option to it, and also the one stan111 suggested.

:D thank you !!!

DJ XtAzY
11-11-2005, 06:06 PM
what i really want is that this hack works for v3.5 XD.... if u have time... plz port it to 3.5 =]

MuratCetin
11-14-2005, 10:16 AM
I am agree with XtAzY.

VBUsers
11-19-2005, 04:01 PM
what i really want is that this hack works for v3.5 XD.... if u have time... plz port it to 3.5 =]


yes can you please port this to 3.5.1

VBUsers
01-06-2006, 08:06 AM
yes can you please port this to 3.5.1

can this please get ported over?

ombossman
01-30-2006, 08:46 AM
how to remove my admin panel this section i use 3.5.3 version but not removed this hack

https://vborg.vbsupport.ru/attachment.php?attachmentid=25190 i have it my admin panel

lasto
05-19-2006, 11:44 AM
DO NOT TRY THIS ON VB 3.5.4

The installer wont even run - and the hack dont work

EatMe
05-29-2006, 08:10 PM
when is this gonna be ported to 3.54? seems a waste if you cant upgrade it :(

ombossman
01-12-2007, 09:19 PM
how to uninstall this hack my forum versıon latest now this hack old

Download Credit System mode

Fraxter
07-21-2007, 08:08 AM
Where i can find this hack to download? I don?t see a link in the thread... :(