Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53 »  Show posts from    to     

Icy Phoenix


Old Customizations - Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53



Aerosmith [ Fri 25 Dec, 2009 16:05 ]
Post subject: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
Hola amigos.

Hello friends.

Feliz Navidad.

Merry Christmas.

Me gustaría adaptar este Mod a Icy 1.3.0.53, pero no doy con la solución.

I would like to adapt this mod to Icy 1.3.0.53, but I did not the solution.

El autor de este Mod es Esnola, y esta su pagina Web www.todo-mods.com.

The author of this Mod is Esnola, and that its website www.todo-mods.com.

Aquí el enlace del tema. http://www.todo-mods.com/gracias-mod-vt1917.html

Here the link of the item. http://www.todo-mods.com/gracias-mod-vt1917.html

Lo instale y me dio este error.

I installed it and gave me this error.

Code: [Hide] [Select]
Not Found

The requested URL /portal/viewtopic. was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.25 PHP/5.2.11 Server at acuaristasdevenezuela.com.ve Port 80


Busque en el archivo de instalación, y cambie "viewtopic." por "viewtopic.php", el error desapareció.

Check the installation file, and change "viewtopic." for "viewtopic.php", the error disappeared.

Pero apareció este otro error.

But it appeared that other error.

Code: [Hide] [Select]
Fatal error: Call to undefined function create_date_news() in /home/acuarist/public_html/portal/viewtopic.php on line 1955


Aquí si no se como solucionar el problema, me parece entender que esta función create_date_news() no esta definida en la base de datos.

Here if you do not solve the problem as I seem to understand that this function create_date_news () not defined in the database.

Lo cierto, es que me gustaría adaptar esta función al Icy 1.3.0.53, espero que alguien me pueda ayudar.

The truth is that I would adapt this function to the Icy 1.3.0.53, hope someone can help me.

Aquí les dejo el código o archivo de instalación.

Here I leave the code or installation file.

Aquí una imagen de como se ve el botón gracias.

Here an image as seen through the button.

gracias

Quiero aclarar, que ademas de las gracias por Topic que viene en el Icy Phoenix, con esta modificación se podrá dar las gracias por post. Conservando el botón original de gracias.

I want to clarify that in addition to thank you for coming in Topic Icy Phoenix, this amendment may give thanks for post. Retaining the original button thanks.

Gracias por la ayuda que me puedan prestar.

Thanks for any help you can provide.

PD.Excuse my English.

Code: [Hide] [Select]
########################################################
## Author: esnola (webmaster@todo-mods.com)
## Author Web: http://www.todo-mods.com
##
## Descripción en español:
Añade un botón para dar gracias al posteador del post al estilo de VBulletin.
Y muestra los resultados en cada post que haya sido agradecido.
##
##
## Installation Level: Easy (Fácil)
## Installation Time: 2 Minutes
## Ficheros a Editar:(2) viewtopic.php,
## templates/mg_themes/viewtopic_body.tpl
## * Deberás editar este archivo en todos los estilos o plantillas que tengas.
#########################################################
## Antes realizar cualquier modificación en los ficheros de tu foro realiza una copia de seguridad de los mismos.
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#########################################################

#
#-----[ SQL ]------------------------------------------
#

CREATE TABLE IF NOT EXISTS `ip_thanks_2` (
`topic_id` mediumint(8) NOT NULL,
`user_id` mediumint(8) NOT NULL,
`user_poster` mediumint(8) NOT NULL,
`post_id` mediumint(8) NOT NULL,
`thanks_time` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

#
#-----[ ABRIR / OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ BUSCAR / FIND ]------------------------------------------
#

// End add - Birthday MOD

#
#-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------
#

$activar_gracias = 1; // Poner en 1 para activar, Poner en 0 para desactivar.
if ($activar_gracias == 1)
{
$nom_gracias = "";
$boton_gra = ($userdata['user_id'] != ANONYMOUS) ? TRUE : FALSE;
$forma_tiem = "d F";

$sql = mysql_query("SELECT thanks_time
FROM ip_thanks_2
WHERE user_id =". $userdata['user_id']."
AND post_id =".$post_id) ;
$ya_votado = mysql_num_rows($sql);

if($ya_votado) $boton_gra = false ;
if($_REQUEST['mode'] == "thanks_2" && !$ya_votado)
{
$sql = mysql_query("SELECT thanks_time
FROM ip_thanks_2
WHERE user_id =". $userdata['user_id']."
AND post_id =".$_REQUEST['p']) ;
$ya_votado2 = mysql_num_rows($sql);
if(!$ya_votado2 && $userdata['user_id'] != $postrow[$i]['poster_id'] && $userdata['user_id'] != ANONYMOUS)
{
$sql = "INSERT INTO ip_thanks_2 (post_id, topic_id, user_poster, user_id, thanks_time)
VALUES(".$_REQUEST['p'].", ".$_REQUEST['t'].",".$_REQUEST['poster'].",".$userdata['user_id'].", ".time().")";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "No se actualiza la tabla thanks2", '', __LINE__, __FILE__, $sql);
}
}
}
$sql = "SELECT user_id, thanks_time
FROM ip_thanks_2
WHERE post_id =". $postrow[$i]['post_id'];

if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "No se puede obtener datos de gracias", '', __LINE__, __FILE__, $sql);
}
$j=0;
$num_agrad = "";
$cuantos = $db->sql_numrows($result);
while($gracias = $db->sql_fetchrow($result))
{
$j++;
$agradecido = colorize_username($gracias['user_id']);
$nom_gracias .= '<span class="gensmall">' .$agradecido."(".create_date_news($forma_tiem, $gracias['thanks_time'], $board_config['board_timezone']).")</span>";
$nom_gracias .= ($cuantos > 1 && $cuantos > $j) ? ", " : "";
}
$sql = "SELECT user_poster
FROM ip_thanks_2
WHERE user_poster =". $postrow[$i]['poster_id'];

if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "No se puede obtener datos de gracias", '', __LINE__, __FILE__, $sql);
}
if($db->sql_numrows($result))
{

$num_agrad = "<br />Agradecimientos recibidos: ".$db->sql_numrows($result);
}

$lectura_gracias = ($userdata['user_id'] != $postrow[$i]['poster_id'])? "Agradecimientos a " . colorize_username($postrow[$i]['poster_id']) : "Has recibido agradecimientos";
$lectura_gracias .= " por este post de:";
}

#
#-----[ BUSCAR / FIND ]------------------------------------------
#

$template->assign_block_vars('postrow', array(

#
#-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------
#

'U_THANKS_2' => append_sid('viewtopic.'. $phpEx .'?mode=thanks_2&amp;f='.$forum_id .'&amp;t='.$topic_id .'&amp;poster='.$postrow[$i]['poster_id'].'&amp;p='.$post_id.'#p'.$post_id),
'THANKS_IMG_2' => ($boton_gra) ? $images['thanks'] : "",
'THANKS_POSTER' => $lectura_gracias,
'LISTA_GRACIAS' => $nom_gracias,
'NO_BOTON' => ($boton_gra && $userdata['user_id'] != $postrow[$i]['poster_id'] ) ? true : false,
'VECES_AGRAD' => $num_agrad,

#
#-----[ ABRIR / OPEN ]------------------------------------------
#
templates/mg_themes/viewtopic_body.tpl

#
#-----[ BUSCAR / FIND ]------------------------------------------
#
<!-- END switch_poster_info -->

#
#-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------
#

{postrow.VECES_AGRAD}


#
#-----[ BUSCAR / FIND ]------------------------------------------
#
{postrow.ALBUM_IMG}
</div>

#
#-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------
#

<!-- IF postrow.NO_BOTON --><a href="{postrow.U_THANKS_2}"><img src="{postrow.THANKS_IMG_2}" alt="Agradecer contribución" title="Agradecer contribución" width="62" /></a><!-- ENDIF -->

#
#-----[ BUSCAR / FIND ]------------------------------------------
#
<a href="{U_BACK_BOTTOM}"><img src="{IMG_ARD}" alt="{L_BACK_BOTTOM}" title="{L_BACK_BOTTOM}" /></a>
</div>

#
#-----[ AÑADIR DESPUES / AFTER ADD ]------------------------------------------
#

<!-- IF postrow.LISTA_GRACIAS -->
<tr><th colspan="3" align="left">{postrow.THANKS_POSTER}</th></tr>
<tr><td colspan="3" class="row-post" valign="top" align="left"><span class="gensmall">{postrow.thanks.THANKS}&nbsp;</span>
{postrow.LISTA_GRACIAS}
</td></tr>
<tr><td>
</td></tr>
<!-- ENDIF -->


Yros [ Sat 26 Dec, 2009 08:24 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
" Thanks " mod is already implemented in IP oO' Look at the bottom of each topic here and you will see the " Thanks " button between " Post Reply " and " Quick Reply ".


Mighty Gorgon [ Sat 26 Dec, 2009 11:13 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
I think he would like to implement the Thanks System also for single posts.

Technically should not be difficult... it is enough to add a field in the thanks table and then alter the code for allowing thanking both posts and topics.

Maybe you should better alter directly Icy Phoenix code instead of trying to install an external mod.


Aerosmith [ Sat 26 Dec, 2009 16:49 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
Gracias Yros Y Mighty Gorgon por responder.

Si, se que este Mod esta en Icy por defecto.

Pero, yo quiero que ademas del dar las gracias a un Topic, los usuarios den las gracias a un post.

Por este motivo, estoy tratando de adaptar este Mod que funcionaba con Icy phoenix 1.2.0.27.

Podrían darme un mano con esto ?

¿Alguien podrá darme un mano con esto?

Saludos.

__________

Yros And Mighty Gorgon Thanks for responding.

Yes, I know this mod is in default Icy.

But I want to thank addition of a topic, users give thanks to a post.

For this reason, I am trying to adapt this mod that worked with Icy Phoenix 1.2.0.27.

Anybody can give me a hand with this?

Greetings


odelot [ Tue 09 Feb, 2010 12:18 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
Where I active this mod?


spydie [ Tue 09 Feb, 2010 12:30 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
ACP-Configuration-IcyPhoenix-Optimization SQL


Anakin [ Mon 09 May, 2011 12:46 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
Hay algo para dar las gracias por post en lugar al creador del tema???

Por mas que busco no encuentro nada.

Gracias



-----------------------------------------


There are anything in order to bless a post?

I didn't find anyting.

Thanks


spydie [ Tue 10 May, 2011 07:33 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
here you go

http://www.icyphoenix.com/viewtopic.php?f=2&t=7740.

you should use search to find what youre looking for


Anakin [ Wed 11 May, 2011 14:10 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
thanks a lot!!!!


Esnola [ Mon 05 Dec, 2011 22:31 ]
Post subject: Re: Thanks Mod For Icy 1.3.0.53 / Gracias Mod Para Icy 1.3.0.53
Hi, maebe is too late.
Hola quizás es tarde.
Pero si alguien está interesado que me envie un MP.
But if anybody needs can sendme a PM.




Powered by Icy Phoenix