vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I need to use a <nobr> command in 1 users name? (https://vborg.vbsupport.ru/showthread.php?t=49528)

Gutspiller 03-02-2003 04:23 AM

I need to use a <nobr> command in 1 users name?
 
but how? :paranoid:

They have a name that I need to not be broken into two lines. How do I get it so in the postbit it shows their full name on one line? I figured a nobr command would be the easiest way to do this.

Can somebody help me?

Dean C 03-02-2003 10:40 AM

I don't know if you can format the username in admin cp using html but you can try giving it a shot. Add the tag in the username in the ACP

- miSt

Gutspiller 03-02-2003 09:35 PM

Quote:

Originally posted by Mist
I don't know if you can format the username in admin cp using html but you can try giving it a shot. Add the tag in the username in the ACP

- miSt

Already tried it. It prints out <nobr> in the name. :(

Boofo 03-02-2003 10:12 PM

Just add nowrap to the TD line where you have the username in the postbit.

Erwin 03-03-2003 12:08 AM

In your postbit template, find:

$post[username]

And replace with:

<nobr>$post[username]</nobr>

Gutspiller 03-03-2003 03:53 AM

Read the thread title again. ****1**** name, not all. :dead:

Erwin 03-03-2003 05:06 AM

So you want all other names to break into 2 lines, but one name to stay on one line?

Open functions.php.

Find:

PHP Code:

    $post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]); 

Underneath, add:

PHP Code:

if ($post[userid]==xx) {
$post[username]="<nobr>$post[postusername]</nobr>";


Replace xx with the userid of the user you want the username to stay on the same line. That should do it.

And by the way... fix up that bad attitude of yours. Boofo and I are trying to help you here.

Gutspiller 03-03-2003 01:40 PM

Quote:

Originally posted by Erwin


And by the way... fix up that bad attitude of yours. Boofo and I are trying to help you here.

Not my fault neither of you read the title to the thread. :rolleyes:

Boofo 03-03-2003 01:52 PM

I don't know about Erwin, but I'll definitely remember that the next time I see that you need help. ;)

Gutspiller 03-03-2003 03:27 PM

Quote:

Originally posted by Boofo
I don't know about Erwin, but I'll definitely remember that the next time I see that you need help. ;)
Here ya go https://vborg.vbsupport.ru/external/2003/03/5.gif

:squareeyed:


All times are GMT. The time now is 12:06 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.01110 seconds
  • Memory Usage 1,737KB
  • 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
  • (2)bbcode_php_printable
  • (3)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
  • (10)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