![]() |
Quote:
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING |
Try:
HTML Code:
<if condition="$post[usernote] AND is_member_of($bbuserinfo, array(1,2,3))"><div> |
Quote:
Yes thanks man these won works https://vborg.vbsupport.ru/external/2005/12/3.gif but have him what-adapted HTML Code:
<if condition="$post[usernote] AND is_member_of($bbuserinfo, array(6,7))"><div> |
Well, one suggestion I would have for reducing the queries on boards where only admins/mods are using the notes feature would be to put the conditional in the actual plug-in....
Basically, an IF wrapper like the following around the existing XML code seems to work quite well (blatantly 'borrowed' from the MEMBER.PHP file): Code:
if I've tested this on my own board, and it seems to work quite well. To be fair, this doesn't reduce the queries for boards where everybody can see usernotes about each other, but it will help for those boards where usernotes are used for admin-only purposes. |
Hint: You could simply construct an Array of all users that posted in the Thread, then add to the Array how many usernotes they have, if they have any, the username and userid, etc. It's just one query that you'll be adding, if you do this method. Then, in the postbit, just call something like:
PHP Code:
|
Anoter idea. Create user field (private) and update it using cron job.
|
Quote:
|
any chance of something like this for vb 3.6.4 ?
|
for 3.6.8 ?
yokmu 3.6.8 için uye notlarını profilde göstermeye yarayan eklenti? |
All times are GMT. The time now is 05:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|