Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Can "Last post info" be a longer box?
Topic Started: Nov 27 2008, 07:23 AM (349 Views)
themikado
Member
 *   *  
On the main page of my forum (more or less original skin) is there any way to make the "last post info" box longer to fit the whole title of a thread into it? My 'Forum' box doesn't need to be as long so I could save space there.

Many thanks :)
Offline Profile Quote Post Goto Top
 
Garath531
Member Avatar
Look, up in the sky! It's a bird! It's a plane! It's Superman!
 *   *   *   *  
Try adding this code to the bottom of your footers:
Code:
 

<script type="text/javascript">
tr = document.getElementsByTagName("tr");
for(i=0;i<tr.length;i++) {
if(tr[i].innerHTML.match(/Last Post Info/gi)) {
tr[i].getElementsByTagName("th")[1].style.width="25%";
}
}
</script>


To make the "Forum" column smaller, make the percentage smaller. Do the reverse to make it bigger.
Offline Profile Quote Post Goto Top
 
themikado
Member
 *   *  
Many thanks for that. The code works but still doesn't totally achieve what I want. The column is extended but the text stops where it did. Here's a screenshot showing you. If you look at the one that says "Peter Costello - social com..." what I want is for the whole title to be shown. Is there an extra bit of code that allows the title to take advantage of the extra width I now have?

Edit. Oops, it's hard to see since the image got compressed, but trust me, the title isn't shown in it's whole. Here's a link that might show it better. When the link opens, just hover over the picture and click 'full size'

http://smg.photobucket.com/albums/v693/TheMikado/?action=view&current=BLSP01.jpg

Posted Image

Many thanks :)
Edited by themikado, Dec 3 2008, 11:10 PM.
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

I think the length of those links are defined in the original coding of IPB v1.3, but I may be wrong.

It might not be possible to change them with JavaScript. :unsure:
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply