2013-07-31, 03:56 AM
I am trying to add style to this part of a php file I'm editing.
I'm trying to add these style to the php
Can anyone help me fix it the correct way?
Trying to add it along where is say:
if($mybb->user['uid'] != 0 && $mybb->user['uid'] != $post['uid'])
{
if(!$b)
{
$post['thanks'] = "<a id=\"a{$post['pid']}\" onclick=\"javascript:return thx({$post['pid']});\" href=\"showthread.php?action=thank&tid={$post['tid']}&pid={$post['pid']}\">
<img src=\"{$mybb->settings['bburl']}/{$theme['imgdir']}/postbit_thx.png\" 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.png\" border=\"0\" alt=\"$lang->thx_remove\" title=\"$lang->thx_remove\" id=\"i{$post['pid']}\" /></a>";
}
else
{
$post['thanks'] = "<!-- remove thanks disabled by administrator -->";
}
}
I'm trying to add these style to the php
margin-top: -5px;
margin-right: -5px;
margin-bottom: -5px;
border: 1px solid #A3A3A3;
Can anyone help me fix it the correct way?
Trying to add it along where is say:
" border=\"0\"