vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Hide "Edit By ..." Note For Admins (https://vborg.vbsupport.ru/showthread.php?t=97666)

tnguy3n 10-04-2005 10:00 PM

Hide "Edit By ..." Note For Admins
 
Hide "Edit By ... " For Admin(s)
Author: tnguy3n
Site: http://www.vbviet.org
Another simple template mod to hide "Edit By ..." note for superadmin or admin group. No file hack required, just add one simple conditional to your postbit template to do the trick.

Open postbit(_legacy),

FIND:
HTML Code:

                <if condition="$show['postedited']">
REPLACE WITH:
HTML Code:

                <if condition="$show['postedited'] AND ($post[userid] != 1)">
<!-- That's it! -->


If you want to hide "Edit By ..." note for the whole group, replace ($post[userid] != 1) with
!is_member_of($post[usergroupid],6)
where 6 is groupid which you want to hide editby notes, and you should adjust it to your own.

Boofo 10-05-2005 10:00 PM

There isn't a setting for this in vBulletin anymore?

tnguy3n 10-05-2005 10:02 PM

Is it one of vbulletin setting options?

Boofo 10-05-2005 10:04 PM

It used to be, I thought. I haven't really looked at 3.5 that deep.

Andreas 10-05-2005 10:34 PM

It is.
Usergroup Manager / General Permissions / Show edited by note on edited messages?

tnguy3n 10-05-2005 10:57 PM

Darn, i didn't see that option when I last checked vBulletin Settings Options.

Well, i guess this mod is still useful if someone want to limit hiding "Edit By ... " note to one individual, say super-admin. :glasses:

Jenta 10-05-2005 11:13 PM

sometimes even when you turn off show edited by you want to put a reason that will show why you modified a post
this will break that ability

ex: last edited by Administrator Reason: removed warez link - dont post it again!!!!

Boofo 10-05-2005 11:15 PM

Quote:

Originally Posted by KirbyDE
It is.
Usergroup Manager / General Permissions / Show edited by note on edited messages?

I knew it had to still be there. Thanks Kirby. ;)

Cryo 10-16-2005 05:47 PM

Quote:

Well, i guess this mod is still useful if someone want to limit hiding "Edit By ... " note to one individual, say super-admin
You can set who triggers an "edited by" message per group. So you could hide it for super admins, but still allow it to show for all others. Like someone mentioned above, this also breaks the ability to add an edit reason.

ayaam 11-26-2005 09:52 PM

thanks ,, smart

Mudvayne 01-21-2006 02:03 PM

I almost installed it ! A good thing that i read the whole one :P .. . Thanks Anyway !

Chadi 04-12-2006 08:55 PM

This did not work for me. I applied to postbit and postbit legacy, still shows my edit (I edited a post to test, after applying)

I also enabled in usergroup managed (after I edited the post). Any way I can remove it on one particular post at least?

MysticMoon 04-16-2006 02:33 AM

Thank you :)
I did the "Usergroup Manager / General Permissions / Show edited by note" way & it would still show when I edited a message.

Now thanks to you it's finally gone :)

Stifmeister2 05-06-2006 01:07 AM

I can't get it to work.. :(

I did the template edit but it still displays "Edited by...". :( I have 3.5.2.

babile 05-10-2006 08:05 AM

good..!
i think when you set this option by user id...will be more usefull

thank you tnguy3n

trinigamers 05-10-2006 10:18 AM

thanks!

J-TEK 05-16-2006 04:28 AM

The "1" in
Code:

($post[userid] != 1)
is the userid for the admin right? Just making sure before I mess something up, lol.

Quarterbore 05-19-2006 07:02 PM

This is not working on my site either as posted above.... As others have said, the "Edited By" still shows up in the posts....?

I ended up using the following conditional instead....

Code:

                <if condition="$show['postedited'] AND ($post[edit_username] != 'Quarterbore')">
It looks to me like in 3.5.2. that the $post[userid] does not work? I did not check the database to see if there is a field for userid in 3.5.2

Also, someone above asked about the userid... The userid is the member ID that you don't want to show up... UserID #1 is usually your SuperAdmin account (if you didn't change that)...

EDIT 2:

Perhaps I didn't understand... I want this so I can edit OTHER PEOPLE'S ads when necessary without them knowing that I did it as the Super Admin... Perhaps the $post[userid] only means that edits do not show up in teh superadmin's posts (regardless of who did them) ... If so, I don't like that idea!

Ntfu2 05-20-2006 12:32 AM

[QUOTE=J-TEK]The "1" in
Code:

($post[userid] != 1)
is the userid for the admin right? Just making sure before I mess something up, lol.[/QUOTE

Assuming that the admin is the first account signed up on the board.

Like, my userid is 7, if you change that to usergroup(6 by default) instead of userid, it'll include all admins

mof9336 05-26-2006 04:09 AM

hell yea it works thx

JimLink 09-01-2006 02:13 AM

Works in 3.6 gold too.

Mikecp421 10-03-2006 11:48 PM

mine still shows and its turned off in my primary usergroup and I even tried this conditional;

Quote:

<if condition="$show['postedited'] AND ($post[edit_username] != 'Quarterbore')">

MediaHound 09-21-2007 02:25 PM

We have a thread going for doing this on a per post basis, figured I would cross link it with here:
https://vborg.vbsupport.ru/showthread.php?t=157926


All times are GMT. The time now is 04:47 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.01167 seconds
  • Memory Usage 1,759KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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