Rewards System by Smfsimple LITE

Started by vbgamer45, January 03, 2013, 05:45:32 AM

Previous topic - Next topic

4Kstore

New mini-mod!

QuoteLink



SSRS Shop Fusion
Developed by 4kstore forSMFSimple.com
SMF 2.0.XX




Description:
Using this mini-mod forSMFSIMPLE REWARD SYSTEM FULL, you can integrate SMFShop - Shop MOD along with SSRS, this means that the points you earn in the points system you can spend on buying shop items, you can use the bank and all the features it has that great mod




Warning:If you had the shop installed all you have to do is install the Smfsimple reward system full and after that install SSRS Shop fusion, remember do backup first.

Settings
1º Install SMFSIMPLE REWARD SYSTEM FULL!
2º Install SMFShop - Shop MOD
3º Set points SMFSIMPLE REWARD SYSTEM mod and leave the shop in 0's (points to create post, responses, etc.)
4º Enjoy it!

¡¡NEW MOD: Sparkles User Names!!!

SSimple Team

Quote
Using this mini-mod for SMFSIMPLE REWARD SYSTEM, you can integrate the Referral System mod with the SSRS. So you can set how many points a user earns invite another user to register and this does.




Developed by 4kstore for SMFSimple.com
SMF 2.0.XX

WARNING:If you had the referral installed all you have to do is install the SSRS SSRS Referral and after the fusion, remember to backup previously.

SETTINGS
1º Install SMFSIMPLE REWARD SYSTEM!
2º InstallReferral System
3º 3º Set points SMFSIMPLE REWARD SYSTEM from administration mod :)
4º Enjoy It



Languages
English





Mi Web: SMFSimple.com -

JuleZz

Hi everyone

Any user can acumulate points by creating and then right after deleting that same topic or post!

Don't know if it's just me, but when I delete something the points don't go down!

Sorry for my bad english!

Kind regards

4Kstore

Your instalattion works normally... When I write this mod I decide to no remove the points that users just won with theirs topics...

¡¡NEW MOD: Sparkles User Names!!!

JuleZz

Oh I see.

Is there anything I can do to change it?

4Kstore

Quote from: JuleZz on June 27, 2013, 11:29:35 PM
Oh I see.

Is there anything I can do to change it?

Yes, try this.

Edit Sources/RemoveTopic.php file

Search:
// Delete anything related to the topic.

Add Before:


//Start SSRS
$MembersToDecreasePoints = $smcFunc['db_query']('', '
SELECT m.id_member, SUM(t.ssrs_points) as ssrs_points
FROM {db_prefix}messages AS m
INNER JOIN {db_prefix}topics AS t ON (t.id_topic = m.id_topic)
WHERE t.id_topic IN ({array_int:topics})
AND t.approved = {int:is_approved}
AND m.icon != {string:recycled}
GROUP BY m.id_member',
array(
'recycled' => 'recycled',
'topics' => $topics,
'is_approved' => 1,
)
);

if ($smcFunc['db_num_rows']($MembersToDecreasePoints) > 0)
{
while ($UnLuckyMembers = $smcFunc['db_fetch_assoc']($MembersToDecreasePoints))
{
require_once ($sourcedir . '/SsrsPoints.php');
ssrsAddPointGeneric(-abs($UnLuckyMembers['ssrs_points']), $UnLuckyMembers['id_member']);
}
}
$smcFunc['db_free_result']($MembersToDecreasePoints);
//END SSRS



This only remove the point if the topic is approved and is NOT in a recycled board
Also works in a multi-delete way... so if you delete more than one topic at time this also work fine.
take a look and tell me if everything is ok.

Cheers

¡¡NEW MOD: Sparkles User Names!!!

JuleZz

4Kstore I did as you said but didn't notice any difference.

And I don't have a recycled board..

TheListener

Quote from: JuleZz on June 29, 2013, 12:35:33 PM
4Kstore I did as you said but didn't notice any difference.

And I don't have a recycled board..

ALL forums should have a recycled board.

Whereelse would your old topics etc be removed to?

4Kstore

Can you attach that file, I try in localhost and works fine

¡¡NEW MOD: Sparkles User Names!!!

JuleZz

Quote from: Old Fossil on June 29, 2013, 12:42:44 PM
Quote from: JuleZz on June 29, 2013, 12:35:33 PM
4Kstore I did as you said but didn't notice any difference.

And I don't have a recycled board..

ALL forums should have a recycled board.

Whereelse would your old topics etc be removed to?

I was testing this mod on a test forum where there was no recycle bin. But I have it set now and the samething happens.


4Kstore here is the file.

4Kstore

Sorry, I just realize I'm using a function that is only available in the pro version.
Sorry I do not know if I can help.

¡¡NEW MOD: Sparkles User Names!!!

JuleZz

Quote from: 4Kstore on June 29, 2013, 06:34:14 PM
Sorry, I just realize I'm using a function that is only available in the pro version.
Sorry I do not know if I can help.

That's alright. Thank you anyway.

I will try to find another way.

Cmely

#32
Hello, this seems to be a great mod !
I have some questions about it :

- My first one is about quantity of points that you can affect  : is it an integer value (1, 2, 5, 10, ...) or can you choose to give some decimal values (0.10, 0.25, 1.50, ...) ?
- Is it possible to specify a points cost for posting ? For instance a member would need to spend 2 points to post in a specific board ?

meemzo

#33
I purchased the full version and can't get any help.  PM system is not working either.  Can't navigate site even with google translate to ask for help.

Advertisement: