vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Usergroup image (https://vborg.vbsupport.ru/showthread.php?t=202070)

Dismounted 02-07-2009 04:55 AM

The usergroup title can be HTML, AFAIK.

King Justice 02-11-2009 09:28 PM

Quote:

Originally Posted by Dismounted (Post 1736787)
The usergroup title can be HTML, AFAIK.

That'll still make the image above teh rank image and I want it below.

Lynne 02-11-2009 10:14 PM

Quote:

Originally Posted by King Justice (Post 1741257)
That'll still make the image above teh rank image and I want it below.

Then simply swap the order of the two lines:


HTML Code:

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


King Justice 02-12-2009 02:15 AM

Apparently you can't put HTML code, or an image, in user title for usergroups...I tried and it didn't work.

TigerC10 02-12-2009 12:40 PM

Yes you can, you just have to get the image location correct. I'm running the latest vB and I have images in the user titles for the forum staff.

Haltech 02-13-2009 08:20 PM

How did you use it? On 3.6, i had a custom user title i was able to use with the addition of their user title. Migrating to 3.7.x killed this mod and i would like to have a user image rank for donators and staff.

TigerC10 02-13-2009 09:17 PM

Once you make the change to the usergroup title, you have to update everyone's titles and ranks.

AdminCP > Maintenance > Update Counters > Update User Titles and Ranks


Once you've done that you just need to remove the custom title of whoever's in that usergroup. Alternatively, you can just include the HTML for the image in the custom usertitle.

Or you could set a rank for the usergroup such that everyone is awarded the rank.


@Haltech - I'm not sure what mod you're talking about, but I think that if you make your own plugin, you can fix that problem of yours...

Product: [whatever, vBulletin or something else or make your own, doesn't matter)
Hook Location: fetch_musername
Plugin Title: Put group titles and user titles together
Code:

$user['usertitle'] = $user['displayusertitle'].'<br />'.htmlspecialchars_uni($user['usertitle']);
That should display the group title above the custom user titles. In theory. I haven't tried it. If you point me to the mod that broke I might be a little more helpful.


All times are GMT. The time now is 01:53 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.01672 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete