2012-09-27, 10:44 PM
2012-09-28, 05:17 AM
(2012-09-27, 10:44 PM)Postovi Wrote: [ -> ]how to change to see the members?Open the plugin (pwn.php) file, find and remove this line:
&& is_moderator($fid)
Save it.
2012-09-28, 07:16 AM
(2012-09-23, 05:43 PM)Yaldaram Wrote: [ -> ]You're making a very big query Unadkat. You do not have to useusers
andposts
tables since you can directly fetch the warned post from its pid on postbit fromwarnings
table.
Anyway, querying on each post is too weighty. I would suggest to create a column inposts
table, and then update this column when warning issues and on warning expires. You can then simply use $post['column_name'] and check if its true then shows the icon and if its false removes the icon.
(2012-09-23, 07:08 PM)crazy4cs Wrote: [ -> ](2012-09-23, 05:43 PM)Yaldaram Wrote: [ -> ]You're making a very big query Unadkat. You do not have to useYes, I think I gave it a try but just pid didn't worked, so I added uid, I will retry it and give it a try tomorrow. Yes, that unfortunately runs around 9-10 queries on showthread. I also tried caching it, but I'm not too good with cache and unfortunately that didn't worked, if you've any suggestion for cache, that would be appreciated.users
andposts
tables since you can directly fetch the warned post from its pid on postbit fromwarnings
table.
Quote:Anyway, querying on each post is too weighty. I would suggest to create a column inThis seems a great idea, I think I shall also try to do this, thanks.posts
table, and then update this column when warning issues and on warning expires. You can then simply use $post['column_name'] and check if its true then shows the icon and if its false removes the icon.
Both are awesome users , Not they are? Remember me Crazy
2012-09-28, 08:14 AM
tell me this notification its only for admins or all member can see it??
also you can add in ACP option one notice box where admin can add some words about warned user
also you can add in ACP option one notice box where admin can add some words about warned user
2012-09-28, 09:59 AM
(2012-09-28, 08:14 AM)lexy Wrote: [ -> ]tell me this notification its only for admins or all member can see it??Only admins, super moderators and moderator of the forum, in which the thread is situated can only see it (default MyBB way).
also you can add in ACP option one notice box where admin can add some words about warned user
And no, the second part will be too complex to add notes for each user, then I'll have to hook into when giving warning as well and then display it.
2012-09-28, 10:26 AM
can you change code to all member see it
2012-09-28, 10:30 AM
(2012-09-23, 07:28 PM)euantor Wrote: [ -> ]Ok, take a peak at this: http://euantor.com/4-reducing-mybb-plugi...he-postbit
It should help you cut the query count to just one if you do it right. Also, why are you looking up the uid from the user's table? Just use $post['uid'] unless I'm missing something by skim reading on my phone.
I went to look at the post as I was interested in this - um, there is no CODE sample there
2012-09-28, 10:53 AM
(2012-09-28, 10:26 AM)lexy Wrote: [ -> ]can you change code to all member see ithttp://community.mybb.com/thread-126575-...#pid917803
2012-09-28, 01:00 PM
2016-06-09, 02:48 AM
Any chance this plugin works in 1.8.*?
Is great to show to users what kind of behavior they must avoid.
Is great to show to users what kind of behavior they must avoid.