Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Linebreaking in 'discussion details' line?
Don't know if this is a proper subject. I'm looking for a way to fix the line breaking behaviour when viewing the discussion list.
I want this "New 0" to be linebreaked as one string. I mean it should be moved to the next line but as a complete string ("new" and "0"). The number shouldn't stay alone in the next line. I hope I described the problem properly.
Same thing of course for the date (Last Active), Last Comment, ...
Do you see a way to accomplish it?
I want this "New 0" to be linebreaked as one string. I mean it should be moved to the next line but as a complete string ("new" and "0"). The number shouldn't stay alone in the next line. I hope I described the problem properly.
Same thing of course for the date (Last Active), Last Comment, ...
Do you see a way to accomplish it?
0
This discussion has been closed.
Comments
<li class="DiscussionNew"> <a href="'.$NewUrl.'"><span>'.$this->Context->GetDefinition('NewCaps').' </span>'.$Discussion->NewComments.'</a> </li>
into (note: replaced a space before </span> with a non-breaking space)
<li class="DiscussionNew"> <a href="'.$NewUrl.'"><span>'.$this->Context->GetDefinition('NewCaps').' </span>'.$Discussion->NewComments.'</a> </li>
I guess you can figure out how to add this non-breaking space elsewhere too. I did not test this.
thx for the tip. I was successful for most items expect for the date.
<li class="DiscussionActive"> <span><a href="'.$LastUrl.'">'.$this->Context->GetDefinition('LastActive').'</a> </span>'.TimeDiff($this->Context, $Discussion->DateLastActive,mktime()).'
In the date e.g. Nov 5th 2006 there are whitespaces inbetween, too. This means the date gets split in this places. Any tip where to look for this whitespace to replace?
By the way, why is this break bothering you so much? If your screen is wide enough it will not break.
Perhaps it's easier to force the content windows to a fixed width? (via CSS)
I chose
/languages/Deutsch/definitions.php
for adding the code. Works well too.$Context->Dictionary['OldPostDateFormatCode'] = 'j.\&\n\b\s\pM\&\n\b\s\pY';
So the date doesnt split up either...might work?
$Context->Dictionary['OldPostDateFormatCode'] = 'j.&\nb\sp;M&\nb\sp;Y';