I have a premium area on my forum and I want to restrict the use of certain custom BB codes to those with a premium subscription (30) and a few VIP groups (48,48,50).
The bbcode is for an audio player and I have named it audiop
I tried this in the definition of the bb code, but it did not work:
There was no restriction applied and "if(is_member_of($vbulletin->userinfo, 30)) {" was displayed on the page.
If possible, I would like to add a text that is displayed to people not authorized. Something like" You need a premium subscription to see this."
How can I get this working?
The bbcode is for an audio player and I have named it audiop
I tried this in the definition of the bb code, but it did not work:
Code:
if(is_member_of($vbulletin->userinfo, 30)) { <div class="players" > <div class="media-wrapper"> <audio id="player2" preload="none" controls controlsList="nodownload" style="width: 100%;"> <source src="{param}" type="audio/mp3"> </audio> </div> </div> }
If possible, I would like to add a text that is displayed to people not authorized. Something like" You need a premium subscription to see this."
How can I get this working?
Comment