MODs: Nein
Dein Wissensstand: Einsteiger
Link zu Deinem Forum: [url]http://[/url]
PHP Version:
MySQL Version:
Was hast Du gemacht, bevor das Problem aufgetreten ist?
Was hast Du bereits versucht um das Problem zu lösen?
Fehlerbeschreibung und Nachricht
Wie kann ich es machen das einige Punkte nur für Registrierte User sichtbar werden, und zwar im index, viewtopic und viewforum ?
Code: Alles auswählen
if ( $userdata['session_logged_in'] )
{
$toolbar_mod .= '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '"><img src="' . $tlbr_pm . '" alt="" title="' . $l_privmsgs_text . '" border="0" /></a>';
$toolbar_mod .= '<a href="' . append_sid("search.$phpEx?search_id=unanswered") . '"><img src="' . $images['tlbr_unanswered'] . '" alt="' . $lang['Search_unanswered'] . '" title="' . $lang['Search_unanswered'] . '" border="0" /></a>';
$toolbar_mod .= '<a href="' . append_sid("search.$phpEx?search_id=newposts") . '"><img src="' . $images['tlbr_new'] . '" alt="' . $lang['Search_new'] . '" title="' . $lang['Search_new'] . '" border="0" /></a>';
$toolbar_mod .= '<a href="' . append_sid("search.$phpEx?search_id=egosearch") . '"><img src="' . $images['tlbr_self'] . '" alt="' . $lang['Search_your_posts'] . '" title="' . $lang['Search_your_posts'] . '" border="0" /></a>';
$s_watching_topic = '';
$toolbar_mod .= '<a href="' . append_sid("index.$phpEx?mark=forums") . '"><img src="' . $images['tlbr_markall'] . '" alt="' . $lang['Mark_all_forums'] . '" title="' . $lang['Mark_all_forums'] . '" border="0" /></a>';
$toolbar_mod .= '<a href="' . append_sid("viewonline.$phpEx") . '"><img src="' . $images['tlbr_viewonline'] . '" alt="' . $lang['Who_is_Online'] . '" title="' . $lang['Who_is_Online'] . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '"><img src="' . $tlbr_pm . '" alt="" title="' . $l_privmsgs_text . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("search.$phpEx?search_id=unanswered") . '"><img src="' . $images['tlbr_unanswered'] . '" alt="' . $lang['Search_unanswered'] . '" title="' . $lang['Search_unanswered'] . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("search.$phpEx?search_id=newposts") . '"><img src="' . $images['tlbr_new'] . '" alt="' . $lang['Search_new'] . '" title="' . $lang['Search_new'] . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("search.$phpEx?search_id=egosearch") . '"><img src="' . $images['tlbr_self'] . '" alt="' . $lang['Search_your_posts'] . '" title="' . $lang['Search_your_posts'] . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&mark=topics") . '"><img src="' . $images['tlbr_markall'] . '" alt="' . $lang['Mark_all_topics'] . '" title="' . $lang['Mark_all_topics'] . '" border="0" /></a>';
$toolbar_forum_mod .= '<a href="' . append_sid("viewonline.$phpEx") . '"><img src="' . $images['tlbr_viewonline'] . '" alt="' . $lang['Who_is_Online'] . '" title="' . $lang['Who_is_Online'] . '" border="0" /></a>';
$toolbar_topic_mod .= '<a href="' . append_sid("privmsg.$phpEx?folder=inbox") . '"><img src="' . $tlbr_pm . '" alt="" title="' . $l_privmsgs_text . '" border="0" /></a>';
$toolbar_topic_mod .= '<a href="' . append_sid("search.$phpEx?search_id=unanswered") . '"><img src="' . $images['tlbr_unanswered'] . '" alt="' . $lang['Search_unanswered'] . '" title="' . $lang['Search_unanswered'] . '" border="0" /></a>';
$toolbar_topic_mod .= '<a href="' . append_sid("search.$phpEx?search_id=newposts") . '"><img src="' . $images['tlbr_new'] . '" alt="' . $lang['Search_new'] . '" title="' . $lang['Search_new'] . '" border="0" /></a>';
$toolbar_topic_mod .= '<a href="' . append_sid("search.$phpEx?search_id=egosearch") . '"><img src="' . $images['tlbr_self'] . '" alt="' . $lang['Search_your_posts'] . '" title="' . $lang['Search_your_posts'] . '" border="0" /></a>';
$toolbar_topic_mod .= '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id&mark=topics") . '"><img src="' . $images['tlbr_markall'] . '" alt="' . $lang['Mark_all_topics'] . '" title="' . $lang['Mark_all_topics'] . '" border="0" /></a>';
$s_watching_topic = '';
if ( $can_watch_topic )
{
if ( $is_watching_topic )
{
$toolbar_topic_mod .= "<a href=\"viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&unwatch=topic&start=$start&sid=" . $userdata['session_id'] . '"><img src="' . $images['tlbr_un_watch'] . '" alt="' . $lang['Stop_watching_topic'] . '" title="' . $lang['Stop_watching_topic'] . '" border="0"></a>';
}
else
{
$toolbar_topic_mod .= "<a href=\"viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id&watch=topic&start=$start&sid=" . $userdata['session_id'] . '"><img src="' . $images['tlbr_watch'] . '" alt="' . $lang['Start_watching_topic'] . '" title="' . $lang['Start_watching_topic'] . '" border="0"></a>';
}
}
}