vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=299123

Plugin code to show for specific usergroup only
by Gripi
14 Jun 2013 20:18

Hello..

how to change this code to work inside the plugin:

show to specific group only:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

i already try:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but no luck.

thanks

kh99 14 Jun 2013 20:32

That should work. Which hook are you using? You may need to add

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


to the beginning of your plugin code.

Gripi 15 Jun 2013 05:38

Hello.. not working..

i use it in forumhome_complete

kh99 15 Jun 2013 08:08

Hmm...I don't see why that wouldn't work, and you don't need a "global" statement there. If you're using it to decide to add something to the FORUMHOME template, are you registering your variable to the template?

Gripi 15 Jun 2013 08:33

I installed one mod from vb.org, and i saw the plugin named "Stat render", using forumhome_complete, i just want to show the stat for admin only, here is the complete code:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

but the code above hide the stat to all usergroup.

kh99 15 Jun 2013 08:45

OK, I think you should use:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

if you haven't tried that already. $bbuserinfo is a shortcut that only works in a template.

Gripi 15 Jun 2013 20:26

Hello..

Thank you.. working now :)


All times are GMT. The time now is 07:23.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.