Jump to content

How can I set the Knowledgebase just for registered users?


peeta

Recommended Posts

I didn't see a switch in the configuration to set the Knowledgebase so that only registered users may access. (please alert me if I did miss it)

 

I tried the following with knowledgebase.tpl but it didn't work. The logged in user only sees ELSE content.

 

{if $loggedin}


{$LANG.knowledgebaseintrotext}</p>



[b]{$LANG.knowledgebasecategories}[/b]</p>

<table width="100%">
<tr>
{foreach key=num item=kbcat from=$kbcats}
<td width="33%" valign="top">[b][url="knowledgebase.php?action=displaycat&catid={$kbcat.id}"][img=images/support/folder.gif]{$kbcat.name}[/url][/b] ({$kbcat.numarticles})

{$kbcat.description}
</td>
{if $num is div by 3}
</tr>
<tr>
{/if}
{/foreach}
</tr>
</table>




<table width=100% cellspacing=0 cellpadding=0><tr><td width=50% valign=top>



[b]{$LANG.knowledgebasepopular} {$LANG.knowledgebasearticles}[/b]</p>

<table width=100%>
{foreach key=num item=kbarticle from=$kbmostviews}
<tr><td>
[img=images/support/article.gif] [b][url="knowledgebase.php?action=displayarticle&catid={$kbarticle.category}&id={$kbarticle.id}"]{$kbarticle.title}[/url][/b]

{$kbarticle.article|truncate:50:"..."}

<font style="color:#A8A8A8;font-size:10px;">{$LANG.knowledgebaseviews}: {$kbarticle.views}</FONT>
</td></tr>
{/foreach}
</table>

</td><td width=50% valign=top>





<form method="post" action="knowledgebase.php?action=search">
<p align=center>[b]{$LANG.knowledgebasesearch}[/b]
<input type="text" name="search" size="25">
<input type="submit" value="{$LANG.knowledgebasesearch}"></p>
</form>

</td></tr></table>

{else}
View this
{/if}

 

Does anyone know how to do this?

Link to comment
Share on other sites

It does work to block out the access and displays the 'else' alternative but when logged in it still displays only the alternative.

 

I'll send a PM with the access to try it.

 

--------------

Well apparently I am not authorized to send PMs so scratch that.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated