Previous Thread
Next Thread
Print Thread
Rate Thread
#103705 04/05/2002 12:07 PM
Joined: Mar 2002
Posts: 99
Member
Member
Offline
Joined: Mar 2002
Posts: 99
i would like the moderators to not wrap when the name is too long. it only makes my forum that much taller which is kinda ugly since i would like all my forums to be the same height.

thank you.

Sponsored Links
Joined: Mar 2002
Posts: 99
Member
Member
Offline
Joined: Mar 2002
Posts: 99
ok, i tried to do the "nowrap" thing and all that happened was it made the moderator column real wide. i thought there would be a way to make the person's name have a "..." at the end of it if it was too long, like the way the "last post" column does.

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ok, its pretty easy to do, all you have to do is extract as much of the name as you want, and chop off the rest, here is an example which should help you

$ModName = "This_is_a_really_long_moderator_name";
$ModName = substr($a, 0, 15) . "...";

That will make the mod name 15 characters long and add a ... to the end, eg
This_is_a_reall...

Hope this helps you out.


I can't afford a good signature editor frown
Joined: Mar 2002
Posts: 99
Member
Member
Offline
Joined: Mar 2002
Posts: 99
ahhhh...thanks a lot for your help man. one thing though...if i have more than one moderator per forum will it do the same for each mod or assume that all the names equal one which would be the 15 characters?

thanks

Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
Moderator / Code Fixer
Offline
Joined: Oct 2000
Posts: 743
Ahh no, what you would need to do is put that in a a foreach loop, so it loops through the moderators array and shortens their nick names prior to printing them on the screen.


I can't afford a good signature editor frown
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
• Shock Hosting
• Stable Host
• bluehost
• InterServer
Visit us on Facebook
Member Spotlight
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 253
Joined: January 2000
Forum Statistics
Forums63
Topics37,583
Posts293,957
Members13,826
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2993
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 3
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20261026)