Limiting Title Character Limit?

xyphien

New Member
So, I'm tired of people having 3 rows of text for their title, I have to go through manually and dumb down the title so it fits on one line. How would I go about making the title character limit 35 characters? There is an option for the description, but not for the title.
 

xyphien

New Member
in your template use: {$title, length=120}
Under which template? I've added it under log in form, and nothing worked. You can still enter an unlimited amount of characters. I changed it down to {$title, length=36} however, as that's all I want possible in the title, but it's not working. Where exactly do I add this code too?
 

Mark

Administrator
Staff member
the title is never displayed on the login form.

Under which template? I've added it under log in form, and nothing worked.
the title is never displayed on the login form, I think you meant the join form... in that case you can simply add the maxlength HTML attribute in your title field in your join_form template.

http://www.w3schools.com/tags/att_input_maxlength.asp

Where exactly do I add this code too?
This tag is intended to be used anywhere you output the title, so table_top_row template, table_row, stats templates just to name a few.

Usage: simply replace {$title} with {$title, length=60}

Your users can still insert long titles, but they will automatically be truncated so as to not make your layout look messy.
 

xyphien

New Member
This tag is intended to be used anywhere you output the title, so table_top_row template, table_row, stats templates just to name a few.

Usage: simply replace {$title} with {$title, length=60}

Your users can still insert long titles, but they will automatically be truncated so as to not make your layout look messy.
This is what I was confused about. Thank you so much, doing all this now.

I went with the first option rather than the second. Seemed a bit pointless to do the second one as you'd then have to go into the plugin files and change that accordingly too, rather than simply adding , maxlength="36" to the register form.
 
Last edited:

Mark

Administrator
Staff member
It's sad, we help you like this, provide you with a good product and you defraud us by charging back your $29.

Unreal, how do you sleep at night stealing from hard working people like that....
 

Basti

Administrator
Staff member
Yea really, dont understand this. claim "unauthorized transaction" when he clearly had the product.

This is what makes me hate the internet sometimes. People think they can do whatever they want.
Wonder if he would also claim such things when he hire a electrician or any other real world company.
 
Last edited by a moderator:

Mark

Administrator
Staff member
Doing this in the real world would result with a punch to the mouth and/or a trip to the police station.

I will give xyphien 48 hours to make this right, hoping this is all a misunderstanding :) then if he does nothing, I may have some fun with him and his web presence.
 
Top