Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 20 Mar 2016, 10:56
semprot semprot is offline
 
Join Date: Mar 2010
Real name: Jeremy
Question Altering Usernote Content Question

Hello.

How to alter usernote content (when viewed & edited), based on usergroup of who is viewing the usernote (who is logged in) at that moment?

I think it should be like this ?

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

Thank you
__________________
Best regards,

Jeremy
Reply With Quote
  #2  
Old 20 Mar 2016, 11:51
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
You would want to use the PHP Plugin Hook "postbit_display_complete" and then your code would be like:


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

where "X, Y, Z, ..." are the usergroupids of the usergroups you want to see the additional message.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
  #3  
Old 20 Mar 2016, 14:18
semprot semprot is offline
 
Join Date: Mar 2010
Real name: Jeremy
Thumbs up

Originally Posted by MarkFL View Post
You would want to use the PHP Plugin Hook "postbit_display_complete" and then your code would be like:


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

where "X, Y, Z, ..." are the usergroupids of the usergroups you want to see the additional message.
Thank you it works. But i have to add this line

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

When i didn't have it, the $vbulletin->userinfo is null (i tried to var_dump it).
__________________
Best regards,

Jeremy
Reply With Quote
  #4  
Old 20 Mar 2016, 14:37
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Originally Posted by semprot View Post
Thank you it works. But i have to add this line

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

When i didn't have it, the $vbulletin->userinfo is null (i tried to var_dump it).
Yeah, for some reason I never need that on my dev site, but some folks seem to need it on their sites, and I sometimes forget to add that when posting code for others.
__________________
Former vBulletin.org Staff Member



Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Thread Enhancements Usernote in Postbit v.1.2 tnguy3n Modification Graveyard 27 01 May 2005 23:07
Admin post usernote in user profile. tnguy3n vBulletin 3.0 Template Modifications 2 01 Aug 2004 17:21



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 18:10.

Layout Options | Width: Wide Color: