Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 14 Jun 2013, 20:18
Gripi Gripi is offline
 
Join Date: Jul 2009
Plugin code to show for specific usergroup only

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
Reply With Quote
  #2  
Old 14 Jun 2013, 20:32
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #3  
Old 15 Jun 2013, 05:38
Gripi Gripi is offline
 
Join Date: Jul 2009
Hello.. not working..

i use it in forumhome_complete
Reply With Quote
  #4  
Old 15 Jun 2013, 08:08
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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?
Reply With Quote
  #5  
Old 15 Jun 2013, 08:33
Gripi Gripi is offline
 
Join Date: Jul 2009
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.
Reply With Quote
  #6  
Old 15 Jun 2013, 08:45
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
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.
Reply With Quote
  #7  
Old 15 Jun 2013, 20:26
Gripi Gripi is offline
 
Join Date: Jul 2009
Hello..

Thank you.. working now
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 05:49.

Layout Options | Width: Wide Color: