PDA

View Full Version : permission related issue


miguelidore29
05-27-2020, 01:09 PM
HI, I created a custom template & tried to display it on a channel by using DISPLAY TEMPLATE MODULE.

IT worked fine showing all desired results. But When i logout from admin id & tried to view as a non-registered / other users it's showing blank.

Here's the content of custom template: '

{vb:set sort, {vb:php array}}
{vb:set sort.lastcontent, 'desc'}
{vb:set exclude_type, {vb:php array}}
{vb:set exclude_type.0, 'vBForum_PrivateMessage'}
{vb:set module_filter_nodes, {vb:php array}}
{vb:set include, {vb:php array}}
{vb:set include.0, 'all'}
{vb:set module_filter_nodes.include, {vb:raw include}}
{vb:set module_filter_nodes.include_children, 1}

{vb:set customoptions, {vb:php array}}
{vb:set customoptions.starter_only, 1}
{vb:set customoptions.sort, {vb:raw sort}}
{vb:set customoptions.view, ''}
{vb:set customoptions.exclude_type, {vb:raw exclude_type}}
{vb:set customoptions.module_filter_nodes, {vb:raw module_filter_nodes}}
{vb:set customoptions.ignore_protected, 1}

{vb:rawdata nodes, search, getInitialResults, {vb:raw customoptions},15}

<vb:each from="nodes" key="key" value="data">
{vb:raw key} </br> {vb:raw data}</br></br>
</vb:each>

please help me on this issue..thanks.

delicjous
05-28-2020, 01:19 PM
Permission-Problem?