peeta Posted July 20, 2007 Share Posted July 20, 2007 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? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 20, 2007 WHMCS CEO Share Posted July 20, 2007 That will work and only display the KB to a user when logged in. If they aren't logged in they would see the "View this" message. Matt 0 Quote Link to comment Share on other sites More sharing options...
peeta Posted July 20, 2007 Author Share Posted July 20, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.