News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Points Mod

Started by Chaos Dragon, April 15, 2009, 01:47:26 AM

Previous topic - Next topic

[Core]


cavalcanti

Thank you so much for this great mod, but I have a problem, just install it and goes perfect with the only drawback that all my 1000 users will leave the default, how could leave him to start with points from 0 and increasing as they were involved? This is my configuration:



And this is shown by default:






SA™

you want to reset pints to zero? for all members?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

akbora

You can add a feature that, a topic starter gets points other messages? This will be wonderful.
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

cavalcanti

Quote from: sleepy-arcade.ath.cx on July 17, 2009, 02:53:26 PM
you want to reset pints to zero? for all members?

Exactly, by default I get 1000 points and I would like to start from 0  ;)

SA™

upload the attached files to your forum root and run it in your brouser


@akbora ill try to add more fetures soon i have a lot to do at mo
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

cavalcanti

#26
Now it's perfect thank you so much, this mod is excellent :D

akbora

#27
Can you make top 10 who much have points?


In fact we can set it starting points insted of 1000 poimts
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

SA™

ill add smoe stats and members pints editing in next one
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Apllicmz

Good Mod

when Update dont forget portugues and brazilian

<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
<operation>
    <search position="end" />
<add><![CDATA[
// for Settings in Admin translate By Candidosa2
$txt['points'] = 'Pontos';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['pointsRegAmount'] = 'Pontos Mediante ao Registo: ';
$txt['pointsprefix'] = 'Prefixo actual';
$txt['pointssurfix'] = 'Surfixo actual';
$txt['pointsPointTopic'] = 'Pontos por cada  Novo T&oacute;pico';
$txt['pointsPointPost'] = 'Pontos por cada novo poste';
$txt['pointsPointWord'] = 'Pontos por palavra no poste';
$txt['pointsPointChar'] = 'Pontos por cada car&aacute;ter no poste';
$txt['pointsPointLimit'] = 'Limite pontos recebidos por cada poste';
$txt['points_submit'] = 'Gravar';

// for Admin tablinks
$txt['pointssettings'] = 'Defini&ccedil;&otilde;es';
$txt['pointsMod'] = 'Os pontos do Mod';
$txt['pointsModDes'] = 'Esta p&aacute;gina permite que voc&ecirc; editar as configura&ccedil;&otilde;es dos pontos do mod';

$txt['member_points'] = 'pontos';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
    <search position="end" />
<add><![CDATA[
// for Settings in Admin translate By Candidosa2
$txt['points'] = 'Pontos';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['pointsRegAmount'] = 'Pontos Mediante ao Registo: ';
$txt['pointsprefix'] = 'Prefixo actual';
$txt['pointssurfix'] = 'Surfixo actual';
$txt['pointsPointTopic'] = 'Pontos por cada  Novo T&oacute;pico';
$txt['pointsPointPost'] = 'Pontos por cada novo poste';
$txt['pointsPointWord'] = 'Pontos por palavra no poste';
$txt['pointsPointChar'] = 'Pontos por cada car&aacute;ter no poste';
$txt['pointsPointLimit'] = 'Limite pontos recebidos por cada poste';
$txt['points_submit'] = 'Gravar';

// for Admin tablinks
$txt['pointssettings'] = 'Defini&ccedil;&otilde;es';
$txt['pointsMod'] = 'Os pontos do Mod';
$txt['pointsModDes'] = 'Esta p&aacute;gina permite que voc&ecirc; editar as configura&ccedil;&otilde;es dos pontos do mod';

$txt['member_points'] = 'pontos';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
<operation>
    <search position="end" />
<add><![CDATA[
// for Settings in Admin translate By Candidosa2
$txt['points'] = 'Pontos';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['pointsRegAmount'] = 'Pontos Mediante ao Registo: ';
$txt['pointsprefix'] = 'Prefixo actual';
$txt['pointssurfix'] = 'Surfixo actual';
$txt['pointsPointTopic'] = 'Pontos por cada  Novo T&oacute;pico';
$txt['pointsPointPost'] = 'Pontos por cada novo poste';
$txt['pointsPointWord'] = 'Pontos por palavra no poste';
$txt['pointsPointChar'] = 'Pontos por cada car&aacute;ter no poste';
$txt['pointsPointLimit'] = 'Limite pontos recebidos por cada poste';
$txt['points_submit'] = 'Gravar';

// for Admin tablinks
$txt['pointssettings'] = 'Defini&ccedil;&otilde;es';
$txt['pointsMod'] = 'Os pontos do Mod';
$txt['pointsModDes'] = 'Esta p&aacute;gina permite que voc&ecirc; editar as configura&ccedil;&otilde;es dos pontos do mod';

$txt['member_points'] = 'pontos';
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
<operation>
    <search position="end" />
<add><![CDATA[
// for Settings in Admin translate By Candidosa2
$txt['points'] = 'Pontos';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['points_settings'] = 'Configura&ccedil;&otilde;es Gerais';
$txt['pointsRegAmount'] = 'Pontos Mediante ao Registo: ';
$txt['pointsprefix'] = 'Prefixo actual';
$txt['pointssurfix'] = 'Surfixo actual';
$txt['pointsPointTopic'] = 'Pontos por cada  Novo T&oacute;pico';
$txt['pointsPointPost'] = 'Pontos por cada novo poste';
$txt['pointsPointWord'] = 'Pontos por palavra no poste';
$txt['pointsPointChar'] = 'Pontos por cada car&aacute;ter no poste';
$txt['pointsPointLimit'] = 'Limite pontos recebidos por cada poste';
$txt['points_submit'] = 'Gravar';

// for Admin tablinks
$txt['pointssettings'] = 'Defini&ccedil;&otilde;es';
$txt['pointsMod'] = 'Os pontos do Mod';
$txt['pointsModDes'] = 'Esta p&aacute;gina permite que voc&ecirc; editar as configura&ccedil;&otilde;es dos pontos do mod';

$txt['member_points'] = 'pontos';
]]></add>
</operation>
</file>



SA™

thx for the translation joomlams
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Creatief

Hello,

I use this points system for my forum. Works perfect BUT where can i find the point log ?

Cos i want to move to another forum. But if i dont have a points backup they start with 1000 points. Little unfair i think.

Hope u can help me ?

Ray

cieplutki

polish translation on code please add to next relace

Modifications.polish.php
// for Settings in Admin
$txt['points'] = 'Punkty';
$txt['points_settings'] = 'Ustawienia';
$txt['points_settings'] = 'Ustawienia';
$txt['pointsRegAmount'] = 'Punkty za rejestracje: ';
$txt['pointsprefix'] = 'Prefix Waluty';
$txt['pointssurfix'] = 'Surfix Waluty';
$txt['pointsPointTopic'] = 'Punkty za nowy w±tek';
$txt['pointsPointPost'] = 'Punkty za now± wiadomo¶ć';
$txt['pointsPointWord'] = 'Punkty za liczbę słów w wiadomo¶ci';
$txt['pointsPointChar'] = 'Punkty za charakter wiadomo¶ci';
$txt['pointsPointLimit'] = 'Limit punktów przeznaczonych na wiadomo¶ć';
$txt['points_submit'] = 'Zapisz';

// for Admin tablinks
$txt['pointssettings'] = 'Ustawienia';
$txt['pointsMod'] = 'The points Mod';
$txt['pointsModDes'] = 'Tutaj możesz zmieniać ustawienia dla points mod';

$txt['member_points'] = 'Punkty';


Modifications.polish-utf8.php
// for Settings in Admin
$txt['points'] = 'Punkty';
$txt['points_settings'] = 'Ustawienia';
$txt['points_settings'] = 'Ustawienia';
$txt['pointsRegAmount'] = 'Punkty za rejestracje: ';
$txt['pointsprefix'] = 'Prefix Waluty';
$txt['pointssurfix'] = 'Surfix Waluty';
$txt['pointsPointTopic'] = 'Punkty za nowy wątek';
$txt['pointsPointPost'] = 'Punkty za nową wiadomość';
$txt['pointsPointWord'] = 'Punkty za liczbę słów w wiadomości';
$txt['pointsPointChar'] = 'Punkty za charakter wiadomości';
$txt['pointsPointLimit'] = 'Limit punktów przeznaczonych na wiadomość';
$txt['points_submit'] = 'Zapisz';

// for Admin tablinks
$txt['pointssettings'] = 'Ustawienia';
$txt['pointsMod'] = 'The points Mod';
$txt['pointsModDes'] = 'Tutaj możesz zmieniać ustawienia dla points mod';

$txt['member_points'] = 'Punkty';


nice mod  ;)




.

SA™

thank you sir i try to update this soon ;)
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

chrishicks

This mod would be great for 1.1.10

Creatief

Quote from: Creatief on August 15, 2009, 05:47:49 AM
Hello,

I use this points system for my forum. Works perfect BUT where can i find the point log ?

Cos i want to move to another forum. But if i dont have a points backup they start with 1000 points. Little unfair i think.

Hope u can help me ?

Ray



No one ?

Ray

shakaran

Hi, I made the spanish, spanish-utf8, spanish_es, spanish_es-utf8 translations! I attached the file.

install.xml

<?xml version="1.0"?>

<!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification">

<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

ATTENTION: If you are trying to install this manually, you should try

the package manager.  If it will not work for you, please take a look

at the following for information on this format:

http://mods.simplemachines.org/docs/manual-install.php

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->



<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">

    <id>wdm2005:SMF_Points</id>

    <version>0.2</version>



<file name="$sourcedir/Admin.php">

<operation>

            <search position="before"><![CDATA['moderation' => array($txt['moderation_settings_short'], 'enabled' => substr($modSettings['warning_settings'], 0, 1) == 1),

),

),]]></search>

            <add><![CDATA[

//Begin points Mod

'points' => array(

'label' => $txt['points'],

'file' => 'pointsAdmin.php',

'function' => 'pointsAdmin',

// 'icon' => 'modifications.gif',

'subsections' => array(

'settings' => array('Settings'),

),

),

//End points Mod

]]>

</add>

        </operation>

    </file>



<file name="$sourcedir/Load.php">

<operation>

<search position="before"><![CDATA[mem.member_ip2, mem.icq,]]></search>

<add><![CDATA[ mem.points,]]></add>

</operation>



<operation>

<search position="before"><![CDATA[mem.birthdate, mem.icq,]]></search>

<add><![CDATA[ mem.points,]]></add>

</operation>



<operation>

<search position="before"><![CDATA['is_buddy' => $profile['buddy'],]]></search>

<add><![CDATA[

'points' => $profile['points'],]]></add>

</operation>



<operation>

<search position="before"><![CDATA['name' => isset($user_settings['real_name']) ? $user_settings['real_name'] : '',]]></search>

<add><![CDATA[

'points' => isset($user_settings['points']) ? $user_settings['points'] : '',

]]></add>

</operation>



<operation>

<search position="before"><![CDATA['name' => $profile['real_name'],]]></search>

<add><![CDATA[

'points' => isset($user_info['points']) ? $user_info['points'] : '',

]]></add>

</operation>

</file>



<file name="$themedir/Display.template.php">

<operation>

<search position="before"><![CDATA[if (!isset($context['disabled_fields']['posts']))

echo '

<li>', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';]]></search>

<add><![CDATA[

// Begin points Mod

echo '

<li>', $txt['member_points'], ':<br />', $modSettings['pointsprefix'], $message['member']['points'], $modSettings['pointssurfix'], '</li>';

// End points Mod ]]></add>

</operation>

</file>



<file name="$sourcedir/Subs-Members.php">

<operation>

<search position="before"><![CDATA['id_post_group' => 4,]]></search>

<add><![CDATA[// Begin points Code

'points' => $modSettings['pointsRegAmount'],

// End points Code]]></add>

</operation>

</file>



<file name="$sourcedir/Subs-Post.php">

        <operation>

            <search position="before"><![CDATA[$msgOptions['id'] = $smcFunc['db_insert_id']('{db_prefix}messages', 'id_msg');



]]></search>

            <add><![CDATA[

if ($new_topic)

$point = $modSettings['pointsPointTopic'];

else

$point = $modSettings['pointsPointPost'];



// Bonus

// no, BBCCode won't count

$plaintext = preg_replace('[\[(.*?)\]]', ' ', $_POST['message']);

// convert newlines to spaces

$plaintext = str_replace(array('<br />', "\r", "\n"), ' ', $plaintext);

// convert multiple spaces into one

$plaintext = preg_replace('/\s+/', ' ', $plaintext);



// bonus for each word

$point += ($modSettings['pointsPointWord'] * str_word_count($plaintext));

// and for each letter

$point += ($modSettings['pointsPointChar'] * strlen($plaintext));



// Limit?

if (isset($modSettings['pointspointLimit']) && $modSettings['pointsPointLimit'] != 0 && $point > $modSettings['pointsPointLimit'])

$point = $modSettings['pointsPointLimit'];



// and finally, give points

$result = $smcFunc['db_query']('',"

UPDATE {db_prefix}members

SET points = points + {int:point}

WHERE id_member = {int:id_member}

LIMIT 1",

array(

'point' => $point,

'id_member' => $posterOptions['id']

)

);

// }

// End points Code





]]></add>

        </operation>

</file>

<file name="$languagedir/Modifications.english.php">

<operation>

<search position="end" />



<add><![CDATA[



// for Settings in Admin

$txt['points'] = 'points';

$txt['points_settings'] = 'General Settings';

$txt['points_settings'] = 'General Settings';

$txt['pointsRegAmount'] = 'Points Upon Registration: ';

$txt['pointsprefix'] = 'Currency Prefix';

$txt['pointssurfix'] = 'Currency Surfix';

$txt['pointsPointTopic'] = 'Points Per New Topic';

$txt['pointsPointPost'] = 'Points Per New Post';

$txt['pointsPointWord'] = 'Points Per Word in post';

$txt['pointsPointChar'] = 'Points Per Character in post';

$txt['pointsPointLimit'] = 'Points Limit received for post';

$txt['points_submit'] = 'Save';



// for Admin tablinks

$txt['pointssettings'] = 'Settings';

$txt['pointsMod'] = 'The points Mod';

$txt['pointsModDes'] = 'This page allows you to edit settings of the points mod';



$txt['member_points'] = 'points';

]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.english-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

// for Settings in Admin

$txt['points'] = 'points';

$txt['points_settings'] = 'General Settings';

$txt['points_settings'] = 'General Settings';

$txt['pointsRegAmount'] = 'Points Upon Registration: ';

$txt['pointsprefix'] = 'Currency Prefix';

$txt['pointssurfix'] = 'Currency Surfix';

$txt['pointsPointTopic'] = 'Points Per New Topic';

$txt['pointsPointPost'] = 'Points Per New Post';

$txt['pointsPointWord'] = 'Points Per Word in post';

$txt['pointsPointChar'] = 'Points Per Character in post';

$txt['pointsPointLimit'] = 'Points Limit received for post';

$txt['points_submit'] = 'Save';



// for Admin tablinks

$txt['pointssettings'] = 'Settings';

$txt['pointsMod'] = 'The points Mod';

$txt['pointsModDes'] = 'This page allows you to edit settings of the points mod';



$txt['member_points'] = 'points';

]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

// for Settings in Admin

$txt['points'] = 'puntos';

$txt['points_settings'] = 'Configuraciones generales';

$txt['points_settings'] = 'Configuraciones generales';

$txt['pointsRegAmount'] = 'Puntos desde el registro: ';

$txt['pointsprefix'] = 'Prefijo de divisa';

$txt['pointssurfix'] = 'Sufijo de divisa';

$txt['pointsPointTopic'] = 'Puntos por nuevo tema';

$txt['pointsPointPost'] = 'Puntos por nuevo post';

$txt['pointsPointWord'] = 'Puntos para palabra en post';

$txt['pointsPointChar'] = 'Puntos por carácter en post';

$txt['pointsPointLimit'] = 'Puntos límite recibidos por post';

$txt['points_submit'] = 'Guardar';



// for Admin tablinks

$txt['pointssettings'] = 'Configuraciones';

$txt['pointsMod'] = 'Los puntos Mod';

$txt['pointsModDes'] = 'Esta página te permite edita las configuraciones del mod de puntuación';



$txt['member_points'] = 'puntos';

]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

// for Settings in Admin

$txt['points'] = 'puntos';

$txt['points_settings'] = 'Configuraciones generales';

$txt['points_settings'] = 'Configuraciones generales';

$txt['pointsRegAmount'] = 'Puntos desde el registro: ';

$txt['pointsprefix'] = 'Prefijo de divisa';

$txt['pointssurfix'] = 'Sufijo de divisa';

$txt['pointsPointTopic'] = 'Puntos por nuevo tema';

$txt['pointsPointPost'] = 'Puntos por nuevo post';

$txt['pointsPointWord'] = 'Puntos para palabra en post';

$txt['pointsPointChar'] = 'Puntos por car&aacute;cter en post';

$txt['pointsPointLimit'] = 'Puntos l&iacute;mite recibidos por post';

$txt['points_submit'] = 'Guardar';



// for Admin tablinks

$txt['pointssettings'] = 'Configuraciones';

$txt['pointsMod'] = 'Los puntos Mod';

$txt['pointsModDes'] = 'Esta p&aacute;gina te permite edita las configuraciones del mod de puntuaci&oacute;n';



$txt['member_points'] = 'puntos';

]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish_es.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

// for Settings in Admin

$txt['points'] = 'puntos';

$txt['points_settings'] = 'Configuraciones generales';

$txt['points_settings'] = 'Configuraciones generales';

$txt['pointsRegAmount'] = 'Puntos desde el registro: ';

$txt['pointsprefix'] = 'Prefijo de divisa';

$txt['pointssurfix'] = 'Sufijo de divisa';

$txt['pointsPointTopic'] = 'Puntos por nuevo tema';

$txt['pointsPointPost'] = 'Puntos por nuevo post';

$txt['pointsPointWord'] = 'Puntos para palabra en post';

$txt['pointsPointChar'] = 'Puntos por carácter en post';

$txt['pointsPointLimit'] = 'Puntos límite recibidos por post';

$txt['points_submit'] = 'Guardar';



// for Admin tablinks

$txt['pointssettings'] = 'Configuraciones';

$txt['pointsMod'] = 'Los puntos Mod';

$txt['pointsModDes'] = 'Esta página te permite edita las configuraciones del mod de puntuación';



$txt['member_points'] = 'puntos';

]]></add>

</operation>

</file>

<file name="$languagedir/Modifications.spanish_es-utf8.php" error="skip">

<operation>

<search position="end" />

<add><![CDATA[

// for Settings in Admin

$txt['points'] = 'puntos';

$txt['points_settings'] = 'Configuraciones generales';

$txt['points_settings'] = 'Configuraciones generales';

$txt['pointsRegAmount'] = 'Puntos desde el registro: ';

$txt['pointsprefix'] = 'Prefijo de divisa';

$txt['pointssurfix'] = 'Sufijo de divisa';

$txt['pointsPointTopic'] = 'Puntos por nuevo tema';

$txt['pointsPointPost'] = 'Puntos por nuevo post';

$txt['pointsPointWord'] = 'Puntos para palabra en post';

$txt['pointsPointChar'] = 'Puntos por car&aacute;cter en post';

$txt['pointsPointLimit'] = 'Puntos l&iacute;mite recibidos por post';

$txt['points_submit'] = 'Guardar';



// for Admin tablinks

$txt['pointssettings'] = 'Configuraciones';

$txt['pointsMod'] = 'Los puntos Mod';

$txt['pointsModDes'] = 'Esta p&aacute;gina te permite edita las configuraciones del mod de puntuaci&oacute;n';



$txt['member_points'] = 'puntos';

]]></add>

</operation>

</file>

</modification>
My blog: http://www.shakaran.net
Quijost: professional & reliable webhosting (with SMF support) http://www.quijost.com
Tivion: a player for streaming TV and Radio channels http://www.shakaran.net/blog/tivion
Spanish RPG game: http://www.apogeus.es & http://www.apogeus.es/ao

SA™

@Creatief
there is no point logs

@shakaran
thx for the translation ill try to update it soon
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Kimmie

When you delete someones thread or post , does it delete the points they were given for it initially?


SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Advertisement: