Birdie501
06-07-2002, 10:29 PM
How can i set links which are stored in a template to be shown on forumhome if the user is logged in? If he is a guest or not looged in it should not be shown!
I made a template called forumhomelinks with that code:
<a href="newthread.php?s=&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread2.gif" border="0" alt="Neues Thema im Forum $forum[title] erstellen"></a>
<a href="member2.php?s=&action=addsubscription&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/subscribe2.gif" border="0" alt="Das Forum $forum[title] abonnieren und ?ber neue Nachrichten informiert werden"></a>
<a href="search.php?s=$session[sessionhash]&action=getnew&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/findnew.gif" border="0" alt="Die neuesten Themen in diesem Forum seit Deinem letzten Besuch auflisten"></a>
then i tried to add this code to index.php
if ($bbuserinfo['userid']==0) {
$forumhomelinks ="";
} else {
eval("\$forumhomelinks = \"".gettemplate('forumhomelinks')."\";");
}
but it doesn?t work.
What do I have to change?
Thanks in advance.
I made a template called forumhomelinks with that code:
<a href="newthread.php?s=&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/newthread2.gif" border="0" alt="Neues Thema im Forum $forum[title] erstellen"></a>
<a href="member2.php?s=&action=addsubscription&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/subscribe2.gif" border="0" alt="Das Forum $forum[title] abonnieren und ?ber neue Nachrichten informiert werden"></a>
<a href="search.php?s=$session[sessionhash]&action=getnew&forumid=$forum[forumid]"><img src="https://vborg.vbsupport.ru/images/findnew.gif" border="0" alt="Die neuesten Themen in diesem Forum seit Deinem letzten Besuch auflisten"></a>
then i tried to add this code to index.php
if ($bbuserinfo['userid']==0) {
$forumhomelinks ="";
} else {
eval("\$forumhomelinks = \"".gettemplate('forumhomelinks')."\";");
}
but it doesn?t work.
What do I have to change?
Thanks in advance.