The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Comments |
#2
|
||||
|
||||
I'll have to try these...I am having the same problem you stated in #1. THanks for the feedback, it is appreciated!
|
#3
|
|||
|
|||
I'll check your changes for (2), but for issue (1), are you sure you have made the changes suggested in functions_showthread.php?
If you have, then the parameter $pnotes should have a value only if $showviewwarnlink is set to 1. The $showviewwarnlink parameter is set to one only for admins or for admins/smods/mods depending on the usage of the hierarchical schema or not. It should not be necessary to use the code below: Code:
<if condition="$bbuserinfo[usergroupid] == 7 || $bbuserinfo[usergroupid] == 6 || $bbuserinfo[usergroupid] == 5"> Check your edits in functions_showthread.php, that's where the check is made. Also check that you have defined your Warning Options about which are your admin, mod, smod groups. |
#4
|
|||
|
|||
Hiya,
I made all the changes to the showthread.php, but left the admin/smod/mod fields empty in the settings page since I use the defaults. From my understanding of what you said, this would suggest if I specifically set the fields, then it should work? I'll go through and double check everything again just to make sure. Thanks, Delphy |
#5
|
|||
|
|||
Yes, if you leave them empty the program will enter the proper groups (6,5,7) for the admins/smods/mods. From there on, the code in functions_showthread.php decides if the $pnotes will be filled up, depending on the $showviewwarnlink parameter.
If your plain users can see the notes, they should also be able to see the "View XYZ Warnings". DARN!!! Now, I know, you have the "Who can view warning points" set to "All", right? OK, try this. In functions_showthread.php find: Code:
if ($post['warn_notes']==1 and $showviewwarnlink==1); Code:
if ($post['warn_notes']==1 and ($useradmin==1 OR $usersmod==1 OR $usermod==1)); |
#6
|
|||
|
|||
sv1,
I had "Who can view warning points?" set to Mgmt, but when the moderators where entering notes they set "private note?" to No - becuase the wording seems to indicate the only the moderator who entered the note in the first place could see the note (and not all moderators which is what I wanted). Maybe I'm just trying to use it in a way it's not supposed to be used Regards Delphy |
#7
|
|||
|
|||
Notes can be either public (for all the management team to see) or private (only the person who entered it can see it). If you had set the Who can view Warning Points" to Mgm, there is no reason why the rest of your members could see the notes.
Try the change suggested above and let me know if it works OK. |
#8
|
|||
|
|||
Hiya,
Nope - it didn't. Members and guests can still see the notes entered. Regards, Delphy |
#9
|
|||
|
|||
I am not sure if this is due to your modifications, or not. Look at the code below:
Code:
if ($post['warn_notes']==1 and ($useradmin==1 OR $usersmod==1 OR $usermod==1)); { $get_notes=$DB_site->query("select w.*, u.username as warner from ".TABLE_PREFIX."warn_notes w LEFT JOIN ".TABLE_PREFIX."user u on(u.userid=w.warned_by) where warned_user='{$post['userid']}' order by warned_time desc"); $pnotes=''; $d=''; $t=''; while($notes=$DB_site->fetch_array($get_notes)) If the post has a note, and the user is administrator, super moderator or moderator, then do whatever follows. If the post has no notes or if the user is nothing of the above, then obviously the parameter $pnotes never gets a value, so it should not show. I do not know if your changes have affected this procedure or not. |
#10
|
|||
|
|||
With regards to the number of SQL queries changes I made, they dont affect that line - I was simply referencing it in my changelog becuase I needed to alter the lines below it.
I just saw you released the latest version so I'll try that out and get back to you. Thanks for the replies. Have you managed to have a look at the single query code yet? Regards, Delphy |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|