+ Reply to Thread
Results 1 to 4 of 4

Thread: Character Limits

  1. Join Date
    Oct 2006
    Posts
    4

    Character Limits

    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?

  2. Join Date
    Aug 2004
    Posts
    781

    Re: Character Limits

    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.

  3. Join Date
    Jun 2006
    Posts
    6

    Re: Character Limits

    What I did to cover this on my site was use a hidden overlay div, like this:

    Code:
    <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!

  4. Join Date
    Aug 2004
    Posts
    781

    Re: Character Limits

    That is a clever solution.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts