Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP: Xenforo Spoiler Permission Help
Hello guys, I never for once have to regret to have to stumble upon this site because of their great work being done here. And also thanks to the admin of this wonderful site.

Please, I really need your help in setting up my xenforo spoiler although it is working need some changes which I want to make.
My spoiler is only meant for registered members in my forum and restricted to the visitor which they would have to sign up for it. So I want it my xenforo spoiler code to work for some set of my members let's say with title rank instead for all members.
So what I am saying, in essence, is that I want it to only work my users with a title rank e.g Guru so how can I set it up please help is needed here.

<xen:if is="{$visitor.user_id}">
<div class="ToggleTriggerAnchor bbCodeSpoilerContainer">
  <button class="button bbCodeSpoilerButton ToggleTrigger Tooltip JsOnly"
     title="{xen:phrase click_to_reveal_spoiler}"
     data-target="> .SpoilerTarget"><span>{xen:phrase spoiler}{xen:if $titleHtml, ': <span class="SpoilerTitle">{xen:raw $titleHtml}</span>'}</span></button>
  <div class="SpoilerTarget bbCodeSpoilerText">{xen:raw $content}</div>
<xen:else />
<a href="{xen:link register}" class="button"><span>You need to register to view the contents!</span></a>

So now the problem is how I can set the permission for only members with title rank guru? And how I can get the user group id instead for the spoiler to work for all members.

Please really need it any suggestion is welcome. Thanks in advance

@Dealwap  and other great programmers who can help me with this.
Always visit (For lastest news, musics, and entertainment) (For Blogging tips, Programming, Computer, internet, phone hints)
Let's have a link to your forum or drop screenshots of what you want to implement.
Always try not to spend tomorrow regretting what you should have done today! Smile
Ok here is that the issue come from 

<xen:if is="{$visitor.user_id}">

 if I can set the permission from there , really don't know much about programming and it is a spoiler.
And also I can thread on the homepgae please it would be better if you can take this thread to the homepage for reach out to other programmers.
this feature isnt supported by xenforo.....
the universe is two, so the other me might be awesome #PearStep
hmm, it is an addon bro or you don't know about spoiler
(09-06-2017, 08:47 AM)Zenseo Wrote:
hmm, it is an addon bro or you don't know about spoiler

nah.... I have not come across it but I know it isn't implanted on xenforo ACP
the universe is two, so the other me might be awesome #PearStep
pls @Pearstep i need your help on how to move recent post to the top on xenforo
I am a proud member of NIgerian Coders Team

Users browsing this thread: 1 Guest(s)

About Nigeria's Creative Talents

Nigeria's Creative Talents is an online community where every creative Nigerians can share ideas with themselves.

For any more information, please use our contact form.

              User Links