vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - e-steki User ModLog v1.1.3 - An alternative to moderation AutoPM (https://vborg.vbsupport.ru/showthread.php?t=154982)

Lea Verou 08-13-2007 09:04 AM

Version 1.1.1
------------------
Fixed the action 20 (edit post) bug

Also the manual now contains instructions for manual addition of the template hooks if you don't have them and a simple tutorial for changing the icons associated with each action type.

@Wulfnoth: The template edits that you requested are now included in the manual ;)
@winduff: Try this one, now the queries are two (one if you exclude action 20 from showing) but much lighter ones. If it doesn't work, answer the following (if its private info for you, answer in a pm):
1. How big is your forum? (users, posts, threads)
2. Are you on a shared server?
3. If you know how to navigate through phpmyadmin, how large is the moderatorlog table and the deletionlog table?

Wulfnoth 08-13-2007 10:18 AM

Quote:

Originally Posted by Michelle (Post 1316413)
@Wulfnoth: The template edits that you requested are now included in the manual ;)

Thanks!

Lea Verou 08-13-2007 11:07 AM

Version 1.1.2
---------------------
Added setting to specify which mod/admin usergroups' actions will display

winduff 08-13-2007 12:39 PM

Michelle, your a genious!

All works fine, great mod ;) Thanks again so much!

Lea Verou 08-13-2007 01:03 PM

Thank you winduff :)
I'm glad it finally works for you. :)

A note to non-coders: Don't pay so much attention to the number of queries that a hack adds, but rather the type of them. I tried so hard to make this add only one query initially, and it turned out to be such a heavy one that it couldn't even be executed in winduff's installation! Now that there are 2 queries (if you want to display post edits, otherwise its still one) they are much lighter together than the previous one alone. ;)

Axel Foley 08-13-2007 04:18 PM

Good job Lea...;)

While doing the tests I could "feel" the difference between this version and the old one...it's faster...you made a good job on the queries.

I would also suggest you to add an option: Show empty modlog table? (default: No)

I think this one deserves the nomination...;)

Lea Verou 08-13-2007 04:21 PM

Quote:

Originally Posted by Axel Foley (Post 1316638)
Good job Lea...;)

While doing the tests I could "feel" the difference between this version and the old one...it's faster...you made a good job on the queries.

I would also suggest you to add an option: Show empty modlog table? (default: No)

I think this one deserves the nomination...;)

Tell me one reason why someone would want to set that option to yes and I'll add it ;)

Thanks so much for the nomination!!! https://vborg.vbsupport.ru/https://vborg.vbsupport.ru/

Gray Matter 08-13-2007 05:00 PM

Wow, I didn't even realize how heavy the old version was until I updated to the new one. It cut my page load from 4.71432 seconds to 0.46639 seconds. :eek:

Lea Verou 08-13-2007 05:06 PM

Yeah, version 1.0 was quite heavy.

This could be a lesson to some that the number of queries that a hack adds by itself doesn't always reflect how heavy the hack is. In this case, as was proven, 2 queries were far better than one. ;)

Essam 08-13-2007 08:18 PM

its working great for my forum thank you

can you make the same idea for ( reported posts ) ?
only moderators forum can view the complaints in the usercp

johnrizz 08-13-2007 08:24 PM

That was quick and It works great! keep up the good work.....

MrZeropage 08-14-2007 04:56 AM

good work on the update *thumbs up*

btw you should update your signature to v1.1.2 too ;)

cynthetiq 08-14-2007 06:52 AM

It's late I thought I'd get one more mod in before bed, and I picked yours because Karma is so awesome. I think this looks awesome too.

For some reason, this isn't showing up in the CP.

I am now using the enlighten template and also did the GTUserCP - Enhanced USERCP Interface + USERCP Menu mod as well if that makes differences.

your FAQ is quite thorough, so I looked at the ""$template_hook[usercp_main_pos1]" (or pos2-6, depending on which position you have selected)" and I see that I'm already using all of them.

Code:

$template_hook[usercp_main_pos1]
<if condition="$show['privatemessages']">
<!-- ############## PRIVATE MESSAGES ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr>
  <td class="tcat" colspan="2">
  <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_pms')"><img id="collapseimg_usercp_pms" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_pms].gif" alt="" border="0" /></a>
  <a href="private.php$session[sessionurl_q]">$vbphrase[new_private_messages]</a><span class="normal">: ($numpms)</span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_usercp_pms" style="$vbcollapse[collapseobj_usercp_pms]">
 $messagelistbits
</tbody>
</table>
<br />
<!-- ############## END PRIVATE MESSAGES ##############  -->
</if>
$template_hook[usercp_main_pos2]
<!-- ############## SUBSCRIBED THREADS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr>
  <td class="tcat" colspan="$subscribedthreadscolspan">
  <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_subthreads')"><img id="collapseimg_usercp_subthreads" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_subthreads].gif" alt="" border="0" /></a>
  $vbphrase[new_subscribed_threads]<span class="normal">: ($numthreads)</span>
  </td>
 </tr>
</thead>
<tbody id="collapseobj_usercp_subthreads" style="$vbcollapse[collapseobj_usercp_subthreads]">
 <if condition="$show['threads']">
  <tr class="thead">
 
  <if condition="$show['threadicons']">
    <td class="thead" colspan="2">&nbsp;</td>
  <else />
    <td class="thead">&nbsp;</td>
  </if>
 
  <td class="thead" width="100%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
  <td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
  <td class="thead" align="center">$vbphrase[replies]</td>
  <td class="thead" align="center">$vbphrase[views]</td>
  </tr>
  $threadbits
 <else />
  <tr>
  <td class="alt1" align="center" colspan="$subscribedthreadscolspan"><strong>$vbphrase[no_subscribed_threads_to_display]</strong></td>
  </tr>
 </if>
 <tr>
  <td align="$stylevar[right]" colspan="$subscribedthreadscolspan" class="tfoot">
  <span class="smallfont"><a href="subscription.php?$session[sessionurl]do=viewsubscription&amp;folderid=all">$vbphrase[view_all_subscribed_threads]</a></span>
  </td>
 </tr>
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED THREADS ##############  -->
$template_hook[usercp_main_pos3]
<if condition="$show['forums']">
<!-- ############## SUBSCRIBED FORUMS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr>
  <td class="tcat" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>">
  <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('usercp_forums')"><img id="collapseimg_usercp_forums" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_forums].gif" alt="" border="0" /></a>
  $vbphrase[subscribed_forums]
  </td>
 </tr>
</thead>
<tbody id="collapseobj_usercp_forums" style="$vbcollapse[collapseobj_usercp_forums]">
 <tr align="center" valign="bottom">
  <td class="thead" width="2%">&nbsp;</td>
  <td class="thead" align="$stylevar[left]" width="80%">$vbphrase[forum]</td>
  <td class="thead">$vbphrase[last_post]</td>
  <td class="thead">$vbphrase[threads]</td>
  <td class="thead">$vbphrase[posts]</td>
  <if condition="$vboptions['showmoderatorcolumn']">
  <td class="thead" width="20%">$vbphrase[moderator]</td>
  </if>
 </tr>
 $forumbits
</tbody>
</table>
<br />
<!-- ############## END SUBSCRIBED FORUMS ##############  -->
</if>
$template_hook[usercp_main_pos4]
<if condition="$show['infractions']">
<!-- ############## NEW INFRACTIONS ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr>
  <td class="tcat" colspan="7">
  <span class="smallfont" style="float:$stylevar[right]">
    <phrase 1="$bbuserinfo[ipoints]">$vbphrase[x_points_total]</phrase>
    &nbsp; &nbsp;
    <a href="#top" onclick="return toggle_collapse('usercp_infraction')"><img id="collapseimg_usercp_infraction" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_infraction].gif" alt="" border="0" /></a>
  </span>
  $vbphrase[latest_infractions_received]
  </td>
 </tr>
</thead>
<tbody id="collapseobj_usercp_infraction" style="$vbcollapse[collapseobj_usercp_infraction]">
 <tr>
  <td class="thead">&nbsp;</td>
  <td class="thead">$vbphrase[post]</td>
  <td class="thead">$vbphrase[date]</td>
  <td class="thead">$vbphrase[expires]</td>
  <td class="thead" nowrap="nowrap">$vbphrase[points]</td>
  <td class="thead">$vbphrase[reason]</td>
  <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
 </tr>
 $infractionbits
</tbody>
</table>
<br />
<!-- ############## END NEW INFRACTIONS ##############  -->
</if>
$template_hook[usercp_main_pos5]
<if condition="$show['reputation']">
<!-- ############## NEW REPUTATION ##############  -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
 <tr>
  <td class="tcat" colspan="$reputationcolspan">
  <span class="smallfont" style="float:$stylevar[right]">
    <phrase 1="$bbuserinfo[reputation]">$vbphrase[x_points_total]</phrase>
    &nbsp; &nbsp;
    <a href="#top" onclick="return toggle_collapse('usercp_reputation')"><img id="collapseimg_usercp_reputation" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_usercp_reputation].gif" alt="" border="0" /></a>
  </span>
  $vbphrase[latest_reputation_received]
  </td>
 </tr>
</thead>
<tbody id="collapseobj_usercp_reputation" style="$vbcollapse[collapseobj_usercp_reputation]">
 <tr>
  <td class="thead">&nbsp;</td>
  <td class="thead">$vbphrase[thread]</td>
  <td class="thead">$vbphrase[date]</td>
  <if condition="$vboptions['showuserraters']">
  <td class="thead" nowrap="nowrap">$vbphrase[posted_by]</td>
  </if>
  <td class="thead">$vbphrase[comment]</td>
 </tr>
 $reputationcommentbits
</tbody>
</table>
<br />
<!-- ############## END NEW REPUTATION ##############  -->
</if>
$template_hook[usercp_main_pos6]
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
 <td width="100%">&nbsp;</td>
 <td align="$stylevar[right]">$forumjump</td>
</tr>
</table>


FReeSTER 08-14-2007 07:25 AM

Thank you Michelle. Works great with vb version 3.6.5 :)

**INSTALLED**

Lea Verou 08-14-2007 08:05 AM

Quote:

Originally Posted by Essam (Post 1316800)
its working great for my forum thank you

can you make the same idea for ( reported posts ) ?
only moderators forum can view the complaints in the usercp

I didn't understand, can you explain your idea in more detail? :)

Quote:

Originally Posted by cynthetiq (Post 1317071)
It's late I thought I'd get one more mod in before bed, and I picked yours because Karma is so awesome. I think this looks awesome too.

For some reason, this isn't showing up in the CP.

I am now using the enlighten template and also did the GTUserCP - Enhanced USERCP Interface + USERCP Menu mod as well if that makes differences.

your FAQ is quite thorough, so I looked at the ""$template_hook[usercp_main_pos1]" (or pos2-6, depending on which position you have selected)" and I see that I'm already using all of them.

Firstly ensure that there is something to be shown. Eg make a moderator of yours perform an edit on one of your posts, or turn the option "Show self actions" to yes and perform a moderating action on your posts yourself.
If none of this work, post a screenshot of your settings.

Quote:

Originally Posted by MrZeropage (Post 1317043)
good work on the update *thumbs up*

btw you should update your signature to v1.1.2 too ;)

LOL thanks, I'm so forgetful all the time :o

Thanks to everyone else who installed or nominated as well :) :)

Axel Foley 08-14-2007 09:10 AM

Quote:

Originally Posted by Michelle (Post 1316641)
Tell me one reason why someone would want to set that option to yes and I'll add it ;)

Thanks so much for the nomination!!! https://vborg.vbsupport.ru/https://vborg.vbsupport.ru/

Because there are people like me who don't like dynamic sections on a page appearing. I like the structure of a page being always the same and the data to be dynamic, don't like a table appearing only when there's data...:)

It would also solve you lots of problems telling users of this hack that can't see the table to make sure there's data...if they enable the option to always display the table even with empty data and the table in usercp doesn't come up, the problem is in the template part, not the data collection part of the hack...useful for debugging...:)

I gave you 2 reasons...please provide us this other option...:)

Ciao!

Lea Verou 08-14-2007 09:14 AM

Lol ok, you convinced me :D
I'll add it today ;)

cynthetiq 08-14-2007 11:09 AM

Quote:

Originally Posted by Michelle (Post 1317107)
Firstly ensure that there is something to be shown. Eg make a moderator of yours perform an edit on one of your posts, or turn the option "Show self actions" to yes and perform a moderating action on your posts yourself.
If none of this work, post a screenshot of your settings.

I dunno if it was because I was sleepy or what but it works as expected.

I was looking for it to appear as a menu option the left side as a selection and then a popup window.

Of course as I made more actions, it grew and I could see it plain as day.

Lesson: I shouldn't add mods and look at code when I'm sleepy.

Thanks this is AWESOME!

Lea Verou 08-14-2007 11:22 AM

Its normal to be confused, as a 700x700 attachment limit doesn't allow much detail in the screenshots :mad:
Thanks cynthetiq :)

cynthetiq 08-14-2007 12:26 PM

question: I moderated a thread by closing the thread. I then moved the thread to a moderators only forum.

The mod actions then are no longer visible as you described. Is there a simple way to at least show up to the point that the thread was moved to the moderators forum, and that's where the trail ends? Or is that impossible?

This way users will see that the thread was moved, otherwise, once it is moved to a moderator forum there is no way for them to see that it got moved there anylonger.

Am I making sense or am I still sleepy?

Lea Verou 08-14-2007 01:00 PM

I didn't understand a thing :o

cynthetiq 08-14-2007 01:25 PM

HAHAHAHa.... me either

okay if I have a forum that is restricted to registered users, the thread is moved to the restricted forum, the log is emptied since the query no longer allows the member to see the log for the thread.

is it possible to allow it to see the moderation until the move point in the arrow?

the edits I made in the Authorized Personnel Only Forum. then moved it back, once i moved it back I could see all modlog.

I was wondering if it was possible to see just up to the arrow.

Lea Verou 08-14-2007 01:29 PM

I'll try to think of a way, but not now, later.
For the time being, you can select not to apply forum permissions if you wish.

MrD 08-14-2007 05:09 PM

Hi,
nice Hack :D

Thx.

But one Question:
Why the TMS system is used by Andreas so rarely or not by the Codern. It brings nevertheless only advantages with installing, since the Template changes is omitted

Sorry for Translation, its from Babelfish :D

Lea Verou 08-14-2007 06:40 PM

Quote:

Originally Posted by MrD (Post 1317476)
Hi,
nice Hack :D

Thx.

But one Question:
Why the TMS system is used by Andreas so rarely or not by the Codern. It brings nevertheless only advantages with installing, since the Template changes is omitted

Sorry for Translation, its from Babelfish :D

Dunno, I prefer to write my own plugins for that in order to have more control over it, although from what I've seen I appreciate TMS a lot.
This hack does not require any manual template changes, so why are you asking this in this particular thread?

MrD 08-14-2007 08:09 PM

Hi,
Any Question:
I Edit a Thread from a Moderator, but he not become a Log of this Action.

To the TMS, which was one generally asks, which should not attack you . Separate it went around all Coder. You have also some Hacks, where one must change Templates, which degree is with updates vB depending upon number of installed Hacks much time-consuming.

Lea Verou 08-14-2007 08:13 PM

If you edited his thread, he will see the action in his usercp, not you. ;)

I know I have some hacks that one should change templates, but not my new ones.
I just don't have time to update the old ones.
Btw I was not attacking you, just asking.

MrD 08-14-2007 08:18 PM

Hi,
that i see this not in Modlog is OK, but he don?t see it.
Only Users see a Log in his CP.

The Usergroup is correct in ACP Only 3 Groups are in the field.
5,6,80 (Supermods,Admins,Mods)
on my CP i see a log of all mod actions. but no oone of my mods/SM see anyone in here cp

Admin
Attachment 68477

Mod with postings/threads how edited by me.
Attachment 68478

User
Attachment 68479

Lea Verou 08-14-2007 09:20 PM

Can I have a screenshot of your settings?
Btw the usergroupid of mods is usually 7, not 80.

@Axel Foley, sorry, I didn't find the time to add the setting today, so you 'll have to wait at least till tomorrow :o

Axel Foley 08-14-2007 09:33 PM

Quote:

Originally Posted by Michelle (Post 1317639)
Can I have a screenshot of your settings?
Btw the usergroupid of mods is usually 7, not 80.

@Axel Foley, sorry, I didn't find the time to add the setting today, so you 'll have to wait at least till tomorrow :o

Lea, don't worry and take all the time you want, it's August and I'm in vacation so I'm very relaxed in this period...:D

Thank you again for adding my requested option. :)

MrD 08-14-2007 09:41 PM

Hi Michelle,
my Modgroupid is 80
If i had Vb 2.x we delete the original group, and make a new one.
this is now the 80

Attachment 68482

Ryuk 08-15-2007 12:23 AM

70th post reserved..

NVM I Had to do that lol xD, GREAT mod, thanks michelle *clicks install*

Lea Verou 08-15-2007 08:00 AM

Quote:

Originally Posted by MrD (Post 1317652)
Hi Michelle,
my Modgroupid is 80
If i had Vb 2.x we delete the original group, and make a new one.
this is now the 80

Attachment 68482

Does this happen with all your mods?
Also, do these moderation actions appear normally in the moderator log (vBulletin's one) ?

MrD 08-15-2007 01:02 PM

Hello Michelle,
Yes, it´s by all my Mod´s.
the Log in the ACP is correct.

Threads/Post from a Mod, editing by another Mod oder admin where not displayed by the Mod who write the Post/thread.

Lea Verou 08-15-2007 01:07 PM

Quote:

Originally Posted by MrD (Post 1318088)
Threads/Post from a Mod, editing by another Mod oder admin where not displayed by the Mod who write the Post/thread.

I didn't understand that.
Write it in german, I'll have my boyfriend translate it ;)

MrD 08-15-2007 01:54 PM

Hi,
ok in German.
Wenn ein Mod einen Beitrag schreibt und dieser von einem Admin oder Mod bearbeitet wird, erscheint er nicht im Modlog von dem Beitragsersteller.

Bei den Moderatoren ist kein Modlog zu sehen, wenn ihre Beitr?ge bearbeitet werden.

Die Logfiles aus dem ACP/Modlog sind hingegen da.

Thanks :D

Lea Verou 08-15-2007 01:54 PM

Version 1.1.3
--------------------
-Added support for e-steki Featured threads
-Fixed a bug with the number of the actions showed (it was greater than the one specified)
-Added option to show/hide the table when it has nothing to display (requested)
-Fixed bug: Link to forum did not work due to a typo.

Lea Verou 08-15-2007 02:06 PM

Quote:

Originally Posted by MrD (Post 1318135)
Hi,
ok in German.
Wenn ein Mod einen Beitrag schreibt und dieser von einem Admin oder Mod bearbeitet wird, erscheint er nicht im Modlog von dem Beitragsersteller.

Bei den Moderatoren ist kein Modlog zu sehen, wenn ihre Beitr?ge bearbeitet werden.

Die Logfiles aus dem ACP/Modlog sind hingegen da.

Thanks :D

Hmm that's weird. If a mod becomes a user then he sees them normally again? If a user becomes a mod he stops seeing them?
If possible, try that with a test account and tell me what happened.

MrD 08-15-2007 02:41 PM

Hi,
so i installed the actually Version.
But the Same.

If a Posting or Thread from a Moderator, edit by Admin or Mod, the Moderator who write the Post/thread became no Log over this Action.

But new Problem,
i edit one of my Threads, but this Action are not displayed too.

Lea Verou 08-17-2007 01:41 PM

Notice:
If for a usergroup, the "Show edited by note on edited messages?" setting is set to No, then the edits that this usergroup performs (given that its a moderator/admin usergroup) will not show in the User ModLog unless a reason is provided for the edit.
The reason that this behavior occurs is that vBulletin, in that case, does not store the edits in the editlog table unless they have a reason. My hack reads the post edits from the editlog table (because the moderatorlog table doesn't provide enough info in this case - which is a vB bug I reported and will be fixed in 3.6.9).
This is what caused MrD's problem.


All times are GMT. The time now is 05:53 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01411 seconds
  • Memory Usage 1,880KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete