Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Reduce font size on Long Username to fit Postbit (legacy) Details »
Reduce font size on Long Username to fit Postbit (legacy)
Mod Version: 1.00, by jamoss (Coder/Designer) jamoss is offline
Developer Last Online: Jul 2019 I like it Show Printable Version Email this Page

vB Version: 4.2.2 Rating: (1 vote - 5.00 average) Installs: 5
Released: 04 Apr 2015 Last Update: Never Downloads: 0
Supported Uses Plugins Template Edits Re-usable Code  

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.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


2. Modify template memberaction_dropdown
Font size will be determined by you--what will fit in your postbit.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace with:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 05 Apr 2015, 08:48
Fields's Avatar
Fields Fields is offline
 
Join Date: Jun 2014
Real name: Moritz
Great mod, thanks for sharing! Works like a charm, 5 stars
Reply With Quote
  #3  
Old 03 Aug 2015, 05:18
friendlymela's Avatar
friendlymela friendlymela is offline
 
Join Date: Dec 2012
Real name: Zeeshan Shams
That is nice
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 17:36.

Layout Options | Width: Wide Color: