Advertisement:

Author Topic: Contributions in Boards  (Read 51904 times)

Offline DeviDarkL

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
Re: Contributions in Boards
« Reply #60 on: March 14, 2009, 09:15:21 AM »
It worked :D

Great Mod & Thanks a lot M-DVD  ;D

Offline Jessikard

  • Jr. Member
  • **
  • Posts: 236
Re: Contributions in Boards
« Reply #61 on: March 14, 2009, 03:15:25 PM »
if you choose the parent board for x,y,z should it be valid to the child boards or do you have to insert all board by number ?

ok  :)

search: $context['current_board'] == X

replace: in_array($context['current_board'], array(X, Y, Z))

ie

Code: [Select]
// Show Minilist of Contributions
      if (isset($context['contributions'][$message['member']['id']]) && in_array($context['current_board'], array(5, 7, 8)))

Offline DeviDarkL

  • Semi-Newbie
  • *
  • Posts: 68
  • Gender: Male
Re: Contributions in Boards
« Reply #62 on: March 14, 2009, 10:45:19 PM »
I haven't tried that yet but I don't think It's valid since child boards have their own ID's like:

Board (id 1)
------Child Board (id 2)

So, I suppose, you have to insert all boards by number.


Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #63 on: March 23, 2009, 11:53:52 AM »
Portuguese_PT translations ;)

WITHOUT SPECIAL CODING


WITH SPECIAL CODING

Your translations have been uploaded :D

Offline perro88

  • Jr. Member
  • **
  • Posts: 358
    • techcoreforum
Re: Contributions in Boards
« Reply #64 on: March 28, 2009, 04:40:01 PM »
Regards nice mod.
why the posts/replies in a contribution board are shown in the profile?
It should be only topics or then have a option to show both or only one like in the minilist

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #65 on: March 28, 2009, 10:08:46 PM »
Regards nice mod.
why the posts/replies in a contribution board are shown in the profile?
It should be only topics or then have a option to show both or only one like in the minilist

Thanks :)

What version MOD's are you using? A link to see the problem?

Offline perro88

  • Jr. Member
  • **
  • Posts: 358
    • techcoreforum
Re: Contributions in Boards
« Reply #66 on: March 29, 2009, 08:44:55 AM »
Regards nice mod.
why the posts/replies in a contribution board are shown in the profile?
It should be only topics or then have a option to show both or only one like in the minilist

Thanks :)

What version MOD's are you using? A link to see the problem?

well it's the latest version of the mod in a smf 1.1.8.
What I mean is that the post or replies in a topic that belongs to a contribution board appears at the profile option to see the member's contribution.
For example, there's a tutorial board and the admin activate the contribution option in this board. Then a user make a topic with a tutorial in that board. That topic will count to the contributions of this user not only in the minilist but also in the profile as it normally should, but then, if some other guy post a reply to the tutorial(for example a simple "thanks") that post will show up at the profile contributions list and odviously it shouldn't. This only happens in the profile "show contributions" option, in the minilist everything it's fine ;)

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #67 on: March 29, 2009, 04:42:30 PM »
Sorry, I cannot reproduce this error.

Have you installed manually? ::)

Offline perro88

  • Jr. Member
  • **
  • Posts: 358
    • techcoreforum
Re: Contributions in Boards
« Reply #68 on: March 29, 2009, 09:55:30 PM »
oops sorry seems I made a mistake xD. sorry mate the mod is working fine I tested it in a new forum. A bit strange though that is giving that error in my other forum, well I'll give a look at the code when I get some spare time. thanks anyway and sorry for the mistake :P

Edit: Working now... a little conflict with the show topics in profile mod :P. the code that should go to the showPosts function went to the showTopics function that was before the other one and had a similar comment line   >:(   Thanks again for the mod, very useful
« Last Edit: March 30, 2009, 06:23:26 AM by perro88 »

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #69 on: April 03, 2009, 11:47:36 PM »
Ok Perfect :D

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #70 on: April 08, 2009, 03:57:34 PM »
MOD Contributions in Boards v1.3
=======================


New features:
  • The Setting have been moved to Admin > Posts and Topics > Contributions Settings
  • Now you can enable the minilist only in Contributions Boards
  • You can enable show the Count Contributions in display message
  • All languajes to date in the pack

How do I upgrade?
  • Uninstall the previous version
  • Install the new

=======================================

Características Nuevas:
  • La configuración ha sido movida a Administracion > Mensajes y Temas > Configuracion de Aportes
  • Puedes activar que la minilista se muestre solo en los Foros de Aportes
  • Puedes activar el Contador de Aportes en el perfil de mensajes.
  • Todas las traducciones a la fecha, incluidas

¿Como actualizar?
  • Desinstalar la anterior versión
  • Instalar la nueva

Offline minos

  • Full Member
  • ***
  • Posts: 509
  • Gender: Male
  • metalminos.com
    • Metal Minos Foro
Re: Contributions in Boards
« Reply #71 on: April 09, 2009, 01:05:51 PM »
ohh contador de aportes ... gracias

Offline daveaite

  • Semi-Newbie
  • *
  • Posts: 88
    • The BuyPoe Network
Re: Contributions in Boards
« Reply #72 on: April 10, 2009, 11:58:57 PM »
Everything seems fine.

One error in the install: load.php. I did manual updates for this

-I can see the enable button in the boards as well as the admin > posts section

Nothing happens when enabled. :/
The BuyPoe Network!


http://vBSocial.com: Forum Styles for vBulletin and SMF

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #73 on: April 11, 2009, 01:37:03 PM »
ohh contador de aportes ... gracias

Your welcome :)

Everything seems fine.

One error in the install: load.php. I did manual updates for this

-I can see the enable button in the boards as well as the admin > posts section

Nothing happens when enabled. :/

1.- Uninstall and reinstall.

2.- Check if the installation has changed all files. :)

Offline KameL

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
    • JuegosPlay2.com.ar
Re: Contributions in Boards
« Reply #74 on: April 24, 2009, 08:57:14 PM »
[english]
I found a nice way to make the forum show the mini-list only once per page. It's based on the 'Show signature only once' mod. Here are the steps:

Find:
Code: [Select]
// Show Minilist of Contributions
if (isset($context['contributions']['topics'][$message['member']['id']]))
{
echo '
<div class="contributions">
<div style="padding: 4px" class="titlebg2"><b>', $txt['my_contributions'], '</b></div>';
foreach ($context['contributions']['topics'][$message['member']['id']] as $contri)
echo '
<p>', $contri['board'], ' &gt; ', $contri['topic'], '</p>';
echo '
</div>';
}

Replace with:
Code: [Select]
// Show Minilist of Contributions only once per page
        $IDAlreadyDisplayed = 0;
if (!empty($MemberIDList)) {
if (in_array($message['member']['id'], $MemberIDList))
$IDAlreadyDisplayed = 1;
}

// Show Minilist of Contributions
if (isset($context['contributions']['topics'][$message['member']['id']]))
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && !$IDAlreadyDisplayed)
{
echo '
<div class="contributions">
<div style="padding: 4px" class="titlebg2"><b>', $txt['my_contributions'], '</b></div>';
foreach ($context['contributions']['topics'][$message['member']['id']] as $contri)
echo '
<p>', $contri['board'], ' &gt; ', $contri['topic'], '</p>';
echo '
</div>';
}

I hope you like this modification and you add it to a newer version.
Thank you for this mod!
[/english]



[spanish]
Encontré una manera para hacer que el foro muestre la mini-lista solo una vez por página. Está basado en el mod 'Show signature only once'. Aquí dejo los pasos a seguir:

Encontrar:
Code: [Select]
// Show Minilist of Contributions
if (isset($context['contributions']['topics'][$message['member']['id']]))
{
echo '
<div class="contributions">
<div style="padding: 4px" class="titlebg2"><b>', $txt['my_contributions'], '</b></div>';
foreach ($context['contributions']['topics'][$message['member']['id']] as $contri)
echo '
<p>', $contri['board'], ' &gt; ', $contri['topic'], '</p>';
echo '
</div>';
}

Reemplazar por:
Code: [Select]
// Show Minilist of Contributions only once per page
        $IDAlreadyDisplayed = 0;
if (!empty($MemberIDList)) {
if (in_array($message['member']['id'], $MemberIDList))
$IDAlreadyDisplayed = 1;
}

// Show Minilist of Contributions
if (isset($context['contributions']['topics'][$message['member']['id']]))
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && !$IDAlreadyDisplayed)
{
echo '
<div class="contributions">
<div style="padding: 4px" class="titlebg2"><b>', $txt['my_contributions'], '</b></div>';
foreach ($context['contributions']['topics'][$message['member']['id']] as $contri)
echo '
<p>', $contri['board'], ' &gt; ', $contri['topic'], '</p>';
echo '
</div>';
}

Espero que te guste la modificación y que lo agregues a una nueva versión.
¡Gracias por el mod!
[/spanish]



Offline robinrobin

  • Jr. Member
  • **
  • Posts: 297
Re: Contributions in Boards
« Reply #75 on: April 25, 2009, 10:11:36 AM »
Good idea KameL

Offline M-DVD

  • SMF Hero
  • ******
  • Posts: 1,650
  • Gender: Male
  • Step by step will update the mods to SMF 2RC2
Re: Contributions in Boards
« Reply #76 on: April 25, 2009, 12:59:09 PM »
[english]
I found a nice way to make the forum show the mini-list only once per page. It's based on the 'Show signature only once' mod. Here are the steps:

I don't understand (ni en inglés ni en español :P) but I will check more later.

(no entiendo que es exactamente lo que se busca, es decir, ¿que significa en la práctica "Mostrar una sola vez"? ¿mostrar solo a un usuario?)

Thanks :)

Offline KameL

  • Semi-Newbie
  • *
  • Posts: 72
  • Gender: Male
    • JuegosPlay2.com.ar
Re: Contributions in Boards
« Reply #77 on: April 26, 2009, 02:05:23 AM »
[english]
I found a nice way to make the forum show the mini-list only once per page. It's based on the 'Show signature only once' mod. Here are the steps:

I don't understand (ni en inglés ni en español :P) but I will check more later.

(no entiendo que es exactamente lo que se busca, es decir, ¿que significa en la práctica "Mostrar una sola vez"? ¿mostrar solo a un usuario?)

Thanks :)
Sorry for this post writed on spanish.



Cuando se instala el mod y se aplica la función de mostrar la minilista sobre la firma de la persona que realizó el tópico, esta minilista se muestra absolutamente en todos los post de este usuario dentro del mismo tópico. Te doy un ejemplo:

-El usuario 'A' crea el tópico -> Se muestra la minilista en ese mensaje
-El usuario 'B' responde al tópico
-El usuario 'A' le responde al 'B' -> Se vuelve a mostrar la minilista
-El usuario 'C' responde al tópico
-El usuario 'A' le responde al 'C' -> una vez mas, aparece la minilista

El tema en cuestión es que puede resultar un tanto pesado ver tantas veces dicha lista, por lo que se me ocurrió implementar la función que agrega el mod "Show signatures only once" (no recuerdo quien es el creador) en tu mod. A mi me gusta el resultado, y quise compartirlo con los demás... espero no te moleste, y si te interesa, podrías incluirlo en la próxima versión del mod (obviamente dando créditos al creador del mod nombrado anteriormente y a mi por la idea y la implementación :P )
Espero se haya entendido.
Saludos ;)



Offline ɔɔɔɔɔɔuɥoɾ

  • SMF Hero
  • ******
  • Posts: 2,742
  • Gender: Male
  • Community Support Helper SMF forums ftw!
Re: Contributions in Boards
« Reply #78 on: April 26, 2009, 12:15:55 PM »
nice mod, thanks, working perfect for me on smf 2.0 RC1 :)

SMF 2.0 RC5

   
Webhost to New Webhost file transfer service, PM me - Fast transfers

Offline trailmyx

  • Semi-Newbie
  • *
  • Posts: 15
Re: Contributions in Boards
« Reply #79 on: April 26, 2009, 03:48:01 PM »
I love this modification!

I was wondering if you have considered having a summary list for the contributions instead of the full list?  What I'm thinking is the format of the last contributions (basically the one line title with link for each), but have it summarize everything that appears in the "Show Contributions".

What I'm looking toward is having a "My Contributions" link right under the avatar area of a poster.  I think that would be a pretty nice addition to your system.

In any event, great modification!