vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Use of language phrases in user ranks/titles (https://vborg.vbsupport.ru/showthread.php?t=183415)

Yusho 06-24-2008 05:09 PM

Use of language phrases in user ranks/titles
 
Hey all,

we are hosting an international forum in 3 languages and want to show the user rank and/or title in the currently selected language. Is there any way to do this?

$vbphrase[xxx] does not work there... :(

Can this be solved by writing a plugin? If so which hook is used and what variables need to be rewritten?


Thanks in advance!

Dismounted 06-25-2008 06:57 AM

You will need to not use the User Ranks system, but use conditionals in the postbit template in place of it.

Yusho 06-25-2008 07:43 AM

Creating conditions for 10 ranks and 3 languages sounds difficult... :/
In addition: This Modification needs to be done in the many other templates too, like the user profile.

Does anyone know if this can be done with a plugin?

Dismounted 06-25-2008 09:18 AM

It's probably possible, you'll just need to find where it is evaluated, then change it in the nearest plugin.


All times are GMT. The time now is 03:11 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.02081 seconds
  • Memory Usage 1,706KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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