HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Templates, templates...

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#18431 (In Topic #4276)
Avatar

Community saint

Not sure this is the right forum for this, feel free to move it if you like.

I'm having some hard time with translations being longer than the original strings.
And some difficulty understanding how the text gets layed out by some templates.

Some examples:





This looks nice




This doesn't. Plenty of space, though. Can't understand why the line should jump. tried to find which template must be edited to solve this, can't find it.




The line jump for AM looks odd.




Can be solved by making the text shorter, but it's not really a solution.

Found the template for this one, but I really can't see why all available space is not used…

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18432
Avatar

I think you've stumbed into the dangerous territory of Internet Explorer buggyness.

The first 'Avec' problem I believe is due to an Internet Explorer bug whereby it does not properly assign enough width for a table header cell. The template here is OCF_FORUM_TOPIC_WRAPPER.tpl.

The second one is strange too.

I'm going to suggest something that'll hopefully fix both issues. For the first one, in OCF_FORUM_TOPIC_WRAPPER.tpl, change:

Code

      <th style="width: 100px"> {!STARTER}{STARTER_TITLE*} </th>

to:

Code

      <th style="white-space: nowrap; width: 100px"> {!STARTER}{STARTER_TITLE*} </th>

and in the template you found change:

Code

style="text-align: center"

to:

Code

style="white-space: nowrap; text-align: center"


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#18434
Avatar

Community saint

Amazing, just tried it with firefox, and ie6. Both on 1280x1024, 19" screens.

ie6:




Firefox:




I'll do as you said and see what happens.
Thx  ;)

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
Posted
Rating:
#18437
Avatar

Community saint

The first mod (last visit) works fine with both ie6 and firefox.
Second one is ok with firefox, but still jumps a line with ie6.

Correction: changed width from 100 to 120px, and it works fine on both.
Thx Chris   :thumbs:


Last edit: by moimaim

www.precorp.fr

Last one to leave the country, please turn off the lights.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: