ElkArte Community

Elk Development => Feature Discussion => Topic started by: sherif on February 28, 2017, 02:04:31 pm

Title: Forum index display
Post by: sherif on February 28, 2017, 02:04:31 pm
I was wondering if its better to display last post info for forums, in forum index by moving the post author to the second line giving more space for post title

(Link-4546)

also
i ported my forum from vb so there was container forum with no posts , but has 3 child forums
now in forum index the topics/posts count for it is 0 ,
(Link-4548)

 hope if it possible to reflex the total count of child forum posts/topics instead






Title: Re: Forum index display
Post by: emanuele on February 28, 2017, 03:44:22 pm
No opinions on the place of the name.

IIRC there is an option in the admin panel for that shows the counting of the 1st child level in the parent (I always forgot where the darn thing is, though. xD)
Title: Re: Forum index display
Post by: sherif on February 28, 2017, 07:00:34 pm
Thank you for pointing me to that option , yes i found it :
Administration Center > Forum > Settings : Count child's posts in parent's totals [check box]
Title: Re: Forum index display
Post by: Jorin on March 01, 2017, 01:36:19 am
Quote from: sherif – I was wondering if its better to display last post info for forums, in forum index by moving the post author to the second line giving more space for post title

This seems to be standard in my forum.  :o
Title: Re: Forum index display
Post by: sherif on March 01, 2017, 06:32:39 am
Hmm you must be using another theme other than default or a modified one

Or am i missing some native option which can do this for me?
Title: Re: Forum index display
Post by: sherif on March 09, 2017, 11:27:14 am
@Jorin I see that you are using a custom theme , however no matter what customizing is done, length of the subject is the same, I think its limited to a $short_subject = 24 character , AND in your case = 14 since your (Antw.: ) and (...) are counted  :o
Code: (Terribly Short) [Select]
Antw.: Deutsche Sprac...
123456789-123456789-1234

and it get worse in my Arabic language forum , so please anybody , if there is an option to control this setting let me know , or at least post some modification that solve this issue
Title: Re: Forum index display
Post by: Jorin on March 09, 2017, 11:43:33 am
I am using the default theme but with other colors. Didn't change the layout.
Title: Re: Forum index display
Post by: sherif on March 09, 2017, 11:53:04 am
ok , any thoughts on my request , any help ?!!
Title: Re: Forum index display
Post by: emanuele on March 09, 2017, 02:44:50 pm
BoardList.class.php:
Code: [Select]
$this_last_post['link'] = '<a href="' . $this_last_post['href'] . '" title="' . $row_board['subject'] . '">' . $row_board['short_subject'] . '</a>';
to:
Code: [Select]
$this_last_post['link'] = '<a href="' . $this_last_post['href'] . '" title="' . $row_board['subject'] . '">' . $row_board['subject'] . '</a>';
you get the whole thing.
Then, if you want to have the subject on its own line:
Code: [Select]
.lastpost_link {
    display: block;
}
.board_lastposter {
    display: inline;
}
.board_lasttime {
    display: inline;
    padding-left: 0.3em;
}
Or something like that.
Title: Re: Forum index display
Post by: sherif on March 10, 2017, 05:03:31 pm
@emanuele thanks for your help , very appreciated .
As you mentioned this will get the whole subject title , and broke the site look or at least shift many areas specially when window resized , not mentioning the mobile mode which will be completely screwed
So my last question about this issue before i give up on it for good , is there another fix which allow increasing the length of the displayed subject from the standard 24 character to something like 35 or 40 ?
Title: Re: Forum index display
Post by: Spuds on March 10, 2017, 05:13:48 pm
You can open up Load.php in your /sources file.

Find 
Code: [Select]
			$modSettings['subject_length'] = 24;
and try other values.   I'm not 100% sure that is used everywhere, but its worth a try.


Title: Re: Forum index display
Post by: emanuele on March 10, 2017, 06:09:49 pm
Quote from: sherif – As you mentioned this will get the whole subject title , and broke the site look or at least shift many areas specially when window resized , not mentioning the mobile mode which will be completely screwed
I gave a general hint, not the solution.
TBH, I'm not that good with theming and fix all the possible sizes it would take me quite a bit of time...
It's not impossible, it just requires a bit of time.
Title: Re: Forum index display
Post by: sherif on March 10, 2017, 06:14:00 pm
ok , and thanks again for you help
Title: Re: Forum index display
Post by: sherif on March 10, 2017, 07:49:10 pm
@Spuds , yes that setting did the job , thank you for your help

Quote from: Spuds – You can open up Load.php in your /sources file.
Find
Code: [Select]
			$modSettings['subject_length'] = 24;
and try other values.  I'm not 100% sure that is used everywhere, but its worth a try.