JustBrowsing90
Newcomer
Status
offline
Posts
20
Likes
13
Credits
0
LEVEL
1
200 XP
Ah okay, that's a bit over my head at the moment but I really appreciate all the help. I made an introduction thread so you won't have to approve my posts anymore. I apologize for that.You need to disable the context menu using JavaScript.
People tend to do this to try and mitigate any ripping of themes, but I'll let you know that doesn't really work. People can get around that.
We currently disallow the context menu if the visitor is a Guest, and not a member. Using a mix of JavaScript, XenForo template IF statement syntax, etc.
HTML:<!-- If no ID exists for the visitor, they're a guest --> <xf:if is="!$xf.visitor.user_id"> <!-- Enter code only rendered for guests --> </xf:if> <!-- ========================================= --> <!-- If visitor has an ID, they're not a guest --> <xf:if is="$xf.visitor.user_id"> <!-- Enter code only rendered for guests --> </xf:if>
You could use the ladder and place JavaScript in this where the context menu would be disabled.
For global usage, yourPAGE_CONTAINER
will be rendered on every page.
Post automatically merged:
JustBrowsing90,
You should introduce yourself so I don't have to continue approving your posts