News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Category View

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

Previous topic - Next topic

SoLoGHoST

Oh, and if you want the changes to take effect in the Category Page also, just change the 19.5em in there within the vBulletinLayout() function to the same as you have within the BoardsIndex.template.php, so that way it will stay the same width on both pages/areas.

Smog

Quote from: SoLoGHoST on June 14, 2009, 07:04:09 AM
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.
Altered to 22.5em and 27, to make the mod Firefox compliant.

SoLoGHoST

It wasn't Firefox compliant??  I tested it in Firefox also, looked fine to me.  What was wrong with Firefox?

Smog

In my FF it look OK, however today 3 folks reported a problem with FF, see attached image. Have solved it provisional with values mentioned before.

SoLoGHoST

#64
Ok, I know what the problem is, problem I used em instead of px.  While I didn't see this as a problem, I should've used widths in pixels instead of em units.  Next version will fix this for sure.

Again, thanks and all apologee's for the prolonged problems here.  Next version will fix all problems guaranteed, even the width of the 1st column in all category layouts.  Sorry everyone for all of the problems with this MOD, just not able to test in all environments, so it's good that you guys report these issues.

The main issue that I face that vBulletin doesn't face is the problem with the widths of each column.  The reason why vBulletin doesn't have this problem with their layout is because they have all of their Category tables nested inside of another table that controls all of the widths.  If I have to do this, I will, but as a last resort, since SMF board index isn't setup like this at all and would require a complete overhaul of the board index and would rather not go that route, but like I said, if I have to, I will...

EDIT:  Have decided that the only way to do this so it it completely perfect is to nest it inside of a table, that means will have to nest the entire board index inside of a table.  Well, this will fix the problem completely, since if you have a topic that has 28 (or in your case 27) W's.  That is:  WWWWWWWWWWWWWWWWWWWWWWWWWWWW, this topic will go into the other columns same way as in the pic.  So will let you know again when it is completely finished.  Again, all apologee's for the so-called fixes, should've went this route from the beginning instead of trying to work around it.  Though the board index will be so different now, might be better, instead of making edits to it, to just include the entire file with this MOD, but we'll see.

Thanks again :)


SoLoGHoST

Just want to keep you informed of the next version of this MOD...

NEXT VERSION:
GOOD NEWS
Will completely fix the vBulletin Last Post column and resize this accordingly to the same width for all categories.  Last Post title link will remain on 1 line as it does on vBulletin.  You will be able to change the character cut off limit to any size in Subs-BoardIndex.php line:
$row_board['short_subject'] = shorten_subject($row_board['subject'], 24); and just change 24 to whatever size you want the character cut off limit to be at and it will resize the Last Post columns in the vBulletin Layout, according to the topic titles in there, so all are perfectly the same width.  Works and looks great on any screen resolution, size, browser, etc. etc. etc.

BAD NEWS
This does not support the other themes that come with SMF.  Each and every theme BoardIndex.template.php file, that is not the default SMF Theme, will need to be recoded individually so that it matches that of the Default BoardIndex.template.php file before this will work for all of your other Themes.  Also, no guarantee that it would be even possible to code it the same way.  However, if you are clever enough, you should have no problems.

While the BAD NEWS is basically a given, since you'll need to recode your BoardIndex.template.php for all themes no matter what, just thought it should be noted in here.

Comments, suggestions, etc. are always welcomed :)

Smog

Quote from: SoLoGHoST on June 18, 2009, 02:58:09 PM
Just want to keep you informed of the next version of this MOD...

NEXT VERSION:
GOOD NEWS
Will completely fix the vBulletin Last Post column and resize this accordingly to the same width for all categories.  Last Post title link will remain on 1 line as it does on vBulletin.  You will be able to change the character cut off limit to any size in Subs-BoardIndex.php line:
$row_board['short_subject'] = shorten_subject($row_board['subject'], 24); and just change 24 to whatever size you want the character cut off limit to be at and it will resize the Last Post columns in the vBulletin Layout, according to the topic titles in there, so all are perfectly the same width.  Works and looks great on any screen resolution, size, browser, etc. etc. etc.
Sound great, especially because I prefer the vBulletin theme. The change of the character cut off limit sound great too, because the cut off limit I use now is just a temporay fix to coop with the Firefox issue.

QuoteBAD NEWS
This does not support the other themes that come with SMF.  Each and every theme BoardIndex.template.php file, that is not the default SMF Theme, will need to be recoded individually so that it matches that of the Default BoardIndex.template.php file before this will work for all of your other Themes.  Also, no guarantee that it would be even possible to code it the same way.  However, if you are clever enough, you should have no problems.

While the BAD NEWS is basically a given, since you'll need to recode your BoardIndex.template.php for all themes no matter what, just thought it should be noted in here.
Well, to me no bad news. Default SMF theme is perfectly serving my purposes. So I will NOT complain.  ;)

QuoteComments, suggestions, etc. are always welcomed :)
Will do ATM your new version is available/installed.

SoLoGHoST

#68
Ok, New Version now available.  Decided to keep increment it by .1, though don't be fooled, this is a major change from 2.0.

Anyways, please let me know how this works for you.  This should all work perfect, so we shall see.

Also, if you think the vBulletin column width is not wide enough, you can just increase the max character cut off limit in Subs-BoardIndex.php and it will stretch it out further to the left.

Solomon

Smog

Quote from: SoLoGHoST on June 19, 2009, 02:55:14 AM
Ok, New Version now available.  Decided to keep increment it by .1, though don't be fooled, this is a major change from 2.0.

Anyways, please let me know how this works for you.  This should all work perfect, so we shall see.

Also, if you think the vBulletin column width is not wide enough, you can just increase the max character cut off limit in Subs-BoardIndex.php and it will stretch it out further to the left.
Thanks Solomon for this new 2.1 version. Have installed it on my board with standard settings, vBulletin theme, will wait on test reports of the user.

Smog

SoLoGHoST

Sure thing, just checked it out on your forum and looks great to me.  Let me know how the tests go on your end, k?

Thanks :)

Smog

Quote from: SoLoGHoST on June 19, 2009, 11:34:19 AM
Sure thing, just checked it out on your forum and looks great to me.  Let me know how the tests go on your end, k?
Till yet no complaints.  ;)

$row_board['short_subject'] = shorten_subject($row_board['subject'], 28);
Tested with 28, 30 and 32, no negative effects observed . ATM setting is 30.  :)

SoLoGHoST

Ok, great news.  ENJOY and Thanks again for your feedback on this :)

navjotjsingh

Any chance for this to be compatible with 1.1.0 SMF?

SoLoGHoST

Yep, possibility exists and will be implemented with all my MODs.  Will aim for 1.1.9, don't know about 1.1.0, but you can let me know if it works in 1.1.0.  This one should be the easiest 1 to implement.  So, for the sake of a break, will do this 1 first...lol.

NHWD

Quote from: SoLoGHoST on July 16, 2009, 11:28:02 AM
Yep, possibility exists and will be implemented with all my MODs.  Will aim for 1.1.9, don't know about 1.1.0, but you can let me know if it works in 1.1.0.  This one should be the easiest 1 to implement.  So, for the sake of a break, will do this 1 first...lol.
hey did you ever convert it?
this mod looks god but i use 1.1

SoLoGHoST

Sorry, no conversion as of yet.  Have considered the possibility of a compatible 1.1.x release of Category View, but this is not a priority of mine --->  READ THIS POST for MORE INFO!

NHWD

i found a theme that had the category view i wanted and just edited to the theme im using now
so nvm now
but hey there are plenty of free hosts in which you could use to work on converting your mods to 1.1.x if you want me to set one up for you let me know

SoLoGHoST

#78
I already have a server in which I can install SMF 1.1.x on.  Though like I said, too many test sites, and not interested in doing this unless there is motivation for me to want to do this, for example $$$.  However, in that topic, further down in a different message, I simply stated that I would do a PM Attachments MOD compatible with SMF 1.1.x if someone were to set up a server, etc. for me as I was in a good mood.  So this offer still stands.

In Conclusion:
If you are interested in a Category View MOD compatible with SMF 1.1.x and are willing to pay for it working perfect on the SMF Default Theme, please reply to this message.  Otherwise, don't bother as I am not looking forward to making any of my MODs compatible with SMF 1.1.x anyways.  10 Replies of people willing to pay 20 US Dollars for Category View SMF 1.1.x compatible version and I'll do it. 

Note:  If you want me to convert over any of your Custom Themes (i.e. the BoardIndex.template.php file) so that it works perfectly with the Category View MOD, I will do this also, but not for FREE!  You can PM me if interested.

PalmBeachPreps

Attempted to install and got a very high number of failed tests.  See below:
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./index.php Test successful
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Subs-BoardIndex.php Test failed
1. Replace ./Sources/Subs-BoardIndex.php Test successful
2. Replace ./Sources/Subs-BoardIndex.php Test successful
3. Add After ./Sources/Subs-BoardIndex.php Test successful
4. Add After ./Sources/Subs-BoardIndex.php Test successful
5. Replace ./Sources/Subs-BoardIndex.php Test failed
6. Replace ./Sources/Subs-BoardIndex.php Test successful
7. Replace ./Sources/Subs-BoardIndex.php Test successful
4. Execute Modification ./Sources/Recent.php Test failed
1. Replace ./Sources/Recent.php Test failed
2. Replace ./Sources/Recent.php Test failed
3. Replace ./Sources/Recent.php Test failed
5. Execute Modification ./Themes/default/BoardIndex.template.php Test failed
1. Replace ./Themes/default/BoardIndex.template.php Test failed
6. Execute Modification ./Themes/default/style.css Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/scripts/script.js Test successful
9. Extract File ./Sources/Category.php
10. Extract File ./Themes/default/Category.template.php
11. Extract File ./Themes/default/languages/Category.english.php
12. Extract File ./Themes/default/languages/Category.english-utf8.php
13. Extract File ./Themes/default/images/phpBB_childboard_read.gif
14. Extract File ./Themes/default/images/phpBB_childboard_unread.gif
15. Extract File ./Themes/default/images/border_bottom.gif
16. Extract File ./Themes/default/images/border_left.gif
17. Extract File ./Themes/default/images/border_right.gif
18. Execute Code categoryinstall.php

Advertisement: