AYUDA cambiar imagen.gif
ola amigos de MyBb-es me gustaría saber como cambiar la imagen del plugin de thk.php o mejor conocida como sistema de agradecimiento lo que pasa es que en mi theme pone la imagen ![[Image: postbit_thx.gif]](http://insanospmx.com.ar/images/rededition/postbit_thx.gif)
y no combina ni se ve bien me gustaria cambiar esa imagen por un boton para que se adapte solo a mi theme aqui les dejo el codigo php espero me puedan ayudar
de antemano muchas gracias
paz
![[Image: postbit_thx.gif]](http://insanospmx.com.ar/images/rededition/postbit_thx.gif)
y no combina ni se ve bien me gustaria cambiar esa imagen por un boton para que se adapte solo a mi theme aqui les dejo el codigo php espero me puedan ayudar
de antemano muchas gracias
function thx(&$post)
{
global $db, $mybb, $lang ,$session, $theme, $altbg, $templates, $thx_cache;
if(!$mybb->settings['thx_active'] || !empty($session->is_spider))
{
return false;
}
$lang->load("thx");
if($mybb->user['uid'] != 0 && $mybb->settings['thx_hidesystem_ignoregroups'] != 0)
{
$groups = explode(",", $mybb->settings['thx_hidesystem_ignoregroups']);
if($mybb->settings['thx_hidesystem_ignoregroups'] == 0 || in_array($mybb->user['usergroup'], $groups))
{
return false;
}
}
if($b = $post['pthx'])
{
$entries = build_thank($post['pid'], $b);
}
else
{
$entries = "";
}
if($mybb->user['uid'] != 0 && $mybb->user['uid'] != $post['uid'])
{
if(!$b)
{
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"var uno = thx({$post['pid']});var dos = hideuntilthanks_reload(); return uno && dos;\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\"><img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_thx.gif\" border=\"0\" alt=\"$lang->thx_main\" title=\"$lang->thx_main\" id=\"i{$post['pid']}\" /></a>";
}
else if($mybb->settings['thx_del'] == "1")
{
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return rthx({$post['pid']});\" href=\"showthread.php?action=remove_thank&tid={$post['tid']}&pid={$post['pid']}\">
<img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_rthx.gif\" border=\"0\" alt=\"$lang->thx_remove\" title=\"$lang->thx_remove\" id=\"i{$post['pid']}\" /></a>";
}
else
{
$post['thanks'] = "<!-- remove thanks disabled by administrator -->
Estás confundiendo las cosas, ya que ese botón no es un formulario, & tú piensas eso.
Mejor busca como hacer botones con CSS & se lo aplicas a la etiqueta A sin la imagen que tienes.
Mejor busca como hacer botones con CSS & se lo aplicas a la etiqueta A sin la imagen que tienes.
lo mejor es sustituir la imagen postbit_thx.gif por una imagen qure tu hayas hecho teniendo la precaución de dejarle el mismo nombre y extensión
![[Image: signature.png]](https://omarg.me/cache/images/signature.png)