vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Post-"edit-notes", invisible? (https://vborg.vbsupport.ru/showthread.php?t=128620)

Luggruff 10-09-2006 02:56 AM

Post-"edit-notes", invisible?
 
Can't find anywhere to hide "post edited by".
So I wonder if there's some quick and clean way to do it..
(many of my moderators get BS as our users can see exactly who edited their post, and even if warns are anonymous, they know who warned them)

-_-

AnkisethGallant 10-09-2006 04:35 AM

I think what you're looking for is in the postbit template.

There is a certain section that is a bit over halfway through that looks like:
Code:

<if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>

Seems to me if you remove that entire section of code then no edited remarks will show up. Not 100% sure, but it looks like that should do the trick.

Luggruff 10-09-2006 04:52 AM

Well, that's just a posible temporary soloution =\
If anything's done to that part, it would mean that you can't even see when you last edited your own posts.

AnkisethGallant 10-09-2006 07:39 AM

Ah, you never said you wanted to keep the regular edits, just said that you wanted to hide the edited by. I vaguely remember something of that sort, I'll check it out and see what I can find.

"Show edited by note on edited messages?"

In the Usergroup Manager, a setting for that usergroup, can make it so that when moderators edit a post it will not be shown. However, moderators who edit their own posts still will not have this show up, so another possible solution.

I haven't gone through my tables and stuff well enough to check exactly, but I think this may be the source, in editpost.php

Code:

        /*insert query*/
                        $db->query_write("
                                REPLACE INTO " . TABLE_PREFIX . "editlog (postid, userid, username, dateline, reason)
                                VALUES ($postinfo[postid], " . $vbulletin->userinfo['userid'] . ", '" . $db->escape_string($vbulletin->userinfo['username']) . "', " . TIMENOW . ", '" . $db->escape_string($edit['reason']) . "')
                        ");

This is where it puts it into the editlog. If you do a check to see if it is a mod and they do not own the post, then have it skip that. Otherwise let it go ahead and change the log to have the post be edited.


All times are GMT. The time now is 02:13 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
  • Page Generation 0.01047 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete