1.12.7 i starsze - Footer Buttons
kooza - 26-01-2013, 12:30
Kod: | <td class="catHead" height="28" align="center"><span class="cattitle">{L_BUTTONS}</span></tr> |
PaRoWa/NKLT - 31-01-2013, 20:07
ok dzieki nie wiem czemu sam o tym nie pomyslalem Wielkie THX dla ciebie
Scooby?! - 31-05-2013, 20:35
Sorry za odkopanie, ale znalazłem odpowiedź, może się komuś przyda
tyskie napisał/a: | Gdzie zmienić rozmiar szerokości pokazywanych butonów?
Na fotce pokazuje, że nie zaczyna wyświetlać od początku modułu
|
Przy instalacji w index.php
Kod: |
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $board_config['footer_buttons'] )
{
$sql = 'SELECT * FROM ' . FOOTER_BUTTONS_TABLE . '';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query footer buttons information', '', __LINE__, __FILE__, $sql);
}
if ( $board_config['footer_buttons_marquee'] == 0 )
{
$scroll1 = '';
$scroll2 = '';
}
else if ( $board_config['footer_buttons_marquee'] == 1 )
{
$scroll1 = '<marquee direction="left" width="70%">';
$scroll2 = '</marquee>';
}
else if ( $board_config['footer_buttons_marquee'] == 2 )
{
$scroll1 = '<marquee direction="right" width="70%">';
$scroll2 = '</marquee>';
}
$template->assign_block_vars('disable_viewonline.footer_buttons', array());
$template->assign_vars(array(
'L_BUTTONS' => $lang['buttons'],
'T1_SCROLL' => $scroll1,
'T2_SCROLL' => $scroll2,
'FB_WIDTH' => $board_config['footer_buttons_width'],
'FB_HEIGHT' => $board_config['footer_buttons_height']
));
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('disable_viewonline.footer_buttons.buttons', array(
'FOOTER_CODE' => $row['imgpath'],
'FOOTER_LINK' => $row['link'],
'FOOTER_BORDER' => $row['border'],
'FOOTER_COMMENT' => $row['comment'],
'FOOTER_DESC' => $row['desc']
));
}
} |
Zmieniamy wartości width na 100% lub jakiekolwiek inne. Czyli ma być np. tak:
Kod: | if ( $board_config['footer_buttons'] )
{
$sql = 'SELECT * FROM ' . FOOTER_BUTTONS_TABLE . '';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query footer buttons information', '', __LINE__, __FILE__, $sql);
}
if ( $board_config['footer_buttons_marquee'] == 0 )
{
$scroll1 = '';
$scroll2 = '';
}
else if ( $board_config['footer_buttons_marquee'] == 1 )
{
$scroll1 = '<marquee direction="left" width="100%">';
$scroll2 = '</marquee>';
}
else if ( $board_config['footer_buttons_marquee'] == 2 )
{
$scroll1 = '<marquee direction="right" width="100%">';
$scroll2 = '</marquee>';
}
$template->assign_block_vars('disable_viewonline.footer_buttons', array());
$template->assign_vars(array(
'L_BUTTONS' => $lang['buttons'],
'T1_SCROLL' => $scroll1,
'T2_SCROLL' => $scroll2,
'FB_WIDTH' => $board_config['footer_buttons_width'],
'FB_HEIGHT' => $board_config['footer_buttons_height']
));
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('disable_viewonline.footer_buttons.buttons', array(
'FOOTER_CODE' => $row['imgpath'],
'FOOTER_LINK' => $row['link'],
'FOOTER_BORDER' => $row['border'],
'FOOTER_COMMENT' => $row['comment'],
'FOOTER_DESC' => $row['desc']
));
}
} |
|
|
|