The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post Timestamp Visibility
Is there any mod that would allow only admins or select groups to see the timestamp of a message?
|
#2
|
||||
|
||||
I've never heard of one. I would imagine you could just put a condition around the timestamp in the postbit. Or write a plugin to do the same thing (with no template edit)
hook location - postbit_display_complete PHP Code:
|
#3
|
|||
|
|||
Thank you, I will try it.
--------------- Added [DATE]1319899447[/DATE] at [TIME]1319899447[/TIME] --------------- I'm sorry, I looked for the lines above, posttime and postdate, but couldn't find them. Are they in the postbit template. Am I looking in the right place? |
#4
|
|||
|
|||
I found it, applied it by creating the plugin, but the time and date wasn't visible for anyone.
|
#5
|
||||
|
||||
It works for me, what was the exact code you used?
|
#6
|
|||
|
|||
Exactly as she had in the example, tried it with '6' and '22' my webmaster usergroup.
PHP Code:
|
#7
|
||||
|
||||
6 is the admin usergroup- usually. As it was written ONLY users in group 6 should see the date.
|
#8
|
|||
|
|||
Maybe it's because I use two groups, Administrators and Webmaster. Will try it in a few.
|
#9
|
||||
|
||||
This would be the line for both groups:
Code:
if (!is_member_of($vbulletin->userinfo, 6, 22)) |
#10
|
|||
|
|||
Still the same, no matter which group I put in there, it disappears for everyone.
When I make the plugin inactive, it comes back. When I take the Date line out of it, just the date shows. I must be missing something. Sorry to be such a bother. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|