Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    Regular Coder
    Join Date
    Oct 2002
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Limiting the size of specialized topic titles

    Hey,

    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:

    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 />
    </b>
    </font>
        <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
    Regular Coder
    Join Date
    Oct 2002
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    was I clear and it's just not possible, or unclear?

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    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
    Regular Coder
    Join Date
    Oct 2002
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well..since I was unclear...I'll attatch an immage to illustrate what I'm saying:
    Attached Thumbnails Attached Thumbnails Limiting the size of specialized topic titles-blah.gif  

  • #6
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Well, you can do it in PHP,

    PHP Code:
    $var subsrt($var,0,20)."..."

  • #7
    Regular Coder
    Join Date
    Oct 2002
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oh cool..how/where do I insert that into the code then, since it's php?

  • #8
    Regular Coder
    Join Date
    Oct 2002
    Posts
    137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Any chance of moving this on to php? I didn't know that would be the way to solve this issue.


  •  

    Posting Permissions

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