View Full Version : I need to use a <nobr> command in 1 users name?
Gutspiller
03-02-2003, 04:23 AM
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
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:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
Underneath, add:
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
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
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:
Dean C
03-03-2003, 03:41 PM
People are trying to help you here and have done so. Whether or not they gave you the correct answer is not the point. They tried to help you and in the end Erwin gave you the answer. For you to show such lack of gratitude and arrogance will not only put Boofo of helping you in the future but me also.
- miSt
Boofo
03-03-2003, 03:43 PM
Go get him Mist! ;)
Gutspiller
03-03-2003, 03:50 PM
Originally posted by Mist
People are trying to help you here and have done so. Whether or not they gave you the correct answer is not the point. They tried to help you and in the end Erwin gave you the answer. For you to show such lack of gratitude and arrogance will not only put Boofo of helping you in the future but me also.
- miSt
You guys are so up tight. Let me loosen ya up a little.
https://vborg.vbsupport.ru/external/2003/03/4.gif
I actually wanted to see how far you could take a joke. Not very far I see.
Thanks Erwin for anwsering my question. And the only thing I said was that you didn't read my thread title correctly and you jump all over me. Who's the one that's really rude here?
Dean C
03-03-2003, 05:55 PM
Well i'll let this drop but i found the way you did this arrogant. Instead of saying thanks first you posted a picture of a penis! Come on.... :p
- miSt
Erwin
03-03-2003, 06:26 PM
We remember who appreciates our help, and who doesn't. That is all I have to say.
Boofo
03-03-2003, 06:29 PM
And well said it was! ;)
Gutspiller
03-03-2003, 06:52 PM
Originally posted by Erwin
We remember who appreciates our help, and who doesn't. That is all I have to say. :nervous: I appreciates your help. I'm just a jerk sometimes. :cheeky:
Erwin
03-03-2003, 06:55 PM
It's okay. :)
Boofo
03-03-2003, 07:05 PM
This time! :p
Gutspiller
03-03-2003, 07:52 PM
Originally posted by Boofo
This time! :p I don't fear non-moderators. :bandit:
Gutspiller
03-08-2003, 04:09 PM
Originally posted by Erwin
So you want all other names to break into 2 lines, but one name to stay on one line?
Open functions.php.
Find:
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
Underneath, add:
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.
This doesn't seem to work. I tried it, since I just had the chance to and is what it did was when I changed his name from Giraffe Hunter back to Giraffe }{unter it will show it as just that. But when I make the changes to my functions file and upload it and refresh the page, his name goes back to the name with an "H" instead of "}{".
I don't know why the heck it does that though?
Anybody offer more help?
Erwin
03-09-2003, 01:18 AM
You can't use { symbols inside PHP code for a username - it will screw up the PHP code since PHP uses { and } for it's codes.
Erwin
03-09-2003, 01:19 AM
Make sure you change xx to the userid as well.
Gutspiller
03-09-2003, 05:26 PM
Originally posted by Erwin
Make sure you change xx to the userid as well.
I did change the xx to his user id, but he has always had the }{ in his name and there hasn't been problems before... :confused:
If they do cause problems, shouldn't the characters have been blocked when he registered? :surprised:
Erwin
03-09-2003, 10:24 PM
What I mean is that you didn't pop his name in the code, right? You only changed the userid, and copied the code straight to functions.php where I said? If so, it should work then. I thought you put that username in the code as well...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.