RSS Feed/News Widget Display Condition - Specific Forum

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
21,390
Points
823

Reputation:

Hi all,

I'm trying to get a widget to display only if the visitor is in a particular user group and viewing a particular forum.

My current display condition is this:

$xf.visitor.isMemberOf(19) AND $forum.node_id == 61

Getting the first condition to work is fine. But using the second condition, either by itself or in conjunction with the first condition means that the widget never displays.

Editing the forum_view template, I have determined that this is in fact the correct...

Read more

Continue reading...
 
Status
Not open for further replies.
Top