PDA

View Full Version : Character Limits



ecko
10-14-2006, 12:23 AM
I am using the news script in multiple ways. I am using a couple of the templates. I have my main template for the news of course. Then I have template #2 for a latest thread section on my site. What I would like to do is limit the amount of characters on the "Title" of the thread for template #2 (Latest Thread Section)

How would I go about doing this?

Patrick
10-14-2006, 12:50 AM
Unfortunately the current implementation of the character limit is on a script level. This is due to previous versions of the script that did not account for multiple templates. I plan on moving the character limit feature (as well as some other features) into the template data in the next version (and no, I do not know when that will be).

That means that you currently have two options:
a) You can get a PHP coder to implement the limitation manually.
b) You can install another copy of the script and place the limitation there.

Both options are messy I know.

lover
10-14-2006, 03:44 AM
What I did to cover this on my site was use a hidden overlay div, like this:


<div style="overflow: hidden; width: 175px;" align="left">php include code for script</div>

That way, if a headline's topic title is a very long string without a space, it won't force the layout out of wack, it'll just cut it off after 175px. It looks fine for normal titles with average spaces, it just keeps going on a new line.

Hope this helped!

Patrick
10-14-2006, 11:16 AM
That is a clever solution.