vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Displaying both Custom UserTitle and Usergroup User Title / User Title (https://vborg.vbsupport.ru/showthread.php?t=268265)

Crad 08-09-2011 09:17 PM

Displaying both Custom UserTitle and Usergroup User Title / User Title
 
Hey everybody,

Currently, our board supports user-defined Custom User Titles for every member.

The problem is, we also want to display Administrator and Moderator Usergroup User Titles, and from my understanding Custom User Titles overwrite Usergroup User Titles.

We could just use User Ranks for this, but those are already in use.

So we want to display:

User Title
Custom User Title
User Rank

I was hoping I could just make a template edit to the postbit template, and add:

PHP Code:

<span class="usertitle">{vb:raw post.customusertitle}</span

But of course, $post['customusertitle'] doesn't exist. And I'd still need to stop the Custom User Title from superseding the User Title.

So could somebody point me in the right direction?

Sorry for the open-ended question, I'm new to modding vBulletin.

kh99 08-09-2011 10:49 PM

I think this will work:

HTML Code:

<vb:if condition="$post['customtitle']">
<span class="usertitle">{vb:raw post.displayusertitle}</span>
</vb:if>


if you put it in above the existing user title.

Crad 08-10-2011 12:14 AM

Wow! Thanks for the response: I didn't realize it was post.displayusertitle!

That works perfectly! Thank you very much!

Nickie 09-01-2013 01:21 PM

I do realize that I am bumping a post that is very old but I can't seem where to post this line. Does anyone know if it goes in the postbit template under your current style?

RickyH 09-02-2013 10:26 AM

It will go in postbit_legacy template, if you just find where you want to display it and stick it in there.

Chivster 09-03-2013 04:40 AM

Question, will this make it so, that no matter how many usergroups you have, it will show all their usertitles?

As im currently placing custom usertitles, and its abit annoying at last to hold organized.

RickyH 09-03-2013 10:21 AM

Quote:

Originally Posted by Chivster (Post 2442760)
Question, will this make it so, that no matter how many usergroups you have, it will show all their usertitles?

As im currently placing custom usertitles, and its abit annoying at last to hold organized.

If you have it on "Stack Usertitle" it will stack all usertitles, otherwise it will just show the display group.


All times are GMT. The time now is 09:25 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.01150 seconds
  • Memory Usage 1,727KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_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