So I did that and went into the Code Event Listeners, but the template_hook wasn't under the Digital Point area.to remove the Spy that is to the far right, you first need to have Debug Mode set to True in your config.php.
ACP -> Development -> Code Event Listeners
Find template_hook under Digital Point Spy and uncheck it.
Not that I know of...sorryhowever is there anyway to add permission to only allow certain user groups to view the "Spy"?
Quick and dirty:
Templates / spy_index
Add to the very top of template:
PHP:<xen:if is="{$visitor.user_id}">
Add to the very bottom of template:
PHP:<xen:else /> Sorry, you must be a registered member to view the Spy. </xen:if>
Should be good enough to work for now, maybe we'll get a future option.
What mod to this code would be needed to make it for a User Group? i.e. Only display Spy if you're in a "Premium User Group"?
<xen:if is="{xen:helper ismemberof, $user, X}">
</xen:if>
Where would that code be added?PHP:<xen:if is="{xen:helper ismemberof, $user, X}"> </xen:if>
Where X is the usergroup #.
Note: That will apply to all members in user group X, whether primary or secondary.
Where would that code be added?
<xen:if is="{xen:helper ismemberof, $user, X}">
...REST OF TEMPLATE AS IS, HERE...
<xen:else />
Sorry, you must be a premium member to view the spy!
</xen:if>
Sorry for the delay, we've been working through some other issues that popped up. The next time it stops I will grab any errors from the console and post them here.Are you getting any error in your browser's console when it stops?
We use essential cookies to make this site work, and optional cookies to enhance your experience.