Page 1 of 1
Main Nav show Buttons based on Login
Posted: Thu Aug 23, 2018 3:23 pm
by sun30friend
Hi,
i need to change the top Main Nav to show the buttons based on user login like in the DropDown Menu, but don't know where to start.
thanks
Re: Main Nav show Buttons based on Login
Posted: Thu Aug 23, 2018 7:21 pm
by Thorsten
Hi,
what do you want to change?
bye
Thorsten
Re: Main Nav show Buttons based on Login
Posted: Fri Aug 24, 2018 7:58 am
by sun30friend
i need the ADD FAQ Button only visible when a user is logged into phpmyfaq
Re: Main Nav show Buttons based on Login
Posted: Sat Aug 25, 2018 5:34 pm
by Thorsten
Hi,
add in assets/template/default/index.tpl line 67 to the following code:
Code: Select all
[userloggedIn]
<li class="{activeAddContent}">{msgAddContent}</li>
[/userloggedIn]
In index.php, in after line 633, add the following:
Code: Select all
'msgAddContent' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'addcontent.html">'.$PMF_LANG['msgAddContent'].'</a>',
bye
Thorsten