@ oxpus
also die Zeilen die den Link darstellen... na das werde ich doch wohl irgendwie hinbekommen.
cu Overhead
EDIT///
Ich habe das eingebunden - Du hattest vergessen - zu erwähnen, dass ich auch die functions.php anpasssen muss
ich habe nun das gemacht
Code: Alles auswählen
function build_toolbar($mode, $l_privmsgs_text='', $s_privmsg_new=0, $forum_id=0, $tlbr_more='')
{
global $userdata, $template, $lang, $images, $phpEx;
// restrict mode input to valid options
$mode = ( in_array($mode, array('default', 'index', 'viewforum', 'viewtopic')) ) ? $mode : '';
if ( !empty($mode) && $userdata['session_logged_in'] )
{
// init vars
$s_toolbar = '';
// toolbar actions details display
$toolbar_actions = array(
'inbox' => array('link_pgm' => 'privmsg', 'link_parms' => array('folder' => 'inbox'), 'txt' => $l_privmsgs_text, 'img' => !$s_privmsg_new ? 'tlbr_no_new_pm' : 'tlbr_new_pm'),
'unanswered' => array('link_pgm' => 'search', 'link_parms' => array('search_id' => 'unanswered'), 'txt' => 'Search_unanswered', 'img' => 'tlbr_unanswered'),
'newposts' => array('link_pgm' => 'search', 'link_parms' => array('search_id' => 'newposts'), 'txt' => 'Search_new', 'img' => 'tlbr_new'),
'egosearch' => array('link_pgm' => 'search', 'link_parms' => array('search_id' => 'egosearch'), 'txt' => 'Search_your_posts', 'img' => 'tlbr_self'),
'pdf' => array('link_pgm' => 'pdf', 'link_parms' => array(POST_TOPIC_URL => intval($topic_id)), 'txt' => 'PDF', 'img' => 'tlbr_pdf'),
'forums' => array('link_pgm' => 'index', 'link_parms' => array(POST_FORUM_URL => intval($forum_id), 'mark' => 'forums'), 'txt' => 'Mark_all_forums', 'img' => 'tlbr_markall', 'cond' => $mode == 'index'),
'topics' => array('link_pgm' => 'viewforum', 'link_parms' => array(POST_FORUM_URL => intval($forum_id), 'mark' => 'topics'), 'txt' => 'Mark_all_topics', 'img' => 'tlbr_markall', 'cond' => !empty($forum_id) && ($mode == 'viewforum' || $mode == 'viewtopic')),
'viewonline' => array('link_pgm' => 'viewonline', 'link_parms' => '', 'txt' => 'Who_is_Online', 'img' => 'tlbr_viewonline', 'cond' => $mode != 'viewtopic'),
);
// add additional actions in toolbar so existing
if ( !empty($tlbr_more) && is_array($tlbr_more) )
{
$toolbar_actions = array_merge($toolbar_actions, $tlbr_more);
}
// let's go
foreach ( $toolbar_actions as $action => $data )
{
if ( !isset($data['cond']) || $data['cond'] )
{
// build url parms
$url_parms = '';
if ( !empty($data['link_parms']) )
{
foreach ( $data['link_parms'] as $key => $val )
{
if ( !empty($key) && !empty($val) )
{
$url_parms .= (empty($url_parms) ? '?' : '&') . $key . '=' . $val;
}
}
}
// build toolbar
$s_toolbar .= '<a href="' . append_sid($data['link_pgm']. '.' . $phpEx . $url_parms) . '"><img src="' . $images[ $data['img'] ] . '" alt="' . ( $action == 'inbox' ? $data['txt'] : $lang[ $data['txt'] ] ) . '" title="' . ( $action == 'inbox' ? $data['txt'] : $lang[ $data['txt'] ] ) . '" border="0" /></a>';
}
}
// send to template
if ( !empty($s_toolbar) )
{
// constants
$template->assign_block_vars('toolbar', array(
'S_TOOLBAR' => $s_toolbar,
));
}
}
}
aber das image wird nicht angezeigt
obwohl ich das icon in das images Vereichnis wo die anderen icons drin stehen reinkopiert habe, und ja das Image hat die richtige Bezeichnung.
EDIT ///
Ich habs rausgefunden - es muss natürlich auch noch die subsilver.cfg bearbeitet werden. - So das Thema ist also auch bis auf weiteres durch!
EDIT ////
Iregendwie wird dadurch das img bei eingegangenen PN nicht mehr angezeigt sondern der Text das eine neue PN da ist, dass sollte doch eigentlich nur als Bildunterschrift kommen - ich habe da wohl wieder mal etwas übersehen???
cu Overhead