FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Maximum Shown Subject Length (tree view) - not working
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Maximum Shown Subject Length (tree view) - not working [message #13793] Mon, 27 October 2003 20:15 Go to next message
Gady is currently offline  Gady   Canada
Messages: 117
Registered: March 2003
Karma: 0
Senior Member
I've set the parameter to even 35, but it still doesn't make any difference. Am I missing something?

http://www.bccompass.com/forum/index.php/m/1371/152/0/2/


Re: Maximum Shown Subject Length (tree view) - not working [message #13796 is a reply to message #13793] Mon, 27 October 2003 21:05 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This setting only has effect on the threaded topic listing, not the individual threaded topics.

FUDforum Core Developer
Re: Maximum Shown Subject Length (tree view) - not working [message #13803 is a reply to message #13796] Mon, 27 October 2003 22:28 Go to previous messageGo to next message
Gady is currently offline  Gady   Canada
Messages: 117
Registered: March 2003
Karma: 0
Senior Member
Does it mean that there is no way to fix it quickly?

Re: Maximum Shown Subject Length (tree view) - not working [message #13807 is a reply to message #13803] Mon, 27 October 2003 23:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Technically it is not a bug, the option is only used for threaded views of multiple topics, where subject length can be a real issue.
However, you can modify tree.php.t (look for $cur->subject and substr() it to the length you want).


FUDforum Core Developer
Re: Maximum Shown Subject Length (tree view) - not working [message #13808 is a reply to message #13807] Tue, 28 October 2003 00:53 Go to previous messageGo to next message
Gady is currently offline  Gady   Canada
Messages: 117
Registered: March 2003
Karma: 0
Senior Member
thanks

Re: Maximum Shown Subject Length (tree view) - not working [message #13809 is a reply to message #13807] Tue, 28 October 2003 02:59 Go to previous messageGo to next message
Gady is currently offline  Gady   Canada
Messages: 117
Registered: March 2003
Karma: 0
Senior Member
So my hack to tree.php.t is :

I put the following code:

	if (strlen($cur->subject)  > 65) {
		$cur->subject=substr($cur->subject,0,65).' ...';
	}

Before the fragment
	if (isset($cur->subject) && empty($cur->sub_shown)) {

              ...
	}



It works to me,

thanks again.


Re: Maximum Shown Subject Length (tree view) - not working [message #13811 is a reply to message #13809] Tue, 28 October 2003 03:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It would've been better to put your code inside the
<?php
if (isset($cur->subject) && empty($cur->sub_shown)) {
?>


FUDforum Core Developer
Re: Maximum Shown Subject Length (tree view) - not working [message #13816 is a reply to message #13811] Tue, 28 October 2003 07:34 Go to previous message
Gady is currently offline  Gady   Canada
Messages: 117
Registered: March 2003
Karma: 0
Senior Member
I see, thanks

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FUDforum 2.5.2 Slovak Translation is not working
Next Topic: Confirmation email lacks key
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 20:31:13 GMT 2024

Total time taken to generate the page: 0.02431 seconds