vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Custom titles PLUS Default titles (https://vborg.vbsupport.ru/showthread.php?t=79640)

Ala21 04-08-2005 11:37 PM

Custom titles PLUS Default titles
 
Hello,

sorry if this has been asked elsewhere, after a quick research I couldn't find anything on this except a slight manual modification to make in the custom title field to have another line (Gundam Pilot<br><b>Administrator</b>).

What I'm trying to do is getting 1 (or more) user titles displayed under the username.

For example, let's say I am moderator of Forum Mails, i want this to show up in posts:

Ala21
Forum Mails Moderator (unchangeable)
Senior Member (default title based on posts or custom title chosen by the user)

If I moderate both Forum Mails and Forum Receipts then it would go like this:

Ala21
Forum Mails Moderator
Forum Receipts Moderator
Senior Member (or custom title)

Obviously the Administrator specifies what the unchangable title(s) is/are with any text so that this could become

Ala21
Anything [unchangeable]
Senior Member

So basically getting one or more user titles set by the administrator that are unchangeable PLUS the default or custom title shown in the posts. I've seen this done in vb2, maybe with a hack. Do you know how to do this in vb3? I am a new at this so please keep it simple :)

Snow 04-09-2005 11:30 AM

I use usergroup ranks and user titles combined to achieve something similar... i.e. I have an unalterable Rank image for moderators etc. and then they can use a custom title as well.

I suppose another quick and easy way to achieve the above would be to use custom profile fields. Create the profile field as you require it, e.g. editable by user or not and make a note of the field ID then in your postbit template find
Code:

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
and add
Code:

<div class="smallfont">$post[fieldX]</div>
between the <if> tags for each custom field you want (where X= field ID number) e.g.
Code:

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div>
<div class="smallfont">$post[field7]</div></if>

I'm sure there's a better way to do this, but I'm not a coder so this is the best I can do. :rolleyes:

Ala21 04-09-2005 04:47 PM

Thank you!


All times are GMT. The time now is 05:26 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.00980 seconds
  • Memory Usage 1,715KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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