![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||
Reduce font size on Long Username to fit Postbit (legacy)
![]() Developer Last Online: Jan 2021 ![]() ![]() ![]()
I found that when I switched to the "legacy" postbit, some of the usernames wrapped (if they were particularly long:
![]() So I made a mod for this which contains 2 steps: a new plugin and template edit. Less than 5 minutes! 1. Create a plugin for hook location memberaction_dropdown. This puts the length of the username into a variable the template can use.
2. Modify template memberaction_dropdown Font size will be determined by you--what will fit in your postbit. Find:
and replace with:
Result: ![]() Note: If the username has an html wrap ($memberinfo['musername']) I account for the html by adding 10 characters to the threshold. You'll have to play with this variable depending on your HTML wraps. HTML wraps are found in Usergroup Settings. Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
Comments |
#2
|
|||
|
|||
Great mod, thanks for sharing! Works like a charm, 5 stars
![]() No members have liked this post.
|
#3
|
||||
|
||||
That is nice
__________________
Free Online Reading Forum Latest Fashion & Styles Photoshop Tutorials for Designers Blog for Poems, News & Articles No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:32.