News:

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

Main Menu

Tidy Child Boards

Started by Arantor, December 09, 2009, 04:00:36 AM

Previous topic - Next topic

Mr. Pirate

if not remove the space how can i add the same amount of space at the bottom of the child board

Arantor


Mr. Pirate

ok thank you for the help though

GazOutEast

Hi Arantor

Just added this to my 2.0 RC2 site with all-default Curve theme - zero install problems and really sharpens up the appearance of the forum index and child boards.

Just wanted to add a huge thanks for this mod and all the others you work so hard on - love your mods.

(Now I have to shorten about half of my board titles so I can go to three column instead of two - but hey, that's not an issue caused by you ;) )

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

Arantor

Glad to know it's working for you :)

Boxerforum

Great mod !  It's working fine on our 2.0 RC2 forum  :D

Harvester

I like this mod but I wish that it wouldnt make the board names 2 lines long. I have a few boards that have 3 or 4 words in its title and this mod will split the title up putting the first two or 3 words on one line and then put the last word on the line below it.

Kind of Like
This

Anyway to fix that? I dont see anything in the css

Harvester

also none of the items in the admin panel are labeled and the drop down box doesnt have any of the options labeled either... everything is blank... I can still select how many columns and it works but I cant see the labels "2 cols, 3 cols, 4 cols" etc... so its a guessing game as to which option I am choosing.

I have a custom theme but I parsed it and did all the edits teh parser on this page http://custom.simplemachines.org/mods/index.php?mod=2294  showed me to do

oh I have SMF 1.1.11 by the way

Arantor

Shorter board names? Fewer columns?

As for missing admin items... what language are you using? The mod only supports English/English-British on account of the fact I don't know any other languages.

GazOutEast

Quote from: Harvester on January 10, 2010, 09:12:11 PM
also none of the items in the admin panel are labeled and the drop down box doesnt have any of the options labeled either... everything is blank... I can still select how many columns and it works but I cant see the labels "2 cols, 3 cols, 4 cols" etc... so its a guessing game as to which option I am choosing.

I have a custom theme but I parsed it and did all the edits teh parser on this page http://custom.simplemachines.org/mods/index.php?mod=2294  showed me to do

oh I have SMF 1.1.11 by the way

That's the age old and classic symptom that you're using English.UTF-8 instead of English as your language, or a similar mismatch

Copy the language strings from the /default-theme/languages/English.php into your /custom-theme/languages/all-languages-in-use.php files and the field labels will show up - remember to translate them as needed.

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

Harvester

even if I go for fewer columns it still breaks the names in half. I am just curious where you are setting the column width? Id like to edit and change it and see what happens.

Quote from: Arantor on January 10, 2010, 09:43:00 PM
Shorter board names? Fewer columns?

As for missing admin items... what language are you using? The mod only supports English/English-British on account of the fact I don't know any other languages.

Harvester

Quote from: GazOutEast on January 11, 2010, 07:26:25 AM
That's the age old and classic symptom that you're using English.UTF-8 instead of English as your language, or a similar mismatch

Copy the language strings from the /default-theme/languages/English.php into your /custom-theme/languages/all-languages-in-use.php files and the field labels will show up - remember to translate them as needed.

Gaz

I actuallyt do not even have the english-utf-8 files on my server... I only run english.php and no other languages. Already copied all the language strings from the default theme to my custom... as I said... I installed this manually via the parser.. I double and triple checked everything. I will go back and give it a quadruple check though

Arantor

If you added it manually, it should be fine (since you're not running 2.0 which would necessitate a clearing of the file cache)

As for how it's set, it takes the number of columns, divides that into 100 and sets that as the width of each column in CSS (see the edits to BoardIndex.php and MessageIndex.php where it adds to $context['html_headers'].

GazOutEast

Quote from: Harvester on January 11, 2010, 06:56:28 PM
even if I go for fewer columns it still breaks the names in half. I am just curious where you are setting the column width? Id like to edit and change it and see what happens.

Quote from: Arantor on January 10, 2010, 09:43:00 PM
Shorter board names? Fewer columns?

As for missing admin items... what language are you using? The mod only supports English/English-British on account of the fact I don't know any other languages.

You'll also notice if you set the boards with new posts to use bold titles, that the font width increases - this can cause text wrap to more than a single line,

As Arantor says, shorter board titles and fewer columns might be your only solution - it's what I had to do on mine.

Alternatively, if you can code, you might want to create a title length limiter that will only apply to displayed sub-boards titles, but which is also variable to suit the number of columns.

Another factor could be the display width set for your forum - too narrow and even a two column display will line wrap with short board titles.  I use around 1000px on all my sites and scripts and it looks fine even on a wide screen monitor - I'm not a great fan of fluid width as I've seen it murder a number of site layouts and present garbage on screen.

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

curlin

   can someone post a site to check it out please.
Hoss Talk At Thoroughbred Junkie

Arantor

Quote from: curlin on January 13, 2010, 11:42:09 PM
   can someone post a site to check it out please.

There's screenshots on the mod site listing, or were last time I checked (I definitely added some!)

tekknus

I use SMF 1.1.11, how install manually this mods to my theme, this is only for core theme?? i can apply this mod to my others themes??

Arantor

You will have to edit your themes.

Please see Manual Installation of Mods

tekknus

OK Arantor, thanks a lot, you have a great Mod i will try apply this procedure in my themes


Arantor

Fixed a stupid bug in 2.0 version of this mod related to unapproved posts in a child board. Minor fix, either upgrade to v1.3 which contains it, or edit the BoardIndex.template.php of the theme(s) you use:

Code (find) Select
function template_tidy_children() {
global $context, $settings, $txt, $modSettings;


Code (replace) Select
function template_tidy_children() {
global $context, $settings, $txt, $modSettings, $scripturl;

Advertisement: