vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   "Off duty" administator... (https://vborg.vbsupport.ru/showthread.php?t=99320)

DannyMilner 10-25-2005 11:21 PM

"Off duty" administator...
 
When a admin is off duty, I wan't it to show some way...


Any ideas on how I can do it?

Thanks ;)

peterska2 10-25-2005 11:23 PM

Like when they are posting but not as admin or when they are offline?

DannyMilner 10-25-2005 11:24 PM

Well,

So if I was off duty and a admin on this forum it would look like this...

DannyMilner
Member

Join Date: Aug 2005
Posts: 10
Location: Leeds
Admin status: Off duty

vB Version: 3.5.0
Style: Smooth Blue

peterska2 10-25-2005 11:32 PM

You could do it by creating a profile field as below

Name: Admin Status
Options: On Duty
Off Duty
Set Default: Yes, No Blank First Option
Editable by User: No
Required: No


Then use
Code:

<if condition="$post[fieldx]">Admin Status: $post[fieldx]</if>
where x is the field id number of the above created profile field.

This will be required to be changed via the ACP user manager.

There more than likely is another way of doing it but this surely would work.

DannyMilner 10-25-2005 11:42 PM

Thanks,

Would if be possible to do like a php "if"
So like if a admin show it in user cp...?

Thanks for all your help :)

peterska2 10-25-2005 11:43 PM

possibly. Unless someone gets to it first, I'll see what I can rumble up. It won't be till the back end of the week though coz I'm quite busy.

DannyMilner 10-25-2005 11:50 PM

Okay mate, as I said thats for your help :)


If anyone else knows feel free to speak up :ninja:


All times are GMT. The time now is 10:45 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.01018 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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