SimplePortal
Support => International Support => German => Topic started by: haschi on July 28, 2009, 05:33:18 PM
-
Hallo!
Wusste grad nichts anderes als Betreff.. Sorry..
Ist es möglich, die Buttons wie "Antworten, Benachrichtigen, Drucken, ..." in einen Block unterzubringen?
Die Idee kam mir vor wenigen Minuten spontan. Hab auch shcon ein wenig probiert. Habe zum testen das Array
[php] $normal_buttons = array(
'reply' => array('highlight' => 'highlight', 'test' => 'can_reply', 'text' => 'reply', 'image' => 'reply.gif', 'lang' => true, 'class' => 'accent', 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
'mark_unread' => array('test' => 'can_mark_unread', 'text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
'add_poll' => array('test' => 'can_add_poll', 'text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';' . $context['session_var'] . '=' . $context['session_id']),
'send' => array('test' => 'can_send_topic', 'text' => 'send_topic', 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=emailuser;sa=sendtopic;topic=' . $context['current_topic'] . '.0'),
'print' => array('text' => 'print', 'image' => 'print.gif', 'lang' => true, 'custom' => 'rel="new_win nofollow"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
);
[/php]
und die Funktion
template_button_strip($normal_buttons, 'bottom')
in einen PHP-Block eingefügt. Allerdings wurden die Variablen wie topicID nicht übergeben.
Muss dort noch irgendwas dazu? Seh grad nicht mehr ganz durch, schon nen bisschen spät.. Und schon wieder über 14 Stunden am Rechner.... :(
Freue mich auf Antwort! :)
Gruß
Marco