Category View

Started by live627, May 12, 2009, 04:23:01 PM

Previous topic - Next topic

SoLoGHoST

Ok, yes, agreed.  Looks Better.  Also, didn't realise this before, but the topic/post numbers are in bold.  Was thinking about changing this to normal font, since the SMF default topics and posts numbers are in a font-weight: normal.  What do you think of this??

About the topic title being a little longer in vBulletin Style, this get's defined in the Subs-BoardIndex.php and will be fixed in the next version.

Thanks :)

Smog

Quote from: SoLoGHoST on June 11, 2009, 01:07:04 PM
The topic/post numbers are in bold.  Was thinking about changing this to normal font, since the SMF default topics and posts numbers are in a font-weight: normal.  What do you think of this??
IMO a normal font will be the best.

QuoteAbout the topic title being a little longer in vBulletin Style, this get's defined in the Subs-BoardIndex.php and will be fixed in the next version.
Txs. Like you have seen, topic titles can be considerable longer. This will have a positive impact on the theme layout view, and is also useful to the user.

SoLoGHoST

Ok, made the changes as of Version 1.8 now available.  Also, took version 1.6 down, if anyone wants this version let me know, but I think, as Smog has noted, the newer version is a huge improvement.

Thanks again, also, thank you very much Smog for the nice little spot at the bottom of your forum page. ;)  Would it be okay if I added your site as another example site for people to see how this MOD looks??  If you plan on keeping it installed that is.

Solomon

ოկtђ


Turkish Translete:


// Category View BEGIN
$txt['cat_boards'] = 'Forum';
$txt['cat_boards_last_post'] = 'Son Mesaj';
$txt['phpBB_latest_post'] = 'Son mesajı gör';
$txt['no_new_posts'] = ' ';
// Category View END


Turkish Translete

Smog

Had to uninstall the mod:  'last post' boxes are various width for the sections, see pics. This occur on my own box and also on the boxes of the visitors of my board. See attachment.

I assume it is related to ./Sources/Subs-BoardIndex.php

Your mod:


Find
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . $row_board['real_name'] . '</a>' : $row_board['real_name']) : $txt['not_applicable'],

Replace with
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '" style="white-space:nowrap">' . $row_board['real_name'] . '</a>' : $row_board['real_name']) : $txt['not_applicable'],

My ./Sources/Subs-BoardIndex.php, this is my original (but modified by another mod) Subs-BoardIndex.php:

'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '">' . $row_board['real_name'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row_board['real_name'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')) : $txt['not_applicable'],

Any idea how to modify it?


SoLoGHoST

#45
Ok, I see what you mean, am about to re-up this, but will drop the cutoff point of characters from 30 to 27, can only add in 3 characters more from that of the original.  Otherwise will stretch it like so and not maintain the same width for all columns in all Categories.  And have thought about making this a fixed width, but would create more problems if going this way with it.  So cutting the text from 30 to 27 character limit is the best way to proceed with this.

As for your problem, change your code to this:
'link' => $row_board['poster_name'] != '' ? (!empty($row_board['id_member']) ? '<a href="' . $scripturl . '?action=profile;u=' . $row_board['id_member'] . '" style="white-space:nowrap">' . $row_board['real_name'] . '</a>' : (!empty($modSettings['MemberColorGuests']) ? '<span style="color:'.$modSettings['MemberColorGuests'].';">' : '').$row_board['real_name'].(!empty($modSettings['MemberColorGuests']) ? '</span>' : '')) : $txt['not_applicable'],

Only thing is different is:  style="white-space:nowrap" gets added to the link.

Will give a holla when done update, will keep it at 1.8 though, since this is just a simple edit.

SoLoGHoST

Ok, All Done updating if you still want it.  This fixes that width issue for the Last Post Column in vBulletin Layout by shrinking the topic title cutoff point from 30 (in previous update) to 27 characters.  The original SMF cutoff point was 24 characters long.

Well, I hope you are satisfied with this.

SoLoGHoST

Quote from: Mythcomeback | Burak on June 12, 2009, 03:43:56 AM

Turkish Translete:


// Category View BEGIN
$txt['cat_boards'] = 'Forum';
$txt['cat_boards_last_post'] = 'Son Mesaj';
$txt['phpBB_latest_post'] = 'Son mesajı gör';
$txt['no_new_posts'] = '&nbsp;';
// Category View END


Turkish Translete

Bytheway, thanks for the translation.  Not sure how they work since I only deal in English.  But very much appreciated. :)

Smog

Txs for replying, will give the mod another shot becuase I really like it. Will report back here.

BTW, regarding Subs-BoardIndep.php, I was already 99,9% convinced to perform the modification in that way as described by you but preferred to wait on your opinion.

Smog

Quote from: SoLoGHoST on June 12, 2009, 01:40:52 AM
Ok, made the changes as of Version 1.8 now available.  Also, took version 1.6 down, if anyone wants this version let me know, but I think, as Smog has noted, the newer version is a huge improvement.


Ok, All Done updating if you still want it.  This fixes that width issue for the Last Post Column in vBulletin Layout by shrinking the topic title cutoff point from 30 (in previous update) to 27 characters.  The original SMF cutoff point was 24 characters long.
Well, all tests passed. Changed cuttoff point from 27 to 23, that was the only way to avoid mentioned problem on a 15" screen. Many notebook users have such screen so 23 characters is the only solution (unless you know another solution)

QuoteWell, I hope you are satisfied with this.
Sure I am, great and useful mod.  :)

QuoteThanks again, also, thank you very much Smog for the nice little spot at the bottom of your forum page. ;)  Would it be okay if I added your site as another example site for people to see how this MOD looks??  If you plan on keeping it installed that is.

Txs for your patience. I will keep the entire board in vBulletin style. Feel free to add my site as example: http://www.smokey-services.eu/forums/

BTW, little spot at the bottom of my forum page remain.  ;)

SoLoGHoST

Ok, great, I will keep at it though, as I have another idea that could work also.

SoLoGHoST

#51
Hello, there is also this alternative if you don't mind the Topic title dropping to another line if it's too long, you can see what I mean at the test site, as I just edited it that way...

TESTING GROUNDS

This will keep the width exactly the same no matter what for sure, but the topic title will drop down to another line, increasing the row height, if it is too long to fit in there...

Well, let me know which you prefer, this is using a 28 character cutoff limit.  Thanks.

P.S. -> The biggest problem that I face while doing this is that Uppercase and Lowercase character widths are different, so with the character limit set, it won't create a permanent width from the topic/post title, and this is why it is difficult to fill the entire width of the column with the topic/post title.  Padding the sides causes the width differences that you saw in the previous update. 

So we are now left with these 2 options...hmmm :(  So I ask you, which do you prefer?

1.  1 line topic/post title, with it shortened the way it is now, no guaranteed width of the Last Post column matching the same width of all of the other columns in all of the other Categories of the same layout (vBulletin).

OR

2. A longer topic/post title, with it stretching further from left to right, with a guaranteed fixed width in all categories for the Last Post column, however, could increase the height of the board, since if the topic/post title is too long, will drop down to another line.

Smog

#52
Quote from: SoLoGHoST on June 12, 2009, 05:09:08 PM
So we are now left with these 2 options...hmmm :(  So I ask you, which do you prefer?

1.  1 line topic/post title, with it shortened the way it is now, no guaranteed width of the Last Post column matching the same width of all of the other columns in all of the other Categories of the same layout (vBulletin).

OR

2. A longer topic/post title, with it stretching further from left to right, with a guaranteed fixed width in all categories for the Last Post column, however, could increase the height of the board, since if the topic/post title is too long, will drop down to another line.
I understand the problem, it is either one way or another way like you say.
Each way have it's pros and cons.

Let's start with option 2. Advantage: is from technical/practical POV the best solution. No matter what screen size will be used, the "Last post" column will remain the same for all boards, no matter how long the topic/post title will be. So no "screen disturbtion" anymore, no matter what screen (size) will be used
Disadvantage: on smaller screens a long topic/post title will be devided into 2 lines. Deliver a messy view, not only for the title itself but have also impact on the entire view of a site.

Option 1. Advantage: from optical view the better solution. A nifty tidied site.
Disadvantage: short topic titles. But keep in mind that with option 1 a long topic title devided in 2 lines will not be a pleasant read too. Another disadvantage: on screens smaller then 15" the problem of columns with diverse width will occur.

Well, after considering both options I tend to go for option 2.
ATM not many users have a screen smaller then 15" anymore, today's notebooks are sold with a minumum size of 15.2".
If you choose to go for option 1, keep in mind that character cuttoff point should be 23.

Edit: of course I mean to tend for option 1.....

SoLoGHoST

Ok, thanks for your feedback on this.  I am still deriving solutions to get this to work, may mean having to redefine the entire table for this to work.  So I am still having a go on this.  I'm not giving up on this just yet.

Thanks...

SoLoGHoST

Ok, Smog got it working.  And now it's at 28 characters before it gets cut off.  Now it works EXACTLY the same as the actual vBulletin forums.  Gotta clean up the other looks a bit before I can release it, but this is what you are looking for.  Now I have a huge headache!!  Well, off to sleep, g'night.

Smog

Quote from: SoLoGHoST on June 13, 2009, 05:50:57 AM
Ok, Smog got it working.  And now it's at 28 characters before it gets cut off.  Now it works EXACTLY the same as the actual vBulletin forums.  Gotta clean up the other looks a bit before I can release it, but this is what you are looking for.  Now I have a huge headache!!  Well, off to sleep, g'night.
Please see my PM.  :(

Smog

Addition to my PM: till yet all reports are talking about a XP box. So with Vista the mod seem to work as advertised.

SoLoGHoST

#57
Ok, thanks.  New update 2.0 now available. 

FYI:  If you select to have different layouts and 1 of those layouts are vBulletin, the 1st column's width of the vBulletin layout will not match those of the SMF or the phpBB layouts on the index page.  Perhaps it would be best for them all to be the same width, though trying to match the widths of vBulletin's actual forums.  I think the vBulletin Layout is finally complete unless there is something else...?

Smog

Thanks SoLoGHoST for all the time and energy you have invested in this mod to make it perfect. This v2 work without any glitch, all tests passed positive. I have transferred my entire site to vBulletin look. Great mod, nifty and useful.  :)

SoLoGHoST

Sure thing, glad you like it.  If you think the Last Post column is too wide, you can always drop it down some... in BoardsIndex.template.php search for "19.5em"  and in Subs-BoardsIndex.php search for "28" and change these areas accordingly.  The lower you go, with these numbers, the shorter the width of the Last Post column.  Well, is there if you need it.

Still going to play with it more, in hopes of getting the 1st column in all Category Layouts the exact same width.

Just got back from looking at your forum, and looks nice.  Good to see it working in a populated SMF Forum environment.

Advertisement: