Web Analytics Made Easy -
StatCounter Limiting the size of specialized topic titles - CodingForum


No announcement yet.

Limiting the size of specialized topic titles

  • Filter
  • Time
  • Show
Clear All
new posts

  • Limiting the size of specialized topic titles


    I made a portal for my forum..all custom.

    Take a look so you know what I'm reffering too. http://www.volconvo.com

    See the last post under each forum catagory? The one with the little arrow to the left of it?

    How can I limit how large those titles get on my page? In other words, how can I make it so a LONG BIG FAT TITLE THAT IS BIG

    becomes: LONG BIG FAT TITLE...

    Is there any way to do this?

    Here's my code:

        <!--TEMPLATE: FORUM INFO TD--><b><font face="arial" size="2"><a href="{ibf.script_url}showforum={$forumdata['id']}"><span>{$forumdata['name']}</span></a><br /></font></b>
    <font face="arial" size="1">{$forumdata['last_post_time']}<b><br />
        <a title="Go to the first unread post" href="{ibf.script_url}showtopic={$forumdata['last_post_topic']}&view=getnewpost"> <img alt="Go to the first unread post" border="0" src="http://www.volconvo.com/lastpost.gif" width="10" height="7" /></a><a title="Go to the first unread post" href="{ibf.script_url}showtopic={$forumdata['last_post_topic']}&view=getnewpost" style="color: #000000"><u>{$forumdata['last_title']}</u></a><br />
        <font face="arial" size="1">by: <a href="{ibf.script_url}showuser={$forumdata['last_poster_id']}" style="color: #000000">{$forumdata['last_poster_name']}</a></font>
    The second go to first unread post show topic line is the line of text.

    Thanks for any pointers.

  • #2
    was I clear and it's just not possible, or unclear?


    • #3
      Er... where?

      I guess it was unclear what you're meaning, at least I couldn't find it.
      Anyway, I think a bit of PHP could do something like that: limit a text string to a certain length, breaking it off after the nearest space before the maximum length and substitute the cut off part with three periods. Make sense?


      • #4
        IPB has that option doesn't it?? It should! Anyways if you are up to a bit of modding you could easily make it work like that.
        Omnis mico antequam dominus Spookster!


        • #5
          well..since I was unclear...I'll attatch an immage to illustrate what I'm saying:
          Attached Files


          • #6
            Well, you can do it in PHP,

            PHP Code:
            $var subsrt($var,0,20)."..."
            Create accessible online surveys -::- Koobten.com - compare netbook prices and reviews -::- Affordable, reliable hosting for less than $20 per year
            Zend Certified Engineer


            • #7
              oh cool..how/where do I insert that into the code then, since it's php?


              • #8
                Any chance of moving this on to php? I didn't know that would be the way to solve this issue.