Author Topic: Credit for attachments?  (Read 7452 times)

Offline cervante

Credit for attachments?
« on: January 21, 2007, 01:04:33 pm »
There is a default setting which allows "x" number of credits for a topic, and "x" number of credits for a post, but is there anyway to add "x" number of credits if the user adds an attachment to a post?
The site I run is a post based site, and some users feel that a post with an attachment should earn them more credit than someone who repies to a post.
If they could earn credits for adding attachments to their posts, then they could "buy" their way into a higher rank; rather than just getting the same credit as thost who do not add attachments (by post count).
Just tried the mod out, installation went well, and wasn't sure of the concept until it was installed.

Seems to be just what some members have been begging for  :)

Thanks for a great mod!

Offline scrappy

Re: Credit for attachments?
« Reply #1 on: February 01, 2007, 10:16:01 am »
I would be interested in this too!

Offline cervante

Re: Credit for attachments?
« Reply #2 on: March 10, 2007, 08:36:28 am »
What would be required to earn credit for attachments?
Is no one else interested in this feature?

Offline feeble

Re: Credit for attachments?
« Reply #3 on: March 10, 2007, 07:58:12 pm »
for sure its actually pretty easy.

but please note that this is pretty limited, i dont belive it you add attachments after you create the post, the user will not receive any credits for it.

open Sources/Post.php
search for
Code: [Select]
// If so, set the number of points to the limit
$points = $modSettings['shopPointsLimit'];

// Give the user their points

replace with
Code: [Select]
// If so, set the number of points to the limit
$points = $modSettings['shopPointsLimit'];

//Check if Attachments added
if(!empty($attachIDs))
$points += (count($attachIDs)*30);

// Give the user their points

replace 30 with the amount you want per attachment

Offline preddy25

Re: Credit for attachments?
« Reply #4 on: May 08, 2007, 10:58:53 pm »
how can i restrict this to only a certain board , for example a photo-category .. attachment bonuses...

Offline feeble

Re: Credit for attachments?
« Reply #5 on: May 09, 2007, 08:09:09 am »
Quote
how can i restrict this to only a certain board , for example a photo-category .. attachment bonuses...

open Sources/Post.php
search for
Code: [Select]
// If so, set the number of points to the limit
$points = $modSettings['shopPointsLimit'];

// Give the user their points

replace with
Code: [Select]
// If so, set the number of points to the limit
$points = $modSettings['shopPointsLimit'];

//Check if Attachments added
if(!empty($attachIDs) &&  in_array($board, array(1,3,4)))
$points += (count($attachIDs)*30);

// Give the user their points

replace 30 with the amount you want per attachment

Offline gmvasco

Re: Credit for attachments?
« Reply #6 on: May 14, 2007, 07:19:57 am »
I would also like to see this implemented on my forum.

Offline feeble

Re: Credit for attachments?
« Reply #7 on: May 14, 2007, 11:01:40 am »
I would also like to see this implemented on my forum.

implement what? other then the 4th post in this thread