View Full Version : Category length restriction
DarkChaz
08-20-2005, 07:05 PM
Is there anyway to increase or remove the 250 length restriction on the categories when inputing them yourself in the admin area?
Thank you
Ap0s7le
08-20-2005, 07:47 PM
I don't understand what you want, sorry :)
The only restrictions in the admin are on the TITLE and URL_TITLE, both are set to a max of 100 characters because that's all the DB was setup to handle.
A max isn't set with the description, but it can only take up to 255 characters due to the DB.
If you want this changed, go into something like phpMyAdmin and set that field as TEXT.
I do hope this at least partially answered your question.
If not please feel free to ask again until it smacks me in the head ;)
Later
-Casey
vkaryl
08-20-2005, 11:35 PM
I've just gone looking in the database to see where it might be possible to increase this figure as far as description length/characters. So far I've not found anything which jumps right out.
The description row is coded DESCRIPTION [varchar (255)]. I don't see anywhere offhand to change that hard-coded 255-character limit. My guess is you could do something with a query, but I'm no mySQL whiz, so I don't know what that might be. I haven't dug into the mySQL docs yet. If I come up with something, I'll post back.
[As an aside: in my experience, people won't read more than a couple of sentences anyway. It might be a better idea to pare your categories and descriptions down to their essences - grab people by the short hairs in the beginning, y'know?]
DarkChaz
08-21-2005, 04:47 AM
good advice, i agree. I actually am keeping it down to about 2 or 3 sentences. the problem comse in when i put HTML coding in the desciption such as "<font size="1">
" or something like that. Thank you very much for looking into it for me. I would really appreciate if it could be figured out.
Thanks very much
Charles
vkaryl
08-21-2005, 05:02 AM
Um. You need to handle that in the CSS instead of inline.... that will save a lot of keystrokes right there.
If you want me to take a look at your specific setup, you could post an addy.
vkaryl
08-21-2005, 06:26 PM
Okay, had some time to look at this further. In main.css, you should find #links p. At default, looks like this:
#links p {
margin: 0 0 7px 0;
}
As your for instance in your last post, you would add to the above, and come up with something like this:
#links p {
margin: 0 0 7px 0;
font-size:80%;
}
and tweak the sizing to fit your requirements.
You'll still have to insert
where you need it, but putting the styling into the css will save you a lot of characters....
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.