Was a quick thing, we did for some spanish users,
I should have included the lang Vars in lang files, instedt of putting them straight in the Mod.
anyway. as far as i know, it´s working perfectly.
Edit
I just noticed, that from the midle part of the file, where the spanish text starts, there's some extra edits, you don´t realy need, if you don´t wan´t some users to be able to see some hidden (hide-mod) posts, aftyer having received or given xx thank´s or post´s done
This part is not necesary, if you don´t wanna use that option
###########################################################################
#--------------------------------------------------------------------------------------------------------------------
#
Si quereis, que ese mod trabaje con el hide,
o sea, que si uno da las gracias en el post se desbloque el hide.
#
#-----[ ABRIR / OPEN ]------------------------------------------
#
includes/bbcode.php
#
#-----[ BUSCAR / FIND ]------------------------------------------
#
// HIDE
if($tag === 'hide')
{
if($this->is_sig && !$board_config['allow_all_bbcode'])
{
return $error;
}
if($item['iteration'] > 1)
{
return $error;
}
global $db, $topic_id, $mode;
$show = false;
if(defined('IS_ICYPHOENIX') && $userdata['session_logged_in'])
{
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = $db->sql_numrows($resultat) ? true : false;
$db->sql_freeresult($result);
$sql = "SELECT *
FROM " . THANKS_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = ($db->sql_numrows($resultat) || ($show == true))? true : false;
$db->sql_freeresult($result);
if (($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
#
#-----[ REEMPLAZAR POR]------------------------------------------
#
// HIDE
if($tag === 'hide')
{
if($this->is_sig && !$board_config['allow_all_bbcode'])
{
return $error;
}
if($item['iteration'] > 1)
{
return $error;
}
global $db, $topic_id, $mode;
$show = false;
if(defined('IS_ICYPHOENIX') && $userdata['session_logged_in'])
{
$sql = "SELECT p.poster_id, p.topic_id
FROM " . POSTS_TABLE . " p
WHERE p.topic_id = $topic_id
AND p.poster_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = $db->sql_numrows($resultat) ? true : false;
$db->sql_freeresult($result);
$sql = "SELECT *
FROM " . THANKS_2_TABLE . "
WHERE topic_id = $topic_id
AND user_id = " . $userdata['user_id'];
$resultat = $db->sql_query($sql);
$show = ($db->sql_numrows($resultat) || ($show == true))? true : false;
$db->sql_freeresult($result);
if (($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD))
{
$show = true;
}
}
#
-------------------------------------------------------------------------
#
recommiendo, desactivar el thanks mod en el ACP, para no tener 2 thanks mods funcionando.
Edit.
If you use Prosilver or Prosilver based templates, you´ll need some tweaking with the Thank´s botton image code.
since they use sprites, and will show both status off the botton at the same time, without the tweak