Reply #22 October 13, 2010 - 06:25 18:25
LockerzMexico , en el enlace que dejas la sintaxis del html esta mal, debería ser así:
// Here starts the Topic Prefix Mod
global $board_info, $user_info;
$show = false;
if (!empty($context['prefix'])){
foreach ($context['prefix'] AS $dummy){
$prefix_groups = explode(',',$dummy['permissions']);
$groups_permission = count(array_intersect($user_info['groups'], $prefix_groups)) == 0 ? false : true;
$prefix_boards = explode(',', $dummy['id_boards']);
if (((in_array($board_info['id'],$prefix_boards)) || $prefix['id_boards'] == 0) && ($groups_permission == true || $context['user']['is_admin']))
$show = true;
}
}
if ($show){
echo'
<dt align="right" style="font-weight: bold;">
', $txt['prefix_select'], ' :
</dt><dd>
<select name="post_prefix" id="post_prefix">
<option value="">(', $txt['prefix_no'], ')</option>';
foreach($context['prefix'] as $prefix){
$prefix_groups = explode(',',$prefix['permissions']);
$groups_permission = count(array_intersect($user_info['groups'], $prefix_groups)) == 0 ? false : true;
$prefix_boards = explode(',', $prefix['id_boards']);
if (((in_array($board_info['id'],$prefix_boards)) || $prefix['id_boards'] == 0) && ($groups_permission == true || $context['user']['is_admin']))
echo '
<option value="', $prefix['prefix'], '" >', $prefix['prefix'], '</option>';
}
echo '
</select>
</dd>';
}
// Here Topic Prefix Mod End's
luego acomodar el ancho un poco para que no rompa el layout.
#post_header dt
{
float: left;
margin: 0;
padding: 0;
width: 22%;
margin: .3em 0;
font-weight: bold;
}
#post_header dd
{
float: left;
margin: 0;
padding: 0;
width: 77%;
margin: .3em 0;
}
claro que en monitores con mayor resolución, no habría problemas .