Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Arantor on December 09, 2009, 04:00:36 AM

Title: Tidy Child Boards
Post by: Arantor on December 09, 2009, 04:00:36 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2294)

This mod allows you to tidy up the look of your child boards into nice ordered columns.

Compatible with pretty much any theme for SMF 2.0!!

Once installed, you'll find these options in the Features and Options page of the admin panel:
* choice of 2, 3 or 4 columns
* for child boards with new posts, you also get the following options:
  * whether the link is bold or not
  * whether you get the [new] icon next to it
* option of having small copies of the board's icon next to the child boards, which also light up (the same as the board icon) if there are new posts

This mod supercedes and replaces 'Aligned and Bilateral Child Boards'.


Version history

2.0 - May 7 2016
Complete rewrite
- SMF 1.1.x users should continue to use the 1.x version of the mod for whatever reason
- SMF 2.0 users should use the 2.0 version of the mod; this requires zero theme edits, fewer other edits and generally should work better

1.4.1 - June 22 2013
Compatibility for 2.0.4 (no code changes)
1.1.18 should work just fine as well

1.4 - 28 July 2012
Adds support for 2.0 - 2.0.2
Dropped support for all RC versions

1.3 - 9 March 2010
Added 2.0 RC3 support, no version number change, no code change

1.3 - 31 January 2010
Fixed missing $scripturl in scope for unapproved posts/topics in the child boards (thanks SleePy for the heads-up)

1.2 - 29 December 2009
Added German support thanks to ianus.
Fixed stupid bug in uninstaller not removing the CSS file in 1.1.x.
Done some work on the IE6/7 bug, which is a browser bug, not anything else. Not really sure what else to do with it other than what I've done to be honest.
Reorganised files to be tidier.

1.1 - 13 December 2009
Added 2.0 RC1.2 support
Fix a validation issue (Thanks Sabre!)

1.0 - 9 December 2009
First public release
Title: Re: Tidy Child Boards
Post by: JBlaze on December 09, 2009, 04:16:18 AM
Yet another awesome mod! Congrats again!

/me mutters something about spammers
Title: Re: Tidy Child Boards
Post by: Spoogs on December 09, 2009, 05:12:17 AM
nice one dude, looks so much neater now. good job
Title: Re: Tidy Child Boards
Post by: coldy316 on December 09, 2009, 06:24:52 AM

Hey arantor thanks for sharing this mod works well but i think there is a problem with the 4 columns
area.. I have it set on 4 columns but its not showing 4 columns across. Only 3 columns across..

Is it meant to show 4 columns going across the bourd or 3 columns across and 1 column going down
I would do a screen cap but I run an adult board and might get in trouble in screen cap of it.
Title: Re: Tidy Child Boards
Post by: SilverKnight on December 09, 2009, 07:09:57 AM
Love it Arantor!

I have a suggestion though.

Make it so you can use a custom on and off buttons for the subforum pictures, Even though it shrinks them automaticly, it would be nicer to use other images too if need be.

You have turned my subforums into something of an eyecandy, it looks great.
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 08:30:22 AM
Hey arantor thanks for sharing this mod works well but i think there is a problem with the 4 columns
area.. I have it set on 4 columns but its not showing 4 columns across. Only 3 columns across..

Version of SMF? Can't diagnose it without further information.

SilverKnight: And where would it get that from? I know full well if I add support for it, I'll only have to make it work with the Custom Board Icon mod, which makes things a lot more complicated since you'd have to then provide an image for each child board and also to be frank, that raises the bar on support a lot, which for a free mod I just do not have time for.
Title: Re: Tidy Child Boards
Post by: coldy316 on December 09, 2009, 10:01:29 AM
sorry about that arantor forgot about it. smf curve 2.0rc2 anyway heres the screenshots
you should be able to see what i mean when viewing..

I'm using the default theme
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 10:03:42 AM
Please remove those screenshots.

The reason is concerning your custom theme - there *are* four columns there but due to something in your custom theme, it indents the first column, so the fourth column wraps around.
Title: Re: Tidy Child Boards
Post by: coldy316 on December 09, 2009, 10:32:24 AM
Please remove those screenshots.

The reason is concerning your custom theme - there *are* four columns there but due to something in your custom theme, it indents the first column, so the fourth column wraps around.

and whats that suppose to mean??? it is the standard theme all i did was change color
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 10:41:43 AM
You've also changed the CSS too by the looks of things.

There are four columns there, they're defined to consume 25% space in 4 column mode, but that only works if there isn't an indent on the left which makes the first column consume more than 25%.

This mod works fine on 2.0 RC2 Curve - see the attachment for confirmation of that. But also see the difference - your lists have a space to the left of them that mine do not, thus your stylesheet is somehow different.
Title: Re: Tidy Child Boards
Post by: coldy316 on December 09, 2009, 10:50:31 AM
could it be the another mod causing the problem?
http://custom.simplemachines.org/mods/index.php?mod=1266

that is the latest mod that Iinstalled before your mod

Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 10:54:33 AM
It's possible. It's other mods have too. It's also possible that whatever you changed when you did your custom theme work may have changed it.

PM me a link and I'll take look tonight at exactly what it is. Note that the same would happen on 3 columns or even two, probably.
Title: Re: Tidy Child Boards
Post by: coldy316 on December 09, 2009, 11:18:44 AM
arantor I sent you a pm please read and explain back
Title: Re: Tidy Child Boards
Post by: edi67 on December 09, 2009, 12:02:32 PM
nice one
Title: Re: Tidy Child Boards
Post by: Liam. on December 09, 2009, 12:35:14 PM
Brilliant mod and works fine! Perfect for the sites with more boards. Will definitely put this up on my site ASAI get more boards.
Title: Re: Tidy Child Boards
Post by: Joe N on December 09, 2009, 03:53:31 PM
Looks a very nice mod. Will use it  ;)
Title: Re: Tidy Child Boards
Post by: Kimmie on December 09, 2009, 06:53:31 PM
Arantor, I think I love you!!!!!!!!!!   hehehe I have been waiting for this mod to get fixed!! (http://patriotgames2.info/Smileys/classic/HappyDance.gif)  (*doin the happy dance)


Will be installing this later tonight!! :)
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 07:09:41 PM
I didn't just fix it - this is a complete rewrite with extra goodness :)
Title: Re: Tidy Child Boards
Post by: Kimmie on December 09, 2009, 09:08:49 PM
I didn't just fix it - this is a complete rewrite with extra goodness :)


Will this mod work on 2.0 RC1.2?
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 09:16:47 PM
Um. I never tried it on 2.0 RC1.2 however there's a good chance it will - I seem to recall the edits for Curve and Core are actually identical.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 09, 2009, 09:27:04 PM
k i uploaded it, and it said it uploaded fine, however, its not giving me an option to apply it:

http://i46.tinypic.com/2ik9wef.jpg

Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 09:43:11 PM
No, because the version numbers are all geared to 2.0 RC2; I never tested it on 2.0 RC1.2 and never wrote it explicitly for it. It's just a happy by-product that the edits should be the same.

If you use the Advanced option in the lower right corner and supply 2.0 RC2 as the version to use it will probably work.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 09, 2009, 09:55:54 PM
k I did that. When I go to apply it, I get test failed's on these two files:

7.   Execute Modification   ./Themes/core/BoardIndex.template.php   File not found
8.   Execute Modification   ./Themes/core/MessageIndex.template.php   File not found


It should still be ok tho right? (just wanna make sure, I dont want to screw my site up)  :)
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 10:00:04 PM
o.O I thought I made those edits optional.

It's absolutely fine to proceed if those files are not found. On RC2+, the old default theme is in Themes/core - but on RC1.2 that isn't the case of course.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 09, 2009, 10:17:48 PM
I got everything done, all edits on my custom themes done, and everything works GREAT!!!!!!!!!!!!!


I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you I love you


(http://patriotgames2.info/Smileys/classic/Hugs.gif)
Title: Re: Tidy Child Boards
Post by: Arantor on December 09, 2009, 10:27:20 PM
Just glad it works out the way it's meant to :)
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 02:11:47 AM
Very nice.
Thanks mate :)
Title: Re: Tidy Child Boards
Post by: coldy316 on December 10, 2009, 03:12:08 AM

      arantor sent you that pm that you wanted....
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:15:49 AM
And I replied :)
Title: Re: Tidy Child Boards
Post by: coldy316 on December 10, 2009, 03:25:12 AM
And I replied :)

There was no problems at all with the install at all, didnt come up with any errors. just had trouble
locating where to activate the mod at the time... lol
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:27:22 AM
The mod is working precisely as it should. I can't be responsible for a) browser quirks due to CSS not related to my mod, b) use of 4 columns on boards with long names (which cannot ever actually be fixed without screwing the rest of the layout anyhow), c) you having it set to 3 column (since in the source, the relevant code was showing 33% width)
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 03:28:04 AM
Closing the img tag and adding alt"" will validate it.
Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="" />
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:29:15 AM
Does it not pass validation? :o

/me was sure he put that in.
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 03:31:18 AM
Just a simple miss for the 1.1.x version

EDIT: in both
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:35:09 AM
Confirmed for all three supported themes.

Fixed in version 1.1 :D as well as adding 2.0 RC1.2 support :D
Title: Re: Tidy Child Boards
Post by: coldy316 on December 10, 2009, 03:35:52 AM
Hey if it wasnt for arantor we wouldnt be able to do this. it works fine in 3 column
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 03:41:21 AM
Hey if it wasnt for arantor we wouldnt be able to do this. it works fine in 3 column

People have been doing it for years buddy, it's just great that Arantor found a little time in between his 'record spam post' session(s) to package it ;)
Offline these days mate?
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:42:52 AM
Actually I didn't just package it, this is a fresh build entirely, pushing some of it to Sources so it is easier to install on multiple themes.

As for offline, yeah, means I get less PMs. I'm now in the bracket of 1-5 unsolicited per day, which I'm more than happy with.
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 03:49:03 AM
Actually I didn't just package it, this is a fresh build entirely, pushing some of it to Sources so it is easier to install on multiple themes.

Indeed. Actually meant the column display/layout of child/sub boards has been done, not the way you've offered it. ;)

As for offline, yeah, means I get less PMs. I'm now in the bracket of 1-5 unsolicited per day...

lol
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 03:53:26 AM
Well, yeah, it has but the previous version didn't offer 4-column (which to be fair isn't useful all the time), nor did it let you configure too much, whether you want the [new] or not, bold or not etc.

To be honest, I mostly did it because people kept asking me where the original mod went, and it seemed easier to just make a brand new one than to either keep explaining why I removed the original mod package, or to try and fix its code.

Earlier in the year I was receiving over 50 a day unsolicited PMs. I don't mind people PMing me when I've asked them to do so, or if it's something specifically useful or interesting (e.g. someone PM'd me recently to throw me a link to a plugin for phpBB I'd expressed interest in, but a prebuilt package that had the plugin preinstalled), but PMing me for support, or to bump a topic, is very likely to be ignored and deleted.
Title: Re: Tidy Child Boards
Post by: Sabre™ on December 10, 2009, 04:01:26 AM
Yep, great mod mate, I'll be using it for most projects :)

I'm guessing making your 'No unsolicited PMs, thank you' text into a flashing gif, or font-size 32pt wouldn't help any lol
Those be the pitfalls when you're famous ;)

Side note: sorry for the Off topic convo mate, feel free to clear the clutter if you like.
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 04:04:31 AM
Yep, great mod mate, I'll be using it for most projects :)

Great to hear :)

Quote
I'm guessing making your 'No unsolicited PMs, thank you' text into a flashing gif, or font-size 32pt wouldn't help any lol

I've tried all kinds of variations, from red bold text, to that, to a big image (http://i623.photobucket.com/albums/tt313/Arantor/grue_pms.png) that I thought was clever but no-one got the joke.

Quote
Those be the pitfalls when you're famous ;)

Infamous more like!

Quote
Side note: sorry for the Off topic convo mate, feel free to clear the clutter if you like.

Nah, it's fine. Why should mod topics be specifically about problems and solutions? I like a bit of sociability in my topics :D
Title: Re: Tidy Child Boards
Post by: perplexed on December 10, 2009, 05:01:28 AM
I like this :) It makes the board index a lot longer to scroll down if you have a lot of child boards bu it also makes the child boards a lot easier to see, so I think the members will like and hopefully be able to find things easier.  Nice.
Title: Re: Tidy Child Boards
Post by: Groundhog on December 10, 2009, 06:19:19 AM
Hey, this is better than I had thought it would be. I would have installed it sooner if I had realised.

Works a treat, many thanks.  8)
Title: Re: Tidy Child Boards
Post by: edi67 on December 10, 2009, 09:27:10 AM
nice mod but i can suggest you some idea:

The font size of child board title must be small
The part where are wrote the child board in main must be separate by some table

look my site for example
http://crazyzone.biz/index.php
Title: Re: Tidy Child Boards
Post by: Arantor on December 10, 2009, 09:33:26 AM
Thanks for the suggestions but I'm not planning on changing ANYTHING in this mod except future versions. I'll help anyone who wants to customise it (and to be honest, that's kind of the point of the extra CSS file) but I'm not going to change a thing in this mod.
Title: Re: Tidy Child Boards
Post by: social on December 10, 2009, 11:37:10 AM
Thank you for the mod
Title: Re: Tidy Child Boards
Post by: improv on December 10, 2009, 01:17:56 PM
Most awesome sub forum style ever, thanks dude!
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 03:47:26 AM
Came across an issue. I am wanting to use the option to "Display small board icon next to child board", however the images are appearing like this (this is IE):

(http://i46.tinypic.com/2emdjqb.png)

So I went and looked to see if those images are actually in the images folders on all my themes and what I determined was that your mod is asking it to pull "on.png" and "off.png" however all those images on all my themes are gifs not pngs. I also took a look at my default theme to see if they pulled there, and nothing at all shows up on it:

(http://i45.tinypic.com/2cfuwwp.png)

I dont get anything with Opera either (and is the actual browser I use).

Where do I need to change the code so that it pulls on.gif and off.gif instead of png's?


Thanks :)
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 04:00:28 AM
I actually fixed this yesterday for 2.0 RC1.2 users - if you uninstall the mod and grab the updated version (which does have proper 2.0 RC1.2 support) it has that fixed.

There's several places it has to be changed, both in BoardIndex.template.php and MessageIndex.template.php.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 02:11:59 PM
its not giving me the option to uninstall it. I even changed the advanced to 2.0 again and it didnt fix it.

http://i46.tinypic.com/1z36yom.png


Am I gonna have to uninstall this entire thing "manually"?
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 02:48:00 PM
If you put in 2.0 RC2 in the advanced, it should allow you to uninstall.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 03:14:15 PM
If you put in 2.0 RC2 in the advanced, it should allow you to uninstall.

It doesnt. That screenshot I provided was after I changed the advanced settings. Here is a wider one showing that its set to 2.0


http://i50.tinypic.com/2vjby2p.png


Nevermind.. I figured out what it was.. I was putting RC2.0 and it has to be RC2. You guys make this WAY harder than it should be...lol. SMF needs to find ONE version.. and stick with it.  :-\
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 03:18:08 PM
Use "SMF 2.0 RC2" not "SMF 2.0 RC2.0"
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 03:18:52 PM
i edited my last post because I just figured that out
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 03:26:02 PM
To be honest, there wasn't really supposed to be a 1-1 or 1.2 from RC1. But they were sufficiently big security issues, with RC2 still a long time away, that we kind of had to.

Versions ideally should be 2.0 RC1, 2.0 RC2 etc.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 03:30:51 PM
ok well I just uninstalled it and now my entire forum is messed up. This is crazy. I am getting this on all my custom themes

Fatal error: Call to undefined function tidyBoards() in /home/****/public_html/Sources/Load.php(1990) : eval()'d code on line 148


and all of them except one use the default files for the mod.


with each theme the line code is different.

This is on another theme

Fatal error: Call to undefined function tidyBoards() in /home/****/public_html/Sources/Load.php(1990) : eval()'d code on line 292
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 03:33:48 PM
Argh! Another occurrance of the bug where install to custom themes doesn't always uninstall on custom themes. :(

Reinstall the mod but don't select any custom themes, that will make everything work again.

Then we can make the .png -> .gif edits.

Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 03:41:02 PM
Argh! Another occurrance of the bug where install to custom themes doesn't always uninstall on custom themes. :(

Reinstall the mod but don't select any custom themes, that will make everything work again.

Then we can make the .png -> .gif edits.




k i reinstalled it and it seems to be working again on all my themes.

Confused about what you just said tho about not uninstalling from custom themes. All my themes (except one) use the default themes files to run this mod. Why wouldnt it uninstall properly on the other themes?

Another ?... if I leave this version on, and merely make manual changes to change those image names, whats gonna happen if I ever want to uninstall this mod? Im guessin I will have a major mess on my hands because it will all have to be uninstalled manually at that point, right?
Title: Re: Tidy Child Boards
Post by: Arantor on December 12, 2009, 04:27:19 PM
None of your themes have their own BoardIndex.template.php or MessageIndex.template.php files (other than default/) ? Then uninstall should remove it correctly, but if you have custom themes, it won't always tidy up correctly, meaning that even if you were to ask it to uninstall, it won't uninstall correctly anyway. :(
Title: Re: Tidy Child Boards
Post by: Kimmie on December 12, 2009, 07:59:14 PM
None of your themes have their own BoardIndex.template.php or MessageIndex.template.php files (other than default/) ? Then uninstall should remove it correctly, but if you have custom themes, it won't always tidy up correctly, meaning that even if you were to ask it to uninstall, it won't uninstall correctly anyway. :(

a few do, a few dont.

I guess my main confusion is on "doesn't always uninstall on custom themes". Confusion because it doesnt actaully "install" to them either so I dont see why it causes a problem..lol. (but hey, I dont code em, I just use em..lol)

at any rate, I would prefer to try and get this version completely removed but if im stuck with it im stuck with it..lol - other than those images not pulling right I havent found any other issues with it. Go ahead and post the edits I need to make to get those file names to pull right. I doubt I will ever "want" to uninstall this mod once once its all working right because it was one of my fav mods on 1.x so hopefully it will never be an issue :).


EDIT: I just thought of something.....not sure if it will work but I will ask anyways..lol.

I made a backup of my public_html folder before I installed this mod. Its the only mod I have installed since that backup. Could I just reupload that and let it overwrite those files putting them back to the way they were before I installed it and then install the updated one?
Title: Re: Tidy Child Boards
Post by: Arantor on December 13, 2009, 04:44:59 AM
Quote
I guess my main confusion is on "doesn't always uninstall on custom themes". Confusion because it doesnt actaully "install" to them either so I dont see why it causes a problem..lol. (but hey, I dont code em, I just use em..lol)

So you didn't ask it to install to other themes on install in the package manager?

Yes, ultimately, if you backed up public_html before installation, you will be able to remove the mod's code that way. However, there will still be an entry in the database for the mod, so it may still show as installed, but we'll come to that after uploading the backup (I feel bad that's where it's got to :()
Title: Re: Tidy Child Boards
Post by: Kimmie on December 13, 2009, 04:01:09 PM

So you didn't ask it to install to other themes on install in the package manager?

I have been using SMF for over 2 years and I have never had option in the package manager to install a mod to custom themes. I think you just enjoy confusing me  ;)

Quote
Yes, ultimately, if you backed up public_html before installation, you will be able to remove the mod's code that way. However, there will still be an entry in the database for the mod, so it may still show as installed, but we'll come to that after uploading the backup (I feel bad that's where it's got to :()

and thats not gonna work because I did install another mod after this one Thought it was before, but I was mistaken. Looks like I will just have to do all the GIF edits manually so whenever you have them ready, throw em at me..lol. (OR...lol... wanna do em yourself?  lol)
Title: Re: Tidy Child Boards
Post by: Arantor on December 13, 2009, 04:02:46 PM
I have been using SMF for over 2 years and I have never had a mod ask me if I wanted to install it onto custom themes. I think you just enjoy confusing me  ;)

In SMF 2, after you press Apply Mod, you get the list of edits. At the bottom of that screen is "Install on Other Themes".

Quote
and thats not gonna work because I did install another mod after this one Thought it was before, but I was mistaken. Looks liek I will just have to do all the GIF edits manually.

There aren't many of them. I think there's 2 in BoardIndex.template.php and 2 in MessageIndex.template.php. The package parser on the mod site will tell you what the 2.0 RC1.2 compatible code is (now the package supports that)
Title: Re: Tidy Child Boards
Post by: Kimmie on December 13, 2009, 04:05:25 PM
k I am gonna have to do another backup of the public folder before I do this incase something goes wrong. I will assume that the changes are within the same part of the mod code that is already there?
Title: Re: Tidy Child Boards
Post by: Arantor on December 13, 2009, 04:59:12 PM
Yup. Literally all I did when converting to 2.0 RC1.2 was edit the .png to .gif, there's no other differences. Package parser will show you the correct code for 2.0 RC1.2.
Title: Re: Tidy Child Boards
Post by: Kimmie on December 13, 2009, 05:40:34 PM
k well I made all the changes, and it looks like everything is working ok. No errors in the log and the images are all pulling correctly now.

Thanks for adding the 2.0 RC1.2 support on the mod. :)
Title: Re: Tidy Child Boards
Post by: perplexed on December 14, 2009, 12:39:00 PM
I hate Internet Explorer!

I installed this mod a few days ago and it looks really good... in firefox and opera.  I didn't bother to look in IE because I don't use it and didn't expect it to look any different.  However I had to use it today and I have the mod set to two columns, but in IE7, it shows column one and then column two is directly underneath it.  As though it's not wide enough to display them side by side if you know what I mean.  Anyway unless you know how to fix this stupid IE problem, I will have to uninstall it, and I would like to keep it, as it looks so nice in other browsers. :(

edit:  I just switched it to three columns and that displays it in two columns side by side and then one underneath.

I'm using the Curve default theme and the Chocolate curve theme and 2.0 RC2.
Title: Re: Tidy Child Boards
Post by: Arantor on December 14, 2009, 04:33:05 PM
Unfortunately I don't have IE7 so I wasn't able to test it on that (I only have IE8 whereupon it looks just fine)

Can you show me a screenshot of exactly what you get please?
Title: Re: Tidy Child Boards
Post by: perplexed on December 14, 2009, 05:09:20 PM
yeah I know what you mean *kicks stupid IE7-using members* It didn't even occur to me to look at it until today, and that was accidental.

ok, in firefox it looks like this

(http://i279.photobucket.com/albums/kk151/stillperplexed/tidyboardsinfirefox.png)

and in IE7 it looks like this

(http://i279.photobucket.com/albums/kk151/stillperplexed/tidyboardsinIE7.png)
Title: Re: Tidy Child Boards
Post by: Arantor on December 14, 2009, 05:12:56 PM
Argh, I agree IE can be a pain.

Core problem is that IE does something funky with respect to margins. I'm going to have to see if I can't get hold of an environment where I can test using IE 7.

I'm thinking messing with the margins in the .css file the mod comes with might help, possibly changing from 0 0 0 1 to 0 0 0 -1... or 0 1 0 0 instead (keeping the same units)
Title: Re: Tidy Child Boards
Post by: FragaCampos on December 15, 2009, 08:00:59 PM
I there. Thanks for the mod, it works just fine on SMF 1.1.11.

I would like to ask the following: is it possible to organize the child-boards in just one column?
Title: Re: Tidy Child Boards
Post by: Arantor on December 15, 2009, 08:06:23 PM
Not with the mod as it stands. It could be modified to do so but it's not something I'm planning on adding any time soon to be honest.
Title: Re: Tidy Child Boards
Post by: FragaCampos on December 15, 2009, 08:30:52 PM
It's just that the layout changes with resolution, and with one column some boards would be prettier...
But thanks anyway.
Title: Re: Tidy Child Boards
Post by: h78509 on December 16, 2009, 12:07:31 AM
Am I an idiot because I cannot find where to setup this mod? I've looked everywhere.
Title: Re: Tidy Child Boards
Post by: Spoogs on December 16, 2009, 01:40:47 AM
Am I an idiot because I cannot find where to setup this mod? I've looked everywhere.

Admin>Configuration>Features and Options>Layout (scroll down to arrange child boards into columns)
Title: Re: Tidy Child Boards
Post by: Arantor on December 16, 2009, 03:59:56 AM
It's just that the layout changes with resolution, and with one column some boards would be prettier...

That would also imply configuration per parent board, which I'm definitely not going to be adding any time soon.

Am I an idiot because I cannot find where to setup this mod? I've looked everywhere.

1.1: Admin > Features and Layout > Layout

2.0: Admin > Features and Options > Layout (about 1/3 the way down the page)
Title: Re: Tidy Child Boards
Post by: h78509 on December 16, 2009, 04:43:28 AM
Am I an idiot because I cannot find where to setup this mod? I've looked everywhere.

1.1: Admin > Features and Layout > Layout

2.0: Admin > Features and Options > Layout (about 1/3 the way down the page)

Thanks! Wow, I cannot believe I missed that.
Title: Re: Tidy Child Boards
Post by: perplexed on December 16, 2009, 06:33:42 AM
Argh, I agree IE can be a pain.

Core problem is that IE does something funky with respect to margins. I'm going to have to see if I can't get hold of an environment where I can test using IE 7.

I'm thinking messing with the margins in the .css file the mod comes with might help, possibly changing from 0 0 0 1 to 0 0 0 -1... or 0 1 0 0 instead (keeping the same units)

Sorry, I misread this.  Did you mean I should mess with the css and see what happens?
Title: Re: Tidy Child Boards
Post by: Arantor on December 16, 2009, 06:55:44 AM
Yeah, have a mess with the CSS file it comes with and see what happens. I haven't had chance to try it.
Title: Re: Tidy Child Boards
Post by: Sudhakar Arjunan on December 16, 2009, 04:24:23 PM
Such an Wonderful mod you have done.

Best suite all big boards.

Thanks for the excellent work you have done.
Title: Re: Tidy Child Boards
Post by: nina-nina on December 19, 2009, 12:26:19 PM
Thank you!Thank you!Thank you!Thank you!Thank you!Thank you!  :D
I requested this mod a while ago because I have in my forum the old (Aligned...etc.) and you told me that there were some violations in the old mod. So, today, I am planning to remove the old one and came here to check on the status of the request and IT IS DONE!!!!  WooHoo!
Question:  Do I have to remove the old version before installing this one? Please tell me what would be the procedure because I don't want to wipe my forum up. :-\
Title: Re: Tidy Child Boards
Post by: Arantor on December 19, 2009, 12:27:13 PM
Yes, you do need to remove the old version. I can't really comment on it since I have no idea what code is in it (I didn't look)

Try uninstalling it from the packages area first.

(Note, I didn't just refit the original mod. This is completely from scratch construction.)
Title: Re: Tidy Child Boards
Post by: Cruncher Pete on December 21, 2009, 03:33:29 AM
On my localhost using WAMP I installed SMF 2.0 RC2 using the default theme Curve. No mods installed accept replacing logo with img same size as original text message using the Admin panel.

On installing Tidy Child Boards, I got an error message: Test failed ./Sources/BoardIndex.php.  I went ahead and installed mod as messages here indicated that this might have had something to do with the original  Core Theme and it should be safe to install. Indications are that it did install OK, however I see no change at all in  my nine child boards layout.  Have I missed a configuration or have I got deeper problems?
Title: Re: Tidy Child Boards
Post by: Arantor on December 21, 2009, 03:53:20 AM
On installing Tidy Child Boards, I got an error message: Test failed ./Sources/BoardIndex.php.  I went ahead and installed mod as messages here indicated that this might have had something to do with the original  Core Theme and it should be safe to install. Indications are that it did install OK, however I see no change at all in  my nine child boards layout.  Have I missed a configuration or have I got deeper problems?

A change is made to the main board index code, i.e. Sources/BoardIndex.php which this mod requires. You need to add those changes to make it work on *any* theme.
Title: Re: Tidy Child Boards
Post by: Cruncher Pete on December 21, 2009, 05:59:47 AM
On installing Tidy Child Boards, I got an error message: Test failed ./Sources/BoardIndex.php.  I went ahead and installed mod as messages here indicated that this might have had something to do with the original  Core Theme and it should be safe to install. Indications are that it did install OK, however I see no change at all in  my nine child boards layout.  Have I missed a configuration or have I got deeper problems?

A change is made to the main board index code, i.e. Sources/BoardIndex.php which this mod requires. You need to add those changes to make it work on *any* theme.
Thank you for that info but I feel I am still missing something here. I  would have thought the Mod would add those changes (Note I said it installed OK so it said). How, and what do I add?
Title: Re: Tidy Child Boards
Post by: Arantor on December 21, 2009, 06:01:00 AM
It will add them, if you don't have a BoardIndex.php otherwise modified.

Something you already have installed modifies the BoardIndex.php file in such a way that my mod can't just install itself. Without seeing that file I can't tell you what to edit specifically, though we have a general guide in Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0).
Title: Re: Tidy Child Boards
Post by: Cruncher Pete on December 21, 2009, 05:50:12 PM
It will add them, if you don't have a BoardIndex.php otherwise modified.

Something you already have installed modifies the BoardIndex.php file in such a way that my mod can't just install itself. Without seeing that file I can't tell you what to edit specifically, though we have a general guide in Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0).

I think we are misunderstanding each other here.  In my original request I stated that what I am using and said no other mods installed.  I think I also said later that the project appeared to install OK but I do not see any changes.  Sorry for the confusion.  I found out MY error.  The mod needs to be set via an option before it can be used.  The problem is that the location of this option is obscure and in my opinion as a newbie it should be included in the Description of the Mod.  Something like: Following installation of the Mod, please go to [wherever it is located] and set your options.

Thank you for your assistance and for the Mod
Title: Re: Tidy Child Boards
Post by: Arantor on December 21, 2009, 05:52:01 PM
I did actually add a screenshot of it where it is, but yeah, I can add a better description - I see what you mean now I look at it again. Thanks for the heads-up, I'll add it now.

/me would note however that even given instructions, pictures and even a redirection to the relevant screen, people have still asked me in the past...
Title: Re: Tidy Child Boards
Post by: IchBin™ on December 24, 2009, 08:55:41 PM
It looks like when you turn the option on to show the new image next to sub board, the image is pointing to theme_name/images/new.gif. Shouldn't it be pointing to theme_name/images/langauge_name/new.gif ?
Title: Re: Tidy Child Boards
Post by: Arantor on December 24, 2009, 09:00:23 PM
It probably should, though it displays [new] images on both 1.1 and 2.0... hmm.

/me will fix that as well as a stupid bug in the package-info.xml for the 1.1 version in the next release.
Title: Re: Tidy Child Boards
Post by: akbora on December 28, 2009, 11:58:28 AM
IE 6 and IE 7 with problem like previous member's problems. It is solved? How.

Great and super mod but IE?
Title: Re: Tidy Child Boards
Post by: lexa90 on December 28, 2009, 12:04:54 PM
Amazing mod Arantor!
Title: Re: Tidy Child Boards
Post by: raven85 on December 28, 2009, 12:10:50 PM
Awesome mod! Congrats!
Title: Re: Tidy Child Boards
Post by: Arantor on December 28, 2009, 12:28:25 PM
IE 6 and IE 7 with problem like previous member's problems. It is solved? How.

Great and super mod but IE?

Never said it was solved. I don't have IE 6 or 7 available right now to test this either.
Title: Re: Tidy Child Boards
Post by: ianus on December 28, 2009, 03:56:07 PM
Greetings!

For my SMF1 I have to make this changes manually - and I'm really glad, that this is a mod now.

Thanks a lot!

Feel free to use this as German translation.
(Will fit utf-8 also)

Code: [Select]
$txt['tidy_child_boards'] = 'Ordne Unterforen in Kolumnen an';
$txt['tidy_child_boards_no'] = 'Keine Kolumnen verwenden (default)';
$txt['tidy_child_boards_2col'] = 'Zwei Kolumnen';
$txt['tidy_child_boards_3col'] = 'Drei Kolumnen';
$txt['tidy_child_boards_4col'] = 'Vier Kolumnen';
$txt['tidy_child_boards_icon'] = 'Zeige kleines Icon neben Unterforen';
$txt['tidy_child_boards_bold'] = 'Hebe ungelesene Unterforen hervor';
$txt['tidy_child_boards_new'] = 'Zeige [new] Icon neben ungelesenen Unterforen';
Title: Re: Tidy Child Boards
Post by: Arantor on December 28, 2009, 04:11:26 PM
Thanks :)

I'll add that to the next version.
Title: Re: Tidy Child Boards
Post by: GohighVoltage on December 30, 2009, 04:24:14 PM
Great Mod,  And don't worry about the IE6 and IE7 ordeal.  Not that big of a deal and most people will be upgrading anyway.

Your mod is not the only thing that has ordeals with IE6 and IE7,  heck websites have issues with them.   That is why IE8 has compatibility view now.

Title: Re: Tidy Child Boards
Post by: Arantor on December 30, 2009, 04:55:40 PM
That is why IE8 has compatibility view now.

IE8 compatibility view is designed BECAUSE of IE7 issues - it uses the IE7 renderer instead of the more standards compliant (and less buggy, actually) IE8 renderer.

Hopefully the changes in 1.2 will help :)
Title: Re: Tidy Child Boards
Post by: Özgür on December 30, 2009, 06:48:48 PM
Nice mod Arantor. And one report
Code: [Select]
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> '; should be
Code: [Select]
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" /> ';
Title: Re: Tidy Child Boards
Post by: Arantor on December 30, 2009, 06:59:45 PM
Thanks - but which version of the mod, which theme edit? And which entry in question? That code is used in multiple places (and I'm sure I just copy/pasted from SMF's own...)
Title: Re: Tidy Child Boards
Post by: Özgür on December 30, 2009, 07:29:37 PM
Thanks - but which version of the mod, which theme edit? And which entry in question? That code is used in multiple places (and I'm sure I just copy/pasted from SMF's own...)
Boardindex.template edit. In last version of mod and smf 2.0 RC2.
Function is
Code: [Select]
template_tidy_children()And line is
Code: [Select]
foreach($child_block as $child) {
echo '
<li>';

if(!empty($modSettings['tidy_child_boards_icon']))
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
=)
Title: Re: Tidy Child Boards
Post by: Arantor on December 30, 2009, 07:30:44 PM
Huh, affects all the edits :(

Thanks for catching it, I'll fix it shortly.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 04:41:30 PM
How can i change it from this
(http://i50.tinypic.com/2v01j7q.png)

to this
(http://i46.tinypic.com/i4oajn.png)

where theres a different color box separating child boards from parent boards?
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 04:44:02 PM
Why does everyone figure I know about styles and making it look pretty?


Anyhow, what colour? You need to add something to the CSS file, to a new block for .board_children but until I know the colour, I can't tell you what.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 05:34:41 PM
(http://i48.tinypic.com/300znnn.png)
It looks like this without the tidy child boards, so i guess like this
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 05:37:22 PM
So, um, what exactly are you hoping for? To me that area where the child boards are appears to be exactly the same colour?
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 05:41:19 PM
I just want the line separating child boards from parent boards, and the space where the parent boards is are windowsbg2, and the childboard windowsbg3
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 05:45:33 PM
Hmm, that brings me back to my previous statement, heh.

I don't actually know how best to do that. I'm really not a designer. I also know that I'm not doing things in a table, so it can't look exactly the same.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 05:47:49 PM
can you do something like this though?
just like in the picture turn the parent boards space to windowsbg2 and childboards to windowsbg3 with the line separating them?
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 05:53:02 PM
No, because it's in the same container; unlike the usual which splits the containers, I don't.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 06:06:54 PM
so who can help me?
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 06:08:43 PM
Someone who knows more about templates and graphics, and ultimately CSS, than I do. The only solutions I know are uglier than what you want.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 06:11:16 PM
well what are your solutions?  :-\
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 06:12:45 PM
Dropping an <hr /> into it with custom styling just above the newly added code in BoardIndex.template.php and MessageIndex.template.php
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 06:26:58 PM
ok thats fine can you give me a code for that
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 06:28:37 PM
So what colour is the dividing line supposed to be?
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 06:32:05 PM
idk but if you put an <hr /> above the code, the forum will make it that color automatically
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 06:34:45 PM
I didn't know what colour the forum theme would make it.

The <hr /> should go in just after <div class="board_children"> in BoardIndex.template.php and MessageIndex.template.php.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 07:06:09 PM
ok i added the <hr /> block and now theres a line above the child boards, but theres also a space above the child boards also how can i remove that space without removing the line

(http://i48.tinypic.com/2ijkf9x.png)
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 07:07:08 PM
if not remove the space how can i add the same amount of space at the bottom of the child board
Title: Re: Tidy Child Boards
Post by: Arantor on January 01, 2010, 07:18:53 PM
I don't know, sorry.
Title: Re: Tidy Child Boards
Post by: Mr. Pirate on January 01, 2010, 07:19:41 PM
ok thank you for the help though
Title: Re: Tidy Child Boards
Post by: GazOutEast on January 10, 2010, 01:05:07 AM
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
Title: Re: Tidy Child Boards
Post by: Arantor on January 10, 2010, 08:12:24 AM
Glad to know it's working for you :)
Title: Re: Tidy Child Boards
Post by: Boxerforum on January 10, 2010, 08:32:49 AM
Great mod !  It's working fine on our 2.0 RC2 forum  :D
Title: Re: Tidy Child Boards
Post by: Harvester on January 10, 2010, 08:56:21 PM
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
Title: Re: Tidy Child Boards
Post by: 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
Title: Re: Tidy Child Boards
Post by: 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.
Title: Re: Tidy Child Boards
Post by: GazOutEast on January 11, 2010, 07:26:25 AM
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
Title: Re: Tidy Child Boards
Post by: 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.

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.
Title: Re: Tidy Child Boards
Post by: Harvester on January 11, 2010, 06:59:07 PM
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
Title: Re: Tidy Child Boards
Post by: Arantor on January 11, 2010, 07:07:18 PM
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'].
Title: Re: Tidy Child Boards
Post by: GazOutEast on January 11, 2010, 09:16:06 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.

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
Title: Re: Tidy Child Boards
Post by: curlin on January 13, 2010, 11:42:09 PM
   can someone post a site to check it out please.
Title: Re: Tidy Child Boards
Post by: Arantor on January 14, 2010, 02:34:15 AM
   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!)
Title: Re: Tidy Child Boards
Post by: tekknus on January 25, 2010, 07:42:01 PM
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??
Title: Re: Tidy Child Boards
Post by: Arantor on January 25, 2010, 08:46:06 PM
You will have to edit your themes.

Please see Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
Title: Re: Tidy Child Boards
Post by: tekknus on January 25, 2010, 08:51:42 PM
OK Arantor, thanks a lot, you have a great Mod i will try apply this procedure in my themes

Title: Re: Tidy Child Boards
Post by: Arantor on January 30, 2010, 09:55:57 PM
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;
Title: Re: Tidy Child Boards
Post by: Joker™ on January 31, 2010, 12:28:23 PM
installed perfectly fine on RC2.... really one my favorites mod :D
Title: Re: Tidy Child Boards
Post by: HELLSXD on February 10, 2010, 08:11:23 PM
Does anyone know how to make the child boards like this

(http://i50.tinypic.com/28juu81.png)

Make them appear under the main things

High resolution image here

http://i50.tinypic.com/28juu81.png
Title: Re: Tidy Child Boards
Post by: GazOutEast on February 10, 2010, 11:26:43 PM
HellsXD

That looks like a moderately heavy rewrite of the mod's html positioning, plus the html poitioning for the standard template core files.

In the standard mod, the child boards are simply rearranged from a continuous CSV list, into ordered columns using the same table cell.

In the screen shot you've posted, they've been moved out of the column cell where the title (and child board names) usually live, and moved into an entire new table row.

It would need some experimenting with a second instance of the default theme Curve in order to test it, but it can be done - on the surface it's just a straight rearrangement of the table layout loop to put the table, row, and cell tags in the right places, but I suspect there might be a few "curve balls" in trying to do it.

Gaz
Title: Re: Tidy Child Boards
Post by: Arantor on February 11, 2010, 02:31:32 AM
You'd actually be totally rewriting the mod to achieve that. The way it's done is specifically written to remove it from being in the regular list of children boards to minimise template changes.

Quote
In the standard mod, the child boards are simply rearranged from a continuous CSV list, into ordered columns using the same table cell.

They're arranged in separate lists for each column, though.

Quote
It would need some experimenting with a second instance of the default theme Curve in order to test it, but it can be done - on the surface it's just a straight rearrangement of the table layout loop to put the table, row, and cell tags in the right places, but I suspect there might be a few "curve balls" in trying to do it.

Possibly. It's been a while since I wrote this, and I won't be writing this change, sorry.
Title: Re: Tidy Child Boards
Post by: MarcusJ on March 09, 2010, 05:00:42 AM
Thank you for updating this mod. 

You are a valuable asset to this community.
Title: Re: Tidy Child Boards
Post by: Arantor on March 09, 2010, 05:02:48 AM
Thanks :)

Actually, this one required about 2 minutes work to update :)
Title: Re: Tidy Child Boards
Post by: MarcusJ on March 09, 2010, 07:38:02 PM
Hello again,

Quick question.  Is it possible to make an edit (CSS?) to force the text on the child board listing (only) to be a little smaller?  I would like the child board titles to be a bit smaller than the Parent's description text.

Thanks for any help you can provide.
Title: Re: Tidy Child Boards
Post by: Arantor on March 09, 2010, 07:40:00 PM
Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:

Code: [Select]
.tidy_child ul li
{
  font-size: 90%;
}
Title: Re: Tidy Child Boards
Post by: MarcusJ on March 09, 2010, 07:47:29 PM
That worked perfectly.  Thank you very much for the quick and helpful reply.   :)
Title: Re: Tidy Child Boards
Post by: Arantor on March 09, 2010, 07:47:49 PM
Glad to be of service :)
Title: Re: Tidy Child Boards
Post by: Afro on March 10, 2010, 01:13:21 PM
Hey Arantor.

I am using this mod but i want some custom edit.

I want to underline the boards and bold them..

i am on three columns.
Title: Re: Tidy Child Boards
Post by: Arantor on March 10, 2010, 03:25:15 PM
Mind telling me what version you're on? (both SMF and mod)
Title: Re: Tidy Child Boards
Post by: Afro on March 10, 2010, 03:42:03 PM
Mind telling me what version you're on? (both SMF and mod)

i downloaded and installed it today.
so its 1.3 version.

i m on smf 2.0 RC3
Title: Re: Tidy Child Boards
Post by: Arantor on March 10, 2010, 03:43:22 PM
So you want to bold and underline the links in all the menu items? With or without new items in them? (I seem to recall already providing an option to bold child boards if they have new posts)
Title: Re: Tidy Child Boards
Post by: Afro on March 10, 2010, 04:04:22 PM
Yes, but i need them permanently bolded and underlined.

new post or not.
i saw the options about new post and its cool but i need them permanently bold.
the new post icon should remain though..
Title: Re: Tidy Child Boards
Post by: Arantor on March 10, 2010, 04:11:13 PM
Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:

Code: [Select]
.tidy_child ul li a
{
  font-weight: bold;
  text-decoration: underline;
}
Title: Re: Tidy Child Boards
Post by: Afro on March 10, 2010, 04:48:08 PM
Ok..
Title: Re: Tidy Child Boards
Post by: GohighVoltage on March 20, 2010, 11:57:38 AM
Something isn't right,  my rss feed icon is out of place,  and the board desciptions are big/  everything seems confused.
Please help?  Ideas?

forum.gohighvoltage.com
Title: Re: Tidy Child Boards
Post by: Arantor on March 20, 2010, 05:59:48 PM
Forum's in maintenance mode, we can't see.
Title: Re: Tidy Child Boards
Post by: GohighVoltage on March 20, 2010, 06:16:10 PM
Its on now
Title: Re: Tidy Child Boards
Post by: Arantor on March 20, 2010, 06:17:58 PM
As I think it was mentioned in this thread, there's a conflict between this and the RSS mod. I haven't looked, but hopefully the mod's new maintainer can take a proper look for you.
Title: Re: Tidy Child Boards
Post by: Bugo on March 22, 2010, 04:51:40 AM
Please add russian translation
Title: Re: Tidy Child Boards
Post by: GohighVoltage on March 22, 2010, 09:12:04 AM
My problem was due to the Twitter/Facebook mod.  I emailed them to fix.
Title: Re: Tidy Child Boards
Post by: Robbo_ on March 25, 2010, 01:03:49 PM
I am now the maintainer of this mod (just a FYI).

I think it would work better if you could select how to present the child boards for each board. As in the settings would be moved from looks and layout and into the edit board area. So you could have one board using 2 columns, one using the default method and one with 3....

What do you think?
Title: Re: Tidy Child Boards
Post by: GazOutEast on March 26, 2010, 12:07:26 AM
I am now the maintainer of this mod (just a FYI).

I think it would work better if you could select how to present the child boards for each board. As in the settings would be moved from looks and layout and into the edit board area. So you could have one board using 2 columns, one using the default method and one with 3....

What do you think?

Hi Robbo

Not sure I'd agree with your variable settings or making it on a per board basis - that could hammer resources on big sites with many hundreds of boards - it'd need a SQL query for each board to grab the settings, and SMF is already fairly resource heavy (with each extra mod demanding more).

Following this thread for a long time, the main requirement seems to be to have admin panel options for formatting the child board link appearances - Arantor already supplied one to make them bold, but other options such as underline etc keep coming up as requests.

Good luck with it (I like it just the way it is)

Gaz
Title: Re: Tidy Child Boards
Post by: Robbo_ on March 26, 2010, 01:58:21 AM
There would be no noticeable resource hit as I would add columns to the boards table and just add to the query. I would also have the current options stay where they are and used as the defaults for all boards. I don't know if it would be for the best, hence discussing :)
Title: Re: Tidy Child Boards
Post by: GohighVoltage on March 26, 2010, 09:16:18 AM
I like the mod just the way it is.  It is great.
Title: Re: Tidy Child Boards
Post by: Harry33 on March 26, 2010, 10:36:49 AM
Hi thanks to the creator of this mod.  I tried installing the mod in admin package BUT I got this error: at least one error was encountered during a test installation of this package please what should I do to fix this error. I use SMF 2.0 Rc3. Thanks
Title: Re: Tidy Child Boards
Post by: Arantor on March 26, 2010, 11:00:29 AM
Hi thanks to the creator of this mod.  I tried installing the mod in admin package BUT I got this error: at least one error was encountered during a test installation of this package please what should I do to fix this error. I use SMF 2.0 Rc3. Thanks

Means you have a mod already that disagrees with this one.
Title: Re: Tidy Child Boards
Post by: Robbo_ on March 26, 2010, 11:32:09 AM
I like the mod just the way it is.  It is great.

Ok nothing will change :)
Title: Re: Tidy Child Boards
Post by: Naota on March 29, 2010, 11:20:04 AM
I have installed tidy_child_board.
I want to remove the letter "Subforos" (subforum in english):
(http://img269.imageshack.us/img269/892/mioh.gif)

I want to make:
(http://img231.imageshack.us/img231/548/ejemplom.gif)
Without letter "subforos" and y left part. What should I change?

Thx!
Title: Re: Tidy Child Boards
Post by: tycms on April 13, 2010, 05:49:10 PM
Last Modified: March 19, 2010
Latest Version: 1.3

In BoardIndex.template.php and MessageIndex.template.php files for default (curve) and core themes:

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="">

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="">

Closing the image tags will eliminate markup validation warnings.

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" />

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="" />

Thanks.
Title: Re: Tidy Child Boards
Post by: technica on April 16, 2010, 01:53:40 PM
I have installed the MOD on my smf 1.1.11 forum, also did manual edits to boardindex.template.php file for my custom theme. Also done with settings in "layout & Options" in admin panel, BUT the mod is not working for the forum. I have it to display as 4 column, but there is no change happening on index page.

Help
Title: Re: Tidy Child Boards
Post by: technica on April 16, 2010, 02:12:14 PM
After little bit studying the core, I think the code here:

if(!empty($board['tidy_children']))
{
   $context['tidy_board'] = $board;
   template_tidy_children();
}

in BoardIndex.template.php is not working as the condition if(!empty($board['tidy_children']))   is giving value as 1 and which is true (hope so)


help please.
Title: Tidy Child Boards not working!
Post by: nickos on April 17, 2010, 01:28:07 AM
The Code : http://custom.simplemachines.org/mods/index.php?mod=2294

I installed it (not manually, just uploaded and installed), and I modified all of the things I am supposed to like how many columns and such and saved my changes, but my child boards still display the stock way. My forum:
Title: Re: Tidy Child Boards not working!
Post by: Arantor on April 17, 2010, 03:51:37 AM
Moderators: please merge this with the mod's support topic; it isn't a bug in SMF core.
Title: Re: Tidy Child Boards
Post by: ukhalik2 on April 17, 2010, 08:44:11 AM
how it will work?

I have installed now where to configure?
Title: Re: Tidy Child Boards
Post by: juliegreen on April 18, 2010, 10:45:09 AM
I am now the maintainer of this mod (just a FYI).

I think it would work better if you could select how to present the child boards for each board. As in the settings would be moved from looks and layout and into the edit board area. So you could have one board using 2 columns, one using the default method and one with 3....

What do you think?

Hi Robbo i have too much child boards, is it possible to limit the child boards from being appeared on the homepage of the forum?

thank you
Title: Re: Tidy Child Boards
Post by: Robbo_ on April 18, 2010, 11:03:19 AM
Should be easy enough to add an option in the next version.
Title: Re: Tidy Child Boards
Post by: jtoleric on April 21, 2010, 12:55:58 PM
I have 1.1.11, and I'm trying to have my child boards in one column underneath the parent board...is that possible? I just want the child boards to look the same as the parent, only they are indented under the parent.  I use a different theme, not default. Thanks for your help.
Title: Re: Tidy Child Boards
Post by: Robbo_ on April 21, 2010, 01:21:34 PM
1 column is planned in next release.
Title: Re: Tidy Child Boards
Post by: jtoleric on April 21, 2010, 01:44:00 PM
thanks, can't wait!
Title: Re: Tidy Child Boards
Post by: coldy316 on April 28, 2010, 02:25:56 AM
Okay i have the original one that arantor did and that is in board. i just recently upgraded to 2.0 rc3 and the mod is still in there
how do i take that one out when there is no uninstall just [ List Files ] [ Delete ] ..I want to add the new one that is available?

also on another note when i go to Features and Options it doesnt show up in the Layout section at all

can i just upload it over the existing one and will that over write it.
Title: Re: Tidy Child Boards
Post by: coldy316 on April 28, 2010, 05:45:04 AM
did that arantor and the mod work beautifully thanks for your help
Title: Re: Tidy Child Boards
Post by: Joker™ on May 02, 2010, 07:15:01 AM
Code: [Select]
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
Both in MessageIndex.template.php and BoardIndex.template.php

this error fails to get validate in W3C Xhtml test .... as it is not getting closed properly , it think it should be

Code: [Select]
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" /> ';
i'll ask the author of the mod to look into the case .
Title: Re: Tidy Child Boards
Post by: tycms on May 02, 2010, 10:49:32 AM
Yes sid2varun, I noticed this too.

http://www.simplemachines.org/community/index.php?topic=352963.msg2583467#msg2583467

As far as I remember it was mentioned once more before I posted it.
Title: Re: Tidy Child Boards
Post by: Arantor on May 02, 2010, 05:21:45 PM
I have little doubt it was posted - by which point I'd stopped supporting the mod...
Title: Re: Tidy Child Boards
Post by: turtlepod on May 08, 2010, 03:40:33 PM
very neat mod.... ;D
like it!

but how to make it also works on Home Page..?

this is the screen shoot:
not tidy:http://img8.imageshack.us/img8/5999/nottidy.jpg

tidy:http://img138.imageshack.us/img138/7558/tidyg.jpg
Title: Re: Tidy Child Boards
Post by: Arantor on May 08, 2010, 03:42:41 PM
Your theme has a custom BoardIndex.template.php, you will have to add the changes yourself to it.
Title: Re: Tidy Child Boards
Post by: turtlepod on May 08, 2010, 04:10:27 PM
Your theme has a custom BoardIndex.template.php, you will have to add the changes yourself to it.

thx u for a very quick reply...
i'm using SMF 1.1.11
and in this mod, it did not change boardindex.template.php,
Code: [Select]
<install for="1.1 - 1.1.99">
<modification type="file">1-1-x/install11.xml</modification>
<modification type="file">1-1-x/11-core.xml</modification>
<modification type="file">languages/english.xml</modification>
<modification type="file">languages/english_british.xml</modification>
<modification type="file">languages/german.xml</modification>
<require-file name="tidyboards.css" destination="$themes_dir/default" /><!-- one specific place since it's entirely common! -->
<code>install.php</code>
</install>

please explain how should modify my boardindex.template.php...
i'm a newbie...  :-[

thx
Title: Re: Tidy Child Boards
Post by: Arantor on May 08, 2010, 04:13:02 PM
Excuse me, I only wrote the mod. The instructions in 11-core.xml describe the changes in BoardIndex.template.php for the default theme. You apply the same changes to your custom theme's BoardIndex.template.php

Don't believe me? Go to the mod's page, pick 1.1.11 in the dropdown and select Parse. It'll show you the edits made!
Title: Re: Tidy Child Boards
Post by: turtlepod on May 08, 2010, 04:33:19 PM
Excuse me, I only wrote the mod. The instructions in 11-core.xml describe the changes in BoardIndex.template.php for the default theme. You apply the same changes to your custom theme's BoardIndex.template.php

Don't believe me? Go to the mod's page, pick 1.1.11 in the dropdown and select Parse. It'll show you the edits made!
i'm sorry...
thx for all explaination, but i can't find :    // Find all boards
where should i add this code:
Code: [Select]
if(empty($context['added_tidy_header']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1) {
if(empty($context['html_headers']))
$context['html_headers'] = '';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/tidyboards.css?1110" />
<style type="text/css">.tidy_child { width:' . floor(100/$modSettings['tidy_child_boards']) . '%; }</style>';
$context['added_tidy_header'] = 1;
}


i really sorry ...
Title: Re: Tidy Child Boards
Post by: Arantor on May 08, 2010, 04:37:17 PM
So you have a custom theme file. If you can attach it I'll take a look as to where it's supposed to be added.
Title: Re: Tidy Child Boards
Post by: turtlepod on May 09, 2010, 07:29:23 AM
sorry, i fell asleep.
it was 4 am here...
and i just found out i was editing the wrong file  :P

but, my boardindex.template.php file i think it's fine...
all tidy board code is there.
i'm using free themes from http://www.dzinerstudio.com/ , OUTLINE
 i attach my boardindex.template.php in this post.
but i tried to change the themes to one of the defaut theme, and the result is the same..
the child board is not tidy in Home Page.

thx for your help
Title: Re: Tidy Child Boards
Post by: turtlepod on May 09, 2010, 10:19:36 AM
Tidy Child board for Indonesian Language / Bahasa Indonesia
SMF ver 1.1.11

in /Themes/default/languages/Modifications.indonesian-utf8.php

Find (at the end of the file):
Code: [Select]
?>Add Before:
Code: [Select]
$txt['tidy_child_boards'] = 'Atur Anak Board dalam Kolom';
$txt['tidy_child_boards_no'] = 'Jangan tampilkan dalam Kolom (default)';
$txt['tidy_child_boards_2col'] = 'Dua Kolom';
$txt['tidy_child_boards_3col'] = 'Tiga Kolom';
$txt['tidy_child_boards_4col'] = 'Empat Kolom';
$txt['tidy_child_boards_icon'] = 'Tampilkan icon board mini di sebelah anak board';
$txt['tidy_child_boards_bold'] = 'Tampilkan anak board yang belum terbaca dalam cetakan tebal';
$txt['tidy_child_boards_new'] = 'Tampilkan gambar [new] disebelah anak board yang belum terbaca';
Title: Re: Tidy Child Boards
Post by: Arantor on May 09, 2010, 11:39:41 AM
After the code was added to BoardIndex.template.php you *did* actually configure the mod in Features and Options, right?

/me isn't sure why he's supporting the mod, that was part of the reason he gave all his mods away!
Title: Re: Tidy Child Boards
Post by: turtlepod on May 09, 2010, 11:52:37 AM
After the code was added to BoardIndex.template.php you *did* actually configure the mod in Features and Options, right?

yes..
i did the configure the mod in feature and control.
the mod works fine on child board
but not working in Homepage..
i'll try to find the problem, i'll let you know if i find the solution.
maybe it because other mod i install.
i'll try to uninstall other mod and see if it works

thx alot..

Quote
/me isn't sure why he's supporting the mod, that was part of the reason he gave all his mods away!
ROFL

 ;D
Title: Re: Tidy Child Boards
Post by: MATTEK on May 09, 2010, 06:14:32 PM
I can't seem to find where I'm to enable this mod. ACP > Boards > Settings has nothing and if I modify each boaerd and goto settings it's not there either.
Title: Re: Tidy Child Boards
Post by: Arantor on May 09, 2010, 06:17:04 PM
Where does it say it's in the board configuration area? In fact had you read the mod's own page, it even TELLS you where to look.

Quote
Once installed, you'll find these options in the Features and Options page of the admin panel:
Title: Re: Tidy Child Boards
Post by: MATTEK on May 09, 2010, 06:21:14 PM
Where does it say it's in the board configuration area? In fact had you read the mod's own page, it even TELLS you where to look.

Quote
Once installed, you'll find these options in the Features and Options page of the admin panel:

I checked and I couldn't find it so I figured it might be in there. Geeze dude. You don't gotta sound so annoyed when someone asks a question.
Title: Re: Tidy Child Boards
Post by: MATTEK on May 09, 2010, 06:30:34 PM
I get annoyed when people don't read the stuff I originally wrote.

Had you said you'd installed it, but it wasn't where it was supposed to be, that's a support issue. Instead, posting that it's somewhere other than where it's supposed to be just made me think you didn't bother to read, which generally makes me not want to bother to help.

Had you asked me before jumping to conclusions I would have told you this. Needless to say, it still isn't anywhere in my Admin CP (Boards nor Features and Options).

Friendlier support would be appreciated.
Title: Re: Tidy Child Boards
Post by: Deaks on May 09, 2010, 07:15:22 PM
Mattek, you know that arantor doesnt need to help you, hes doing it cause hes a nice guy, if it were me and not arantor, the responses would be so much different, remember if you want respect then you need to give it.
Title: Re: Tidy Child Boards
Post by: IchBin™ on May 10, 2010, 11:47:44 AM
Arantor, you were the first to assume since MATTEK didn't provide the information that he should have about not finding the mod settings in the Admin CP. If you're getting angry when providing support you're not doing yourself or this community any good.  If you gave up your mods for this reason, then I'd suggest you not suppor them. I don't think any one has been disrespectful on purpose here. Just saying...
Title: Re: Tidy Child Boards
Post by: nina-nina on May 13, 2010, 12:58:56 AM
Mattek, you know that arantor doesnt need to help you, hes doing it cause hes a nice guy, if it were me and not arantor, the responses would be so much different, remember if you want respect then you need to give it.

When and where did Mattek was disrespecful to Arantor?  Mattek just asked a question and Arantor jumped on him.  I all case, it was Arantor who was disrespectful to Mattek who came here for help. 

I came to this thread to ask a question but if I am going to be treated like a stupid I better refrain to ask a question until this mod is supported by an educated respectful person.  Thank you.
Title: Re: Tidy Child Boards
Post by: Hoodie on May 31, 2010, 02:32:06 AM
Hmm..  I'm surprised nobody has asked this question or thought of this:

How hard would this be to change to forum-wide changes to make it category specific changes?  I mean, what if I only want certain categories to be displayed in columns and others to be displayed regular..  How hard would it be to change this mod to work that way?
Title: Re: Tidy Child Boards
Post by: Robbo_ on May 31, 2010, 03:01:14 AM
Well that is kind of what I was suggesting I do. But board based. Have a forum default and then the option to change it per board. Might be better per category though do you think? I am considering either way. Finding time to do it is a problem though.
Title: Re: Tidy Child Boards
Post by: Hoodie on May 31, 2010, 03:51:09 AM
I'd like to see it either way I guess..  I mainly just can think of my use as a category basis but I'm sure there would be someone that would then want it to be on each individual board..

So I would go ahead and give it the option per board..  As you said, it wouldn't change the resource load and hopefully wouldn't be too hard to implement..

Thanks for looking into it when you get a chance..
Title: Re: Tidy Child Boards
Post by: Deaks on June 27, 2010, 06:06:48 PM
this mod doesnt seem to work on MessageIndex.template even on a fresh install!
Title: Re: Tidy Child Boards
Post by: improv on July 01, 2010, 05:06:02 PM
Did you checked it out in IE?
It appears to bug. At least, that's what it is doing for me.
Title: Re: Tidy Child Boards
Post by: TheKillers on July 22, 2010, 04:04:48 PM
Great mod! It would be good if it would be possible to change still font size of sub-forums.
Title: Re: Tidy Child Boards
Post by: MarcusJ on July 23, 2010, 11:14:22 PM
Great mod! It would be good if it would be possible to change still font size of sub-forums.

The answer is already in this thread. :)  His reply was to my inquiry about making the text smaller. 

Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:

Code: [Select]
.tidy_child ul li
{
  font-size: 90%;
}
Title: Re: Tidy Child Boards
Post by: TheKillers on July 24, 2010, 03:25:33 AM
MarcusJ, o Thanks so much! :)
Title: Re: Tidy Child Boards
Post by: sss on September 02, 2010, 07:08:16 PM
I tried to install it in 2 forums and always bring me this error

my forum version is 2.0RC3

Fatal error: Cannot redeclare template_tidy_children() (previously declared in /home/a3771126/public_html/Sources/Load.php(2083) : eval()'d code:517) in /home/a3771126/public_html/Sources/Load.php(2083) : eval()'d code on line 593
Title: Re: Tidy Child Boards
Post by: Oya on September 02, 2010, 07:11:37 PM
you installed it twice somehow
Title: Re: Tidy Child Boards
Post by: sss on September 02, 2010, 07:53:27 PM
so... i uninstall it n try again?
Title: Re: Tidy Child Boards
Post by: Oya on September 02, 2010, 07:57:43 PM
if you uninstall it part of it will still be there

go to the mods page select your version of smf and hit parse itll show you all the changes - make sure theyre all gone before reinstalling
Title: Re: Tidy Child Boards
Post by: urzo on September 13, 2010, 07:00:53 AM
Where's the support for this mod?  :-\
Title: Re: Tidy Child Boards
Post by: Afro on September 13, 2010, 07:21:52 AM
No longer supported by the author.
Title: Re: Tidy Child Boards
Post by: Robbo_ on September 13, 2010, 04:48:55 PM
I have very little time sorry.
Title: Re: Tidy Child Boards
Post by: urzo on September 14, 2010, 06:40:12 PM
Robbo, did you see my PM?  ;)
Title: Re: Tidy Child Boards
Post by: Robbo_ on September 15, 2010, 02:29:06 AM
I don't give support via PM. Either post your problem here or PM someone else.
Title: Re: Tidy Child Boards
Post by: Kat9119 on September 30, 2010, 05:36:35 PM
I'm curious if anyone knows how to get something like this to work for the child boards INSIDE the parent forum?
Title: Re: Tidy Child Boards
Post by: Oya on September 30, 2010, 05:39:01 PM
it does

only it only shows them if the child boards have children boards.

so if you have parent > child > child 2, when inside parent, child is shown normally with child 2 tidied udner it
Title: Re: Tidy Child Boards
Post by: Kat9119 on September 30, 2010, 06:00:16 PM
Well, I'm just going to have a Parent, with 12 child's inside it. I want the main index to look how the Tidy fixes it up. The child boards will not have more child boards. So, will it look nice and tidy too in the parent without the child forums having child forums? Haha thats confusing! :)
Title: Re: Tidy Child Boards
Post by: Oya on September 30, 2010, 06:26:33 PM
it must have made sense to the author as thats exactly how he wrote it to work
Title: Re: Tidy Child Boards
Post by: jjzx2sr on October 03, 2010, 12:57:08 AM
This is a great mod works well on my default curve theme. But it wont work on my custom curve theme using Anecdota, by Crip.

So before some one asks
Using

SMF 2.0 RC3

Theme


Anecdota, by Crip.

Mods


1.     SMF Bay PRO      1.0.6.1      
2.    AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)    
3.    Aeva ~ Auto-Embed Video & Audio    7.1    
4.    SMF Links    2.3    
5.    Tidy Child Boards    1.3    
6.    Ultimate Profile    0.9.1

Yes i went in to the admin panel and enabled it, like i said works well on curve but not on my custom curve based theme.

Oh yeah i selected apply to all themes when i installed it.

What else do yah need to know?
Title: Re: Tidy Child Boards
Post by: Iviiik on October 06, 2010, 08:43:41 AM
If I have Images on board and tidy child boards mod, I have little problem :( in screen ...

How fix it :( ?
Title: Re: Tidy Child Boards
Post by: Oya on October 06, 2010, 09:45:02 AM
what browser?
Title: Re: Tidy Child Boards
Post by: Iviiik on October 06, 2010, 01:35:22 PM
Firefox :)
Title: Re: Tidy Child Boards
Post by: Sabre™ on October 06, 2010, 02:50:14 PM
The browser would have nothing to do with it.
This fix comes courtesy of the infamous Arantor

You should be able to fix it by adding the following to Themes/default/tidyboards.css and refreshing the page:

Code: [Select]
.board_children { clear:left; }
Title: Re: Tidy Child Boards
Post by: Iviiik on October 06, 2010, 03:38:15 PM
Sabre : thanks  ;) it´s working
Title: Re: Tidy Child Boards
Post by: Sabre™ on October 06, 2010, 03:40:54 PM
My pleasure, and Arantors Im sure.
Enjoy :)
Title: Re: Tidy Child Boards
Post by: Kat9119 on October 10, 2010, 09:16:54 PM
Ok, so I really want to use this. I have a two column layout on my test forum and it looks great. Except for one thing. . .

All the other child boards in other areas look silly. Why? Because there are only 1 or 2 of them. I see that Robo stated he wanted to make it per board but doesn't have the time to support it anymore.

Anyhow, my question is this. Is there some way to make this mod work only on ONE parent forum (or one category) and have all other parent/categories show the child forums the same old way they used to before installing? And if so, can someone please tell me how to do it.

Basically I only need this for one area that has 12 child boards.

Thank you!
Title: Re: Tidy Child Boards
Post by: Oya on October 10, 2010, 09:23:04 PM
what board number?

you can do it by changing subs-boardindex.php like so

Code: [Select]
//For tidying boards; examine the children and realign into groups for tidying
function tidyBoards(&$board) {
global $modSettings, $context, $settings;

$limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);

Code: [Select]
//For tidying boards; examine the children and realign into groups for tidying
function tidyBoards(&$board) {
global $modSettings, $context, $settings;

if ($board['id'] != #BOARD HERE#)
return;

$limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);

where i put #BOARD HERE# that's where you put the board number if it's board 1.0 just put in 1 for example
Title: Re: Tidy Child Boards
Post by: Kat9119 on October 11, 2010, 12:59:37 AM
Thanks! I'll give it
what board number?

you can do it by changing subs-boardindex.php like so

Code: [Select]
//For tidying boards; examine the children and realign into groups for tidying
function tidyBoards(&$board) {
global $modSettings, $context, $settings;

$limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);

Code: [Select]
//For tidying boards; examine the children and realign into groups for tidying
function tidyBoards(&$board) {
global $modSettings, $context, $settings;

if ($board['id'] != #BOARD HERE#)
return;

$limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);

where i put #BOARD HERE# that's where you put the board number if it's board 1.0 just put in 1 for example

That is awesome! Thank you so much! One other question, because I'm using this, the forum icon beside the title, is pushed way at the top. How do I center it ?

Now I just need to figure out how to hide extra boards inside the parent forum on a selected forum only. And I'm all set! Someone had given me code in another topic, but it didn't appear to work because of installing Tidy Child Boards. Haven't gotten a response yet though...

If anyone here knows that would be great
Title: Re: Tidy Child Boards
Post by: MF Tlaxcala on October 11, 2010, 06:52:37 AM
This is an impressive and handy mod. Thank you. :)
Title: Re: Tidy Child Boards
Post by: Kat9119 on October 12, 2010, 11:50:50 AM
I need to hide the 1st child boards inside the first parent forum on one board. Can you tell me how to do this?
Title: Re: Tidy Child Boards
Post by: anidea on October 16, 2010, 06:56:53 PM
Hi all,

I know I read this somewhere, but can anyone confirm that this works with RC3?  I know I'll have to do a manual install, which is fine, I just want to make sure it works before I do it.

Thanks!
Title: Re: Tidy Child Boards
Post by: MF Tlaxcala on October 16, 2010, 07:11:11 PM
Hi all,

I know I read this somewhere, but can anyone confirm that this works with RC3?  I know I'll have to do a manual install, which is fine, I just want to make sure it works before I do it.

Thanks!
It works perfectly on RC3. See my forum to look at it: www.ccmasters.x10.mx
Title: Re: Tidy Child Boards
Post by: anidea on October 16, 2010, 08:15:15 PM
Hi all,

I know I read this somewhere, but can anyone confirm that this works with RC3?  I know I'll have to do a manual install, which is fine, I just want to make sure it works before I do it.

Thanks!
It works perfectly on RC3. See my forum to look at it: www.ccmasters.x10.mx

Beautiful!  Thanks :)
Title: Re: Tidy Child Boards
Post by: Glowbot on October 23, 2010, 10:19:28 AM
This doesn't work for me, I have 1.1.11 do I need to parse it? the columns don't line up, does this mod fix that?
Title: Re: Tidy Child Boards
Post by: MaXiForum.cz on November 05, 2010, 05:45:47 PM
Robbo_ please RC4 support :)
Title: Re: Tidy Child Boards
Post by: coldy316 on November 05, 2010, 09:48:40 PM
Hi all,

I know I read this somewhere, but can anyone confirm that this works with RC3?  I know I'll have to do a manual install, which is fine, I just want to make sure it works before I do it.

Thanks!

it will work fine through the installer providing your on the default core or curve..
I have it on both my 2.0rc3 boards..
Title: Re: Tidy Child Boards
Post by: DilSe on November 08, 2010, 02:50:16 PM
for RC4 ...??
Title: Re: Tidy Child Boards
Post by: live627 on November 08, 2010, 02:59:13 PM
This doesn't work for me, I have 1.1.11 do I need to parse it? the columns don't line up, does this mod fix that?
Looks like it's already installed and doing its thing
Title: Re: Tidy Child Boards
Post by: live627 on November 08, 2010, 03:12:55 PM
It already works on RC4 under emulation
Title: Re: Tidy Child Boards
Post by: Sudhakar Arjunan on November 12, 2010, 11:45:29 AM
With some small fix in package file.

This mod is working excellently in my 2.0 RC4.

Thanks for this cool mod author.
Title: Re: Tidy Child Boards
Post by: choloman05 on November 12, 2010, 03:55:40 PM
It already works on RC4 under emulation

What do you mean "under emulation" ?  Thanks
Title: Re: Tidy Child Boards
Post by: DilSe on November 13, 2010, 04:13:10 PM
With some small fix in package file.

This mod is working excellently in my 2.0 RC4.

Thanks for this cool mod author.

hello mr.A.sk   can you tell me what is small fix in package file    thanks
Title: Re: Tidy Child Boards
Post by: GazOutEast on November 22, 2010, 02:35:18 PM
@ live627 - there is no "emulation" mode in SMF 2.0 RC4 - none that I can find anyway

@ A.SK - please tell which modifications to the file are needed - I've tried all available versions and get this every time
Quote
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Thanks
Gaz
Title: Re: Tidy Child Boards
Post by: MaXiForum.cz on November 22, 2010, 02:43:41 PM
GazOutEast I tested it at my test forum RC4.
This modification already works on RC4 under emulation RC3!
Try it...
Title: Re: Tidy Child Boards
Post by: live627 on November 29, 2010, 12:32:30 AM
@ live627 - there is no "emulation" mode in SMF 2.0 RC4 - none that I can find anyway
Did you search the new wiki?
Title: Re: Tidy Child Boards
Post by: Bugo on November 29, 2010, 01:41:58 AM
It already works on RC4 under emulation

What do you mean "under emulation" ?  Thanks
Look at screenshot :)
Title: Re: Tidy Child Boards
Post by: jjzx2sr on December 03, 2010, 11:46:46 PM
It installs fine once the package downloader is set to emulate RC3 in the advanced options. Couldn't have worked any easier.
Title: Re: Tidy Child Boards
Post by: jjzx2sr on December 03, 2010, 11:48:09 PM
On a side note it would be nice to see this upgraded to RC4 for posterity sake lol. Has to be one of my Fav mods.
Title: Re: Tidy Child Boards
Post by: Shrinath on December 05, 2010, 11:49:59 AM
Not working with 1.1.12
Title: Re: Tidy Child Boards
Post by: Shrinath on December 06, 2010, 11:00:14 AM
Also not working with RC4.. :'(
Title: Re: Tidy Child Boards
Post by: Spoogs on December 06, 2010, 11:13:33 AM
As already stated it installs and works just fine on RC4... read just few posts back and you'll see how its done.
Title: Re: Tidy Child Boards
Post by: Mari-chi on January 22, 2011, 02:42:17 PM
Wondering if anyone's had a problem with the layout using IE9? :3

This is what it looks like in IE: http://ow.ly/3Iryo
This is what it looks like in FF (and how it's supposed to look): http://ow.ly/3Irz5
Title: Re: Tidy Child Boards
Post by: Arantor on January 22, 2011, 02:46:58 PM
It's been broken in IE since pretty much forever because of weird things IE does with indentation of lists.

As a workaround, you could make this change in BoardIndex.php:
Code: (find) [Select]
floor(100/$modSettings['tidy_child_boards'])
Code: (replace) [Select]
floor(100/($context['browser']['is_ie'] ? $modSettings['tidy_child_boards'] + 1 : $modSettings['tidy_child_boards']))
Not tested but it would force the columns to be narrower in IE which should fix the issue.
Title: Re: Tidy Child Boards
Post by: Mari-chi on January 22, 2011, 05:46:28 PM
Yay, that worked! I just changed the '100' to '130' because some of the list items were long, and were cut off. :3

You rock my world!! <3
Title: Re: Tidy Child Boards
Post by: Mari-chi on January 22, 2011, 10:03:59 PM
D: I saw the columns were messy in Firefox as soon as I had the chance to look at it. :( I assumed, mistakenly, that the "100" was in pixels, ha. Changed the 130 back to 100 to make the columns neat in FF again! IE can go eat poop. :P
Title: Re: Tidy Child Boards
Post by: Eyesman on January 23, 2011, 03:11:06 AM
Hello,

I have an smf v.1.1.12 and I have installed this mod but it doesn't work as it should. My child board remail as they were. I'm using the default theme of smf.

Is there a configuration page?

Thanx.
Title: Re: Tidy Child Boards
Post by: HunterP on February 03, 2011, 12:52:21 AM
I have an smf v.1.1.12 and I have installed this mod but it doesn't work as it should. My child board remail as they were. I'm using the default theme of smf.

Doesn't work on my 1.1.12 board either. The boardindex got messed up and the messageindex didn't change at all.
No errors on installation...
Title: Re: Tidy Child Boards
Post by: HunterP on February 03, 2011, 08:12:33 AM

Sorry, not meaning to be impatient, but really can't get it working. First of all the boardindex got messed up. Maybe I needed to make a screenshot, but instead I removed the code for BoardIndex.php and BoardIndex.template.php as I'm only interested in the part which modifies the MessageIndex. That shouldn't cause any problems for the MessageIndex, does it?

The MessageIndex doesn't change at all. I temporarily removed the IF-clauses, just to see if it would make any difference, but it didn't.

SMF 1.1.12
MOD v1.3
FireFox/IE

Link to one of my boards :

http://www.hulpverleningsforum.nl/forum/index.php?board=54.0

We are planning to increase the number of children in this board, that's why  ;)
Title: Re: Tidy Child Boards
Post by: HunterP on February 03, 2011, 01:03:06 PM
Firstly, you linked to a board, which means MessageIndex.template.php is being used not BoardIndex.template.php.

Correct. I only want the MessageIndex to be altered, not the BoardIndex. So the link I provided should be the correct one?

Secondly, that board is behaving exactly as I would expect it to, seeing that it doesn't relay the normal child boards but child boards only, i.e. the child boards of a parent are altered on the front index, and also the child boards of child boards (i.e. when presented as child boards) in the message index. So I would expect nothing to occur in the message index unless some of THOSE had children - which they don't.

I don't really understand what you're telling here. If I look at this screenshot :

(http://www.hulpverleningsforum.nl/sub-boards.png)

Isn't that the MessageIndex? If so, I can't get my MessageIndex(es) altered like this, whatever setting I try.

Thirdly, it doesn't appear to be turned on from the Features and Options panel, so it's not been told to use anything other than the default. You know, the setting I mentioned in the mod description...

Whether I set it to two, three or four columns, nothing happens  :(
Title: Re: Tidy Child Boards
Post by: HunterP on February 03, 2011, 03:15:04 PM
Yes, that's the message index. But as demonstrated it will only do anything if the boards shown in the message index have child boards themselves. NONE of your boards in the presented link do so, so it does nothing.

Sorry Arantor, sorry... I must have misunderstood the purpose of this modification.

In the screenshot, New Boards is already a child? So we have, lets say :

Parent -> New Board -> Child 1
Parent -> New Board -> etc

If so, your mod unfortunately is not usefull for me :(

Unless you can provide me modified code which allows me to the same with 'first level' child boards?
Title: Re: Tidy Child Boards
Post by: HunterP on February 05, 2011, 12:51:51 PM

I've created something similar myself. This exactly fits my needs.

http://www.hulpverleningsforum.nl/forum/index.php?board=6.0

And, in case you're wondering, an odd number of children :

http://www.hulpverleningsforum.nl/forum/index.php?board=4.0
Title: Re: Tidy Child Boards
Post by: Slateer on February 06, 2011, 10:04:18 PM
why no shange can 1 column?  :(
Title: Re: Tidy Child Boards
Post by: Neo_TE on February 16, 2011, 06:49:54 AM
Also not working with RC4.. :'(
Works properly in RC5. To get this mod to work in SMF 2.0 RC4/RC5 do the following edits in the "package-info.xml" file.

Find :
Code: [Select]
<install for="2.0 RC2, 2.0 RC3">
Replace With :
Code: [Select]
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">


Find :
Code: [Select]
<uninstall for="2.0 RC2, 2.0 RC3">
Replace With :
Code: [Select]
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
Title: Re: Tidy Child Boards
Post by: HunterP on February 16, 2011, 09:44:51 AM
Replace With :
Code: [Select]
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">

Why not

Code: [Select]
<install for="2.0 RC2 - 2.0 RC5">
??
Title: Re: Tidy Child Boards
Post by: HunterP on February 16, 2011, 10:06:35 AM
Because they're not treated as numbers. They're discrete blocks.

Ok, thanks!  ;)
Title: Re: Tidy Child Boards
Post by: rugrat on February 28, 2011, 06:54:26 PM
Doesn’t seem to work in RC5. If you select 2 columns it displays underneath like this instead of beside each other.

Child 1
Child 2
Child 3

Child 4
Child 5

Using IE7. Haven't tried another browser
Title: Re: Tidy Child Boards
Post by: Spoogs on February 28, 2011, 06:59:35 PM
go back 1 page to find a solution
Title: Re: Tidy Child Boards
Post by: rugrat on February 28, 2011, 07:04:09 PM
go back 1 page to find a solution

Thanks yes I figured it was a browser thing cause I tried Safari 5.0.3 and it looks fine. Very nice mod. I'll give it a try. Thanks again

EDIT: That worked. **thumbsup**

That also got rid of the Child Boards wording which I wanted gone or changed :) This should be incorporated into SMF IMO.
Title: Re: Tidy Child Boards
Post by: Average Mom on March 06, 2011, 09:29:48 PM
Nice mod, works great, thanks so much!
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 09:09:56 AM
mine got issues hows this the spacing look inappropriate.. Im using 3 columns here.

(http://i52.tinypic.com/2nr3eqe.png)

also when i use 2 columns the 3rd link sperates itself from the 2

help please
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 09:32:03 AM
Hi sir your great!

I have check with explorer before posting my issues. this happens also with firefox and chrome

if you could direct me to page to focus on would appreciate it. i have read page 1 to 4 and the issues

that i found is with the browser

 :(
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 09:47:49 AM
pls see attats file
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 10:04:45 AM
ohh sorry i misunderstood

uploadingtips.com
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 10:44:30 AM
its installed before i raised the issue sir...
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 11:02:44 AM
here is were it is installed

smf/Themes/AvaraMu/tidyboards.css
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 11:30:37 AM
anyway sir this is just the scripts on the file

Code: [Select]
.tidy_child ul {
list-style:none;
padding:0 0.5em 0 0.5em;
}

.tidy_child {
display:block;
float:left;
}
Title: Re: Tidy Child Boards
Post by: nubieteky on March 07, 2011, 09:58:47 PM
Hi Sir Now  is working perfectly (transferred the file to default themes folder)!!! The childboards adjusts to a strategical position if I add a new sub-board. no spaces in between now!

 How could i thank you more..........   ;D

Title: Re: Tidy Child Boards
Post by: coldy316 on March 08, 2011, 11:22:03 AM

 Is the mod going to be updated for the latest smf 2.0RC5
Title: Re: Tidy Child Boards
Post by: coldy316 on March 08, 2011, 12:18:45 PM
Or you can use the Admin > Packages > Browse Packages > Advanced option to enter 2.0 RC3 instead...

arantor your a legend on this and thanks for the awesome tip on it... works fine on the 2.0RC5

Title: Re: Tidy Child Boards
Post by: RvG on March 08, 2011, 01:10:22 PM
thank you so much... it works fine with rc5
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 06:57:14 AM
I was using IE most of the time but in FF the small board icon doesn't displayed.

Here's my code for Board Index

Code: [Select]
function template_main()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

   // Show some statistics if stat info is off.
   if (!$settings['show_stats_index'])
      echo '
   <p id="stats">
      ', $txt['members'], ': ', $context['common_stats']['total_members'], ' &nbsp;&#8226;&nbsp; ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' &nbsp;&#8226;&nbsp; ', $txt['topics'], ': ', $context['common_stats']['total_topics'], '
      ', ($settings['show_latest_member'] ? '<br />' . $txt['welcome_member'] . ' <strong>' . $context['common_stats']['latest_member']['link'] . '</strong>' . $txt['newest_member'] : '') , '
   </p>';

   // Show the news fader?  (assuming there are things to show...)
   if ($settings['show_newsfader'] && !empty($context['fader_news_lines']))
   {
      echo '
   <div class="tborder marginbottom">
      <h3 id="newsfader" class="catbg">
         <img id="newsupshrink" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" align="bottom" style="display: none;" />
         ', $txt['news'], '
      </h3>
      <div class="windowbg2" id="smfNewsFader">
         <div id="smfFadeScroller"><span>', $context['news_lines'][0], '</span></div>
      </div>
   </div>
   <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/fader.js"></script>
   <script type="text/javascript"><!-- // --><![CDATA[

      // Create a news fader object.
      var oNewsFader = new smf_NewsFader({
         sSelf: \'oNewsFader\',
         sFaderControlId: \'smfFadeScroller\',
         aFaderItems: [
            "',
            implode('",
            "', $context['fader_news_lines']), '"],
         sItemTemplate: ', JavaScriptEscape('<strong>%1$s</strong>'), ',
         iFadeDelay: ', empty($settings['newsfader_time']) ? 5000 : $settings['newsfader_time'], '
      });

      // Create the news fader toggle.
      var smfNewsFadeToggle = new smc_Toggle({
         bToggleEnabled: true,
         bCurrentlyCollapsed: ', empty($options['collapse_news_fader']) ? 'false' : 'true', ',
         aSwappableContainers: [
            \'smfNewsFader\'
         ],
         aSwapImages: [
            {
               sId: \'newsupshrink\',
               srcExpanded: smf_images_url + \'/collapse.gif\',
               altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
               srcCollapsed: smf_images_url + \'/expand.gif\',
               altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
            }
         ],
         oThemeOptions: {
            bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
            sOptionName: \'collapse_news_fader\',
            sSessionVar: ', JavaScriptEscape($context['session_var']), ',
            sSessionId: ', JavaScriptEscape($context['session_id']), '
         },
         oCookieOptions: {
            bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
            sCookieName: \'newsupshrink\'
         }
      });
   // ]]></script>';
   }

   /* Each category in categories is made up of:
   id, href, link, name, is_collapsed (is it collapsed?), can_collapse (is it okay if it is?),
   new (is it new?), collapse_href (href to collapse/expand), collapse_image (up/down image),
   and boards. (see below.) */
   foreach ($context['categories'] as $category)
   {
      // If theres no parent boards we can see, avoid showing an empty category (unless its collapsed)
      if (empty($category['boards']) && !$category['is_collapsed'])
         continue;

      echo '
   <div class="categoryframe tborder clearfix">
      <h3 class="catbg', $category['new'] ? '2' : '', '">';

      if (!$context['user']['is_guest'] && !empty($category['show_unread']))
         echo '
         <a class="floatright" href="', $scripturl, '?action=unread;c=', $category['id'], '">', $txt['view_unread_category'], '</a>';

      // If this category even can collapse, show a link to collapse it.
      if ($category['can_collapse'])
         echo '
         <a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a>&nbsp;';

      echo $category['link'];

      echo '
      </h3>';

      // Assuming the category hasn't been collapsed...
      if (!$category['is_collapsed'])
      {
         echo '
      <table cellspacing="1" class="bordercolor boardsframe">';

         /* Each board in each category's boards has:
         new (is it new?), id, name, description, moderators (see below), link_moderators (just a list.),
         children (see below.), link_children (easier to use.), children_new (are they new?),
         topics (# of), posts (# of), link, href, and last_post. (see below.) */
         foreach ($category['boards'] as $board)
         {
            if(!empty($board['children']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
               tidyBoards($board);
            echo '
         <tr>
            <td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon">
               <a href="', ($board['is_redirect'] || $context['user']['is_guest'] ? $board['href'] : $scripturl . '?action=unread;board=' . $board['id'] . '.0;children'), '">';

            // If the board or children is new, show an indicator.
            if ($board['new'] || $board['children_new'])
               echo '
                  <img src="', $settings['images_url'], '/on', $board['new'] ? '' : '2', '.gif" alt="', $txt['new_posts'], '" title="', $txt['new_posts'], '" border="0" />';
            // Is it a redirection board?
            elseif ($board['is_redirect'])
               echo '
                  <img src="', $settings['images_url'], '/redirect.gif" alt="*" title="*" border="0" />';
            // No new posts at all! The agony!!
            else
               echo '
                  <img src="', $settings['images_url'], '/off.gif" alt="', $txt['old_posts'], '" title="', $txt['old_posts'], '" />';

            echo '
               </a>
            </td>
            <td class="windowbg2 info">
               <h4><a href="', $board['href'], '" name="b', $board['id'], '">', $board['name'], '</a>';

            // Has it outstanding posts for approval?
            if ($board['can_approve_posts'] && ($board['unapproved_posts'] || $board['unapproved_topics']))
               echo '
                  <a href="', $scripturl, '?action=moderate;area=postmod;sa=', ($board['unapproved_topics'] > 0 ? 'topics' : 'posts'), ';brd=', $board['id'], ';', $context['session_var'], '=', $context['session_id'], '" title="', sprintf($txt['unapproved_posts'], $board['unapproved_topics'], $board['unapproved_posts']), '" class="moderation_link">(!)</a>';

            echo '
               </h4>
               <p>', $board['description'] , '</p>';

            // Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
            if (!empty($board['moderators']))
               echo '
               <p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

            if(!empty($board['tidy_children'])) {
               $context['tidy_board'] = $board;
               template_tidy_children();
            }
            // Show some basic information about the number of posts, etc.
               echo '
            </td>
            <td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg stats smalltext">
               ', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
               ', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
            </td>
            <td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext lastpost">';

            /* The board's and children's 'last_post's have:
            time, timestamp (a number that represents the time.), id (of the post), topic (topic id.),
            link, href, subject, start (where they should go for the first unread post.),
            and member. (which has id, name, link, href, username in it.) */
            if (!empty($board['last_post']['id']))
               echo '
               <strong>', $txt['last_post'], '</strong>  ', $txt['by'], ' ', $board['last_post']['member']['link'] , '<br />
               ', $txt['in'], ' ', $board['last_post']['link'], '<br />
               ', $txt['on'], ' ', $board['last_post']['time'];
            echo '
            </td>
         </tr>';

            // Show the "Child Boards: ". (there's a link_children but we're going to bold the new ones...)
            if (!empty($board['children']))
            {
               // Sort the links into an array with new boards bold so it can be imploded.
               $children = array();
               /* Each child in each board's children has:
                     id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
               foreach ($board['children'] as $child)
               {
                  if (!$child['is_redirect'])
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
                  else
                     $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

                  // Has it posts awaiting approval?
                  if ($child['can_approve_posts'] && ($child['unapproved_posts'] || $child['unapproved_topics']))
                     $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > 0 ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

                  $children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
               }
               echo '
         <tr>
            <td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>
         </tr>';
            }
         }
         echo '
      </table>';
      }
      echo '
   </div>';
   }

   if ($context['user']['is_logged'])
   {
      echo '
   <div id="modbuttons_bottom" class="modbuttons clearfix">
      <div id="posticons" class="clearfix marginbottom">
         <div class="smalltext floatleft">
            <img src="', $settings['images_url'], '/new_some.gif" alt="" align="middle" /> ', $txt['new_posts'], '
            <img src="', $settings['images_url'], '/new_none.gif" alt="" align="middle" style="margin-left: 4ex;" /> ', $txt['old_posts'], '
         </div>';

         // Mark read button.
         $mark_read_button = array(
            'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;' . $context['session_var'] . '=' . $context['session_id']),
         );

         // Show the mark all as read button?
         if ($settings['show_mark_read'] && !empty($context['categories']))
            template_button_strip($mark_read_button, 'top');

         echo '
         </div>
   </div>';
   }

   template_info_center();
}

Code: [Select]
function template_info_center()
{
   global $context, $settings, $options, $txt, $scripturl, $modSettings;

   // Here's where the "Info Center" starts...
   echo '
   <div class="tborder clearfix" id="infocenterframe">
      <h3 class="catbg">
         <img id="upshrink_ic" src="', $settings['images_url'], '/collapse.gif" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />
         ', sprintf($txt['info_center_title'], $context['forum_name_html_safe']), '
      </h3>
      <div id="upshrinkHeaderIC"', empty($options['collapse_header_ic']) ? '' : ' style="display: none;"', '>';

   // This is the "Recent Posts" bar.
   if (!empty($settings['number_recent_posts']))
   {
      echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $txt['recent_posts'], '</h4>
            <div class="windowbg">
               <p class="section">
                  <a href="', $scripturl, '?action=recent"><img src="', $settings['images_url'], '/post/xx.gif" alt="', $txt['recent_posts'], '" /></a>
               </p>
               <div class="windowbg2 sectionbody hslice clearfix" id="recent_posts_content"><div class="entry-title" style="display: none;">', $context['forum_name_html_safe'], ' - ', $txt['recent_posts'], '</div><div class="entry-content" style="display: none;"><a rel="feedurl" href="', $scripturl, '?action=.xml;type=webslice">', $txt['subscribe_webslice'], '</a></div>';

      // Only show one post.
      if ($settings['number_recent_posts'] == 1)
      {
         // latest_post has link, href, time, subject, short_subject (shortened with...), and topic. (its id.)
         echo '
                  <strong><a href="', $scripturl, '?action=recent">', $txt['recent_posts'], '</a></strong>
                  <p id="infocenter_onepost" class="smalltext">
                        ', $txt['recent_view'], ' &quot;', $context['latest_post']['link'], '&quot; ', $txt['recent_updated'], ' (', $context['latest_post']['time'], ')<br />
                  </p>';
      }
      // Show lots of posts.
      elseif (!empty($context['latest_posts']))
      {
         echo '
                  <dl id="infocenter_recentposts" class="middletext">';

         /* Each post in latest_posts has:
               board (with an id, name, and link.), topic (the topic's id.), poster (with id, name, and link.),
               subject, short_subject (shortened with...), time, link, and href. */
         foreach ($context['latest_posts'] as $post)
            echo '
                     <dt><strong>', $post['link'], '</strong> ', $txt['by'], ' ', $post['poster']['link'], ' (', $post['board']['link'], ')</dt>
                     <dd>', $post['time'], '</dd>';
         echo '
                  </dl>';
      }
      echo '
               </div>
            </div>
         </div>';
   }

   // Show information about events, birthdays, and holidays on the calendar.
   if ($context['show_calendar'])
   {
      echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '</h4>
            <div class="windowbg">
               <p class="section">
                  <a href="', $scripturl, '?action=calendar' . '"><img src="', $settings['images_url'], '/icons/calendar.gif', '" alt="', $context['calendar_only_today'] ? $txt['calendar_today'] : $txt['calendar_upcoming'], '" /></a>
               </p>
               <div class="sectionbody windowbg2 smalltext">';

      // Holidays like "Christmas", "Chanukah", and "We Love [Unknown] Day" :P.
      if (!empty($context['calendar_holidays']))
            echo '
                     <span class="holiday">', $txt['calendar_prompt'], ' ', implode(', ', $context['calendar_holidays']), '</span><br />';

      // People's birthdays. Like mine. And yours, I guess. Kidding.
      if (!empty($context['calendar_birthdays']))
      {
            echo '
                     <span class="birthday">', $context['calendar_only_today'] ? $txt['birthdays'] : $txt['birthdays_upcoming'], '</span> ';
      /* Each member in calendar_birthdays has:
            id, name (person), age (if they have one set?), is_last. (last in list?), and is_today (birthday is today?) */
      foreach ($context['calendar_birthdays'] as $member)
            echo '
                     <a href="', $scripturl, '?action=profile;u=', $member['id'], '">', $member['is_today'] ? '<strong>' : '', $member['name'], $member['is_today'] ? '</strong>' : '', isset($member['age']) ? ' (' . $member['age'] . ')' : '', '</a>', $member['is_last'] ? '<br />' : ', ';
      }
      // Events like community get-togethers.
      if (!empty($context['calendar_events']))
      {
         echo '
                     <span class="event">', $context['calendar_only_today'] ? $txt['events'] : $txt['events_upcoming'], '</span> ';
         /* Each event in calendar_events should have:
               title, href, is_last, can_edit (are they allowed?), modify_href, and is_today. */
         foreach ($context['calendar_events'] as $event)
            echo '
                     ', $event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: #ff0000;">*</a> ' : '', $event['href'] == '' ? '' : '<a href="' . $event['href'] . '">', $event['is_today'] ? '<strong>' . $event['title'] . '</strong>' : $event['title'], $event['href'] == '' ? '' : '</a>', $event['is_last'] ? '<br />' : ', ';

         // Show a little help text to help them along ;).
         if ($context['calendar_can_edit'])
            echo '
                     (<a href="', $scripturl, '?action=helpadmin;help=calendar_how_edit" onclick="return reqWin(this.href);">', $txt['calendar_how_edit'], '</a>)';
      }
      echo '
               </div>
            </div>
         </div>';
   }

   // Show statistical style information...
   if ($settings['show_stats_index'])
   {
      echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $txt['forum_stats'], '</h4>
            <div class="windowbg">
               <p class="section">
                  <a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
               </p>
               <div class="windowbg2 sectionbody middletext">
                  ', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <strong> ' . $context['common_stats']['latest_member']['link'] . '</strong>' : '', '<br />
                  ', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <strong>&quot;' . $context['latest_post']['link'] . '&quot;</strong>  ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
                  <a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
                  <a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
               </div>
            </div>
         </div>';
   }

   // "Users online" - in order of activity.
   echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $txt['online_users'], '</h4>
            <div class="windowbg">
               <p class="section">
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who' . '">' : '', '<img src="', $settings['images_url'], '/icons/online.gif', '" alt="', $txt['online_users'], '" />', $context['show_who'] ? '</a>' : '', '
               </p>
               <div class="windowbg2 sectionbody">
                  ', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', comma_format($context['num_guests']), ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . comma_format($context['num_users_online']), ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];

   // Handle hidden users and buddies.
   $bracketList = array();
   if ($context['show_buddies'])
      $bracketList[] = comma_format($context['num_buddies']) . ' ' . ($context['num_buddies'] == 1 ? $txt['buddy'] : $txt['buddies']);
   if (!empty($context['num_spiders']))
      $bracketList[] = comma_format($context['num_spiders']) . ' ' . ($context['num_spiders'] == 1 ? $txt['spider'] : $txt['spiders']);
   if (!empty($context['num_users_hidden']))
      $bracketList[] = comma_format($context['num_users_hidden']) . ' ' . $txt['hidden'];

   if (!empty($bracketList))
      echo ' (' . implode(', ', $bracketList) . ')';

   echo $context['show_who'] ? '</a>' : '', '
                  <div class="smalltext">';

   // Assuming there ARE users online... each user in users_online has an id, username, name, group, href, and link.
   if (!empty($context['users_online']))
   {
      echo '
                     ', sprintf($txt['users_active'], $modSettings['lastActive']), ':<br />', implode(', ', $context['list_users_online']);

      // Showing membergroups?
      if (!empty($settings['show_group_key']) && !empty($context['membergroups']))
         echo '
                     <br />[' . implode(']&nbsp;&nbsp;[', $context['membergroups']) . ']';
   }

   echo '
                  </div>
                  <hr class="hrcolor" />
                  <div class="smalltext">
                     ', $txt['most_online_today'], ': <strong>', comma_format($modSettings['mostOnlineToday']), '</strong>.
                     ', $txt['most_online_ever'], ': ', comma_format($modSettings['mostOnline']), ' (', timeformat($modSettings['mostDate']), ')
                  </div>
               </div>
            </div>
         </div>';

   // If they are logged in, but statistical information is off... show a personal message bar.
   if ($context['user']['is_logged'] && !$settings['show_stats_index'])
   {
      echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $txt['personal_message'], '</h4>
            <div class="windowbg">
               <p class="section">
                  ', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img src="', $settings['images_url'], '/message_sm.gif" alt="', $txt['personal_message'], '" />', $context['allow_pm'] ? '</a>' : '', '
               </p>
               <div class="windowbg2 sectionbody">
                  <strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
                  <div class="smalltext">
                     ', $txt['you_have'], ' ', comma_format($context['user']['messages']), ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
                  </div>
               </div>
            </div>
         </div>';
   }

   // Show the login bar. (it's only true if they are logged out anyway.)
   if ($context['show_login_bar'])
   {
      echo '
         <div class="infocenter_section">
            <h4 class="titlebg">', $txt['login'], ' <a href="', $scripturl, '?action=reminder" class="smalltext">', $txt['forgot_your_password'], '</a></h4>
            <div class="windowbg">
               <p class="section">
                  <a href="', $scripturl, '?action=login"><img src="', $settings['images_url'], '/icons/login.gif', '" alt="', $txt['login'], '" /></a>
               </p>
               <div class="windowbg2 sectionbody">
                  <form id="infocenter_login" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '">
                     <ul class="reset horizlist clearfix">
                        <li>
                           <label for="user">', $txt['username'], ':<br />
                           <input type="text" name="user" id="user" size="15" class="input_text" /></label>
                        </li>
                        <li>
                           <label for="passwrd">', $txt['password'], ':<br />
                           <input type="password" name="passwrd" id="passwrd" size="15" class="input_password" /></label>
                        </li>
                        <li>
                           <label for="cookielength">', $txt['mins_logged_in'], ':<br />
                           <input type="text" name="cookielength" id="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" class="input_text" /></label>
                        </li>
                        <li>
                           <label for="cookieneverexp">', $txt['always_logged_in'], ':<br />
                           <input type="checkbox" name="cookieneverexp" id="cookieneverexp" checked="checked" class="input_check" /></label>
                        </li>
                        <li>
                           <input type="submit" value="', $txt['login'], '" class="button_submit" />
                        </li>
                     </ul>
                  </form>
               </div>
            </div>
         </div>';
   }

   // Info center collapse object.
   echo '
         <script type="text/javascript"><!-- // --><![CDATA[
            var oInfoCenterToggle = new smc_Toggle({
               bToggleEnabled: true,
               bCurrentlyCollapsed: ', empty($options['collapse_header_ic']) ? 'false' : 'true', ',
               aSwappableContainers: [
                  \'upshrinkHeaderIC\'
               ],
               aSwapImages: [
                  {
                     sId: \'upshrink_ic\',
                     srcExpanded: smf_images_url + \'/collapse.gif\',
                     altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
                     srcCollapsed: smf_images_url + \'/expand.gif\',
                     altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
                  }
               ],
               oThemeOptions: {
                  bUseThemeSettings: ', $context['user']['is_guest'] ? 'false' : 'true', ',
                  sOptionName: \'collapse_header_ic\',
                  sSessionVar: ', JavaScriptEscape($context['session_var']), ',
                  sSessionId: ', JavaScriptEscape($context['session_id']), '
               },
               oCookieOptions: {
                  bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
                  sCookieName: \'upshrinkIC\'
               }
            });
         // ]]></script>';

   echo '
      </div>
   </div>';

Code: [Select]
}
function template_tidy_children() {
   global $context, $settings, $txt, $modSettings, $scripturl;
   echo '
                  <div class="board_children">';
   foreach($context['tidy_board']['tidy_children'] as $key => $child_block) {
      echo '
                     <div class="tidy_child">
                        <ul>';
      foreach($child_block as $child) {
         echo '
                           <li>';

         if(!empty($modSettings['tidy_child_boards_icon']))
            echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';

         if (!$child['is_redirect'])
            $child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
         else
            $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

         if (!empty($modSettings['tidy_child_boards_new']) && $child['new'])
            $child['link'] .= ' <a href="' . $child['href'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" /></a>';

         // Has it posts awaiting approval?
         if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
            $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

         if(!empty($modSettings['tidy_child_boards_bold']) && $child['new'])
            $child['link'] = '<strong>' . $child['link'] . '</strong>';

         echo $child['link'], '</li>';
      }
      echo '
                        </ul>
                     </div>';
   }
   echo '
                  </div>';
}
?>

I am using Crip's blackrain theme. Many thanks for your help.
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 10:02:59 AM
And you did configure it to use the small board icon?

yes sir. It works well with core and curve theme.
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 02:14:22 PM
sorry, it's here... (http://www.sekstorya.net)
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 02:36:23 PM
strange, I am using 3.6.15 and I really don't see any board icon...
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 02:49:47 PM
sir, kindly check it again...
Title: Re: Tidy Child Boards
Post by: RvG on March 09, 2011, 02:58:10 PM
thanks it works now. :)
Title: Re: Tidy Child Boards
Post by: Maxtor on March 12, 2011, 07:01:33 PM
this mod doesnt work with colorizeboards mod here: http://custom.simplemachines.org/mods/index.php?mod=1030

what to do? anyone can help?
Title: Re: Tidy Child Boards
Post by: Maxtor on March 12, 2011, 07:09:49 PM
Well, you would have to rewrite one or other of the mods to suit, but to be honest, I don't think either myself (the original author of this mod) or its current maintainer have the time to do so.

i really need this , since ive got many boards in my forum, i want to tidy them up, but colour is very important.
Title: Re: Tidy Child Boards
Post by: live627 on March 12, 2011, 08:09:42 PM
this mod doesnt work with colorizeboards mod here: http://custom.simplemachines.org/mods/index.php?mod=1030

what to do? anyone can help?
There are no mind readers here, only humans... or code monkeys... possibly...

Eh, so you should provide more info to get even remote help. How does it not work? Which edits fail? What is your SMF version?
Title: Re: Tidy Child Boards
Post by: Maxtor on March 12, 2011, 09:08:43 PM
this mod doesnt work with colorizeboards mod here: http://custom.simplemachines.org/mods/index.php?mod=1030

what to do? anyone can help?
There are no mind readers here, only humans... or code monkeys... possibly...

Eh, so you should provide more info to get even remote help. How does it not work? Which edits fail? What is your SMF version?

main board is coloured, but all child boards are not coloured.
Title: Re: Tidy Child Boards
Post by: live627 on March 12, 2011, 10:27:18 PM
Hooray for half the story :P

Child boards not colorized with  or without the mod?
Title: Re: Tidy Child Boards
Post by: Maxtor on March 13, 2011, 12:49:56 PM
Hooray for half the story :P

Child boards not colorized with  or without the mod?

guess what? without mod , smf doesnt colorize boards by default.
So the answer is obvious, WITH the colorizeboards mod, TidyChildBoards are NOT coloured.
Title: Re: Tidy Child Boards
Post by: RvG on March 14, 2011, 11:31:48 AM
they don't complement to one another... simply these mods were written indifferently.
Title: Re: Tidy Child Boards
Post by: NoFeaR / NFSMW on April 11, 2011, 03:01:21 AM
Will it be made for RC 4 and 5?
Title: Re: Tidy Child Boards
Post by: NoFeaR / NFSMW on April 11, 2011, 03:17:38 AM
Ok, it installed. but where is the feature?
Title: Re: Tidy Child Boards
Post by: NoFeaR / NFSMW on April 11, 2011, 03:27:09 AM
i am so so sorry. i found it. my mistake.
Title: Re: Tidy Child Boards
Post by: Kat9119 on June 14, 2011, 03:31:31 PM
Curious if this will be updated for 2.0 gold, or does it already work for it?
Title: Re: Tidy Child Boards
Post by: Tanks on June 18, 2011, 04:14:15 AM
Works fine on 2.0 Gold

Just emulate 2.0 RC3
Title: Re: Tidy Child Boards
Post by: IDunc on June 24, 2011, 09:42:45 AM
Please help!

http://www.simplemachines.org/community/index.php?topic=439531.0
Title: Re: Tidy Child Boards
Post by: Spoogs on June 24, 2011, 10:17:23 AM
Disable template evaluation... Admin>> Configuration>> Server Settings>> General, check the box for 'Disable evaluation of templates'

Clear your error log, and report back with any errors after that. My best guess however is that there is duplicated code somewhere.
Title: Re: Tidy Child Boards
Post by: IDunc on June 24, 2011, 10:42:35 AM
I did disable my evaluation, and I get the same error.
Title: Re: Tidy Child Boards
Post by: Spoogs on June 24, 2011, 10:46:27 AM
Post the exact error you get with template evaluation disabled please.

Were there any errors when installing the mod?
Did you install the mod twice by any chance?
Title: Re: Tidy Child Boards
Post by: IDunc on June 24, 2011, 10:47:46 AM
Fatal error: Cannot redeclare template_tidy_children() (previously declared in /home/mwhead/public_html/Themes/my_cart/MessageIndex.template.php:479) in /home/mwhead/public_html/Themes/my_cart/MessageIndex.template.php on line 555
Title: Re: Tidy Child Boards
Post by: Spoogs on June 24, 2011, 10:52:35 AM
Try this but do a backup first, the code was duplicated.
Title: Re: Tidy Child Boards
Post by: IDunc on June 24, 2011, 10:59:47 AM
Worked perfect, thanks!
Title: Re: Tidy Child Boards
Post by: Spoogs on June 24, 2011, 11:00:28 AM
(http://skypeemoticons.net/wp-content/uploads/2010/01/Skype-emoticons-48-yes.gif)
Title: Re: Tidy Child Boards
Post by: CraftyLion on July 16, 2011, 07:58:29 PM
This mod is exactly what I'm looking for but it doesn't seem compatible with the latest version of SMF (2.0). I'm just wondering if there will be an update soon ...
Title: Re: Tidy Child Boards
Post by: Spoogs on July 16, 2011, 09:51:31 PM
This mod is exactly what I'm looking for but it doesn't seem compatible with the latest version of SMF (2.0). I'm just wondering if there will be an update soon ...

Admin>> Package Manager... scroll down, click Advanced, change 2.0 to 2.0 RC3, install the mod, change it back to 2.0
Title: Re: Tidy Child Boards
Post by: CraftyLion on July 16, 2011, 10:39:53 PM
Thanks. The mod has now been installed. However, the layout of the columns seem to have gone wary. Any suggestions?
Title: Re: Tidy Child Boards
Post by: Spoogs on July 16, 2011, 10:43:32 PM
Browser?
Title: Re: Tidy Child Boards
Post by: CraftyLion on July 16, 2011, 10:44:18 PM
I'm using the latest version of Firefox.
Title: Re: Tidy Child Boards
Post by: Spoogs on July 17, 2011, 10:50:21 AM
I'm not sure what would be causing that, you can start by clearing your browser cache.
Does it happen on the SMF default theme as well?
Title: Re: Tidy Child Boards
Post by: CraftyLion on July 17, 2011, 06:50:28 PM
I don't think it's a cache issue as it works fine in the default theme. I've had to cut and paste the coding from the default BoardIndex.template.php into the theme I'm using and it works a treat. Thanks anyway. :)
Title: Re: Tidy Child Boards
Post by: Spoogs on July 17, 2011, 10:27:48 PM
Ah that was gonna be my next guess... glad it worked out for ya though :)
Title: Re: Tidy Child Boards
Post by: CraftyLion on August 04, 2011, 08:21:18 PM
I seem to be having another issue. When I create child-boards within a child-board on the main page, I end up with same layout issue as my previous posts, yet it looks fine in the default theme. I've even cleared my cache yet the layout stays the same. I'm using exactly the same coding as the BoardIndex template file from the default theme which only seems to deal with the layout of the first child-board level.

Any suggestions on which file I need to modify to achieve the right layout?

BTW, until the issue has been resolved, I've resorted to creating a brand new category although I'd rather not do that ...
Title: Re: Tidy Child Boards
Post by: Samera on August 09, 2011, 05:56:44 PM
hello to all

please help me

can i use this mod. for smf 2.0 ...? 
when i try to install he said this mod not compatible with this version how i can install please help me
Title: Re: Tidy Child Boards
Post by: IchBin™ on August 09, 2011, 08:16:09 PM
Samera, don't be afraid to read through the topic a little. This was on the last page which is exactly what you asked the question for...
http://www.simplemachines.org/community/index.php?topic=352963.msg3111315#msg3111315
Title: Re: Tidy Child Boards
Post by: Samera on August 10, 2011, 03:13:42 AM
thanks for help   IchBin™
Title: Re: Tidy Child Boards
Post by: andyac on August 29, 2011, 12:21:12 AM
i cant find the options
Title: Re: Tidy Child Boards
Post by: Iviiik on September 26, 2011, 05:38:02 PM
Hi,

I have this problem with IE 9... in opera and FF is everything ok

(http://www.simplemachines.org/community/index.php?action=dlattach;topic=352963.0;attach=158561;image)
Title: Re: Tidy Child Boards
Post by: kenng on October 23, 2011, 07:03:07 AM
I couldnt find Admin>> Package Manager... scroll down, click Advanced, change 2.0 to 2.0 RC3, install the mod, change it back to 2.0

Im using 2.0.1 anyone can guide me how to install ?thanks

---

Managed to find it. Thanks
Title: Re: Tidy Child Boards
Post by: kenng on October 23, 2011, 07:30:45 AM
nothing happen ? I dont see any difference? I am using simplyblue theme. I ticked those options during installation too
Title: Re: Tidy Child Boards
Post by: kenng on October 23, 2011, 01:36:54 PM
now my forum doesnt work. but my home is working only forum is not working. It's a blank page. Removed it and waiting for solutions
Title: Re: Tidy Child Boards
Post by: kenng on October 25, 2011, 03:04:29 AM
anyone got it working with 2.0.1?
Title: Re: Tidy Child Boards
Post by: ddabcd277 on October 26, 2011, 01:48:56 PM
Just install it on SMF 2.0.1. Seems it is working fine till now  :)
Title: Re: Tidy Child Boards
Post by: kenng on October 26, 2011, 01:54:46 PM
that's very weird. its not working for me. I tried both installation. both doesnt work. Im tried using default theme too. Dont work..
Title: Re: Tidy Child Boards
Post by: Doburpally on October 27, 2011, 09:55:17 AM
that's very weird. its not working for me. I tried both installation. both doesnt work. Im tried using default theme too. Dont work..

It's working for me in 2.0.1.
Using Default theme and using Icecube (a Premium theme made by DzinerStudio).

Q: How did you install it?
A:

Once installed:

:) ;)
Title: Re: Tidy Child Boards
Post by: Shambles on November 14, 2011, 01:19:59 PM
With the demise of formal support from Arantor and Robbo_, did anyone take this request/plan forward and produce their own version with the option to select "one column"?

1 column is planned in next release.
Title: Re: Tidy Child Boards
Post by: Shambles on November 17, 2011, 01:35:56 PM
With the demise of formal support from Arantor and Robbo_, did anyone take this request/plan forward and produce their own version with the option to select "one column"?

1 column is planned in next release.

Ok, I'm not a php coder but I modded version 1.3 (up into 1.4) myself to allow it to do 1, 2, 3 or 4 columns.

I just read somewhere that nobody can modify a mod except with permission from the author or the licence. So how would I make this available to anyone who wants to try it?

Here's how it looked on my forum:

3 COLUMNS:

(http://i7.photobucket.com/albums/y297/ShamblesX/i30OwnersClub/3cols.jpg)

2 COLUMNS:

(http://i7.photobucket.com/albums/y297/ShamblesX/i30OwnersClub/2cols.jpg)

1 COLUMN:

(http://i7.photobucket.com/albums/y297/ShamblesX/i30OwnersClub/after.jpg)
Title: Re: Tidy Child Boards
Post by: IchBin™ on November 17, 2011, 08:27:28 PM
You can post your code changes to this topic if you'd like. Otherwise, you need to contact the author to see if they want to add it to their code.
Title: Re: Tidy Child Boards
Post by: Shambles on November 18, 2011, 03:21:10 AM
You can post your code changes to this topic if you'd like. Otherwise, you need to contact the author to see if they want to add it to their code.

Doesn't appear that Arantor has been active on here for some time now  :-[

I've attached the package, which should be installed as per the original instructions, which includes requiring RC3 emulation for installing into 2.0.1.

Title: Re: Tidy Child Boards
Post by: IchBin™ on November 19, 2011, 12:27:37 AM
I've removed the attachment. Posting the code changes is not the same as posting a modification update as an attachment.... Feel free to post the code changes you have made. Only attach the mod update if the author says it's ok.

Arantor is no longer the mod author/maintainer. Robbo is the guy that is handling this now. Although,it looks like he's run out of time to maintain his mods from what I've seen.
Title: Re: Tidy Child Boards
Post by: Shambles on November 19, 2011, 03:23:29 AM
...Only attach the mod update if the author says it's ok.

I understand. I've messaged Robbo.
Title: Re: Tidy Child Boards
Post by: Draffi on December 30, 2011, 12:43:46 PM
Please, it is possible to add support for the cbi-Mod (custom board icons), what you can find here:
http://custom.simplemachines.org/mods/index.php?mod=511

I use cbi 163 with SMF 2 RC5. What code i need to change (in the BoardIndex.template.php) for to make booth mods working?

Title: Re: Tidy Child Boards
Post by: fullmoonya on January 10, 2012, 01:32:28 AM
i wish there is some one column child in this mod to make this more useful.
Title: Re: Tidy Child Boards
Post by: Arantor on January 10, 2012, 03:07:51 AM
One column would not be a very effective option, unless you only have a few child boards in the first place.
Title: Re: Tidy Child Boards
Post by: Shambles on January 10, 2012, 03:29:40 AM
i wish there is some one column child in this mod to make this more useful.

Like in this post?

http://www.simplemachines.org/community/index.php?topic=352963.msg3210101#msg3210101

I too wanted just a single column display... the code changes (to the install package) were very simple indeed.
Title: Re: Tidy Child Boards
Post by: Arantor on January 10, 2012, 04:28:13 AM
It's funny, when this mod was originally in development, there was a one column display but it was actually removed before distribution, not only because it didn't work properly in IE but mostly because when you went past three children, it looked really stupid.
Title: Re: Tidy Child Boards
Post by: fullmoonya on January 10, 2012, 04:58:35 AM
i wish there is some one column child in this mod to make this more useful.

Like in this post?

http://www.simplemachines.org/community/index.php?topic=352963.msg3210101#msg3210101

I too wanted just a single column display... the code changes (to the install package) were very simple indeed.

yes sir, like the one in your link. but now i figured out how to do that so its fine now for me. :)

but now my problem is putting a notification icon beside each childboards that will turn to unread icon if someone posted on the topic of my childboard or someone created a topic on my child boards and will turn into a read icon if the user have viewed the those childboards.
Title: Re: Tidy Child Boards
Post by: coldy316 on January 16, 2012, 04:45:01 AM
i'm using SMF 2.0.2 and the original code still works.
Title: Re: Tidy Child Boards
Post by: Shambles on January 16, 2012, 05:17:36 AM
but now my problem is putting a notification icon beside each childboards that will turn to unread icon if someone posted on the topic of my childboard ...
That happens automatically on my forum... no further changes were needed after the mod to the mod :)

(http://i7.photobucket.com/albums/y297/ShamblesX/childboards.png)
Title: Re: Tidy Child Boards
Post by: fullmoonya on January 16, 2012, 10:07:17 PM
but now my problem is putting a notification icon beside each childboards that will turn to unread icon if someone posted on the topic of my childboard ...
That happens automatically on my forum... no further changes were needed after the mod to the mod :)

(http://i7.photobucket.com/albums/y297/ShamblesX/childboards.png)

how to do that sir? i didn't install some mod for childboards. i just manually edit the default template of my smf2.0.2 just to make my childboard place in 1 column.

EDIT:
no help needed now. i figured out now how. thank you for the idea sir. :)
Title: Re: Tidy Child Boards
Post by: Kimmie on January 20, 2012, 10:38:58 AM
it doesnt work properly in IE9. The columns should be side to side, but they are top/bottom

(http://i42.tinypic.com/24bp6d2.png)



what can I do to fix this?

Title: Re: Tidy Child Boards
Post by: Arantor on January 20, 2012, 10:44:58 AM
Making it work in IE has been discussed before in this very thread, more than once.

If only IE operated like all the other browsers, there wouldn't be a problem.
Title: Re: Tidy Child Boards
Post by: Kimmie on January 20, 2012, 11:05:07 PM
Making it work in IE has been discussed before in this very thread, more than once.

If only IE operated like all the other browsers, there wouldn't be a problem.

I never had a problem with it in IE till I upgraded to 9.

So am I to assume there is no fix?
Title: Re: Tidy Child Boards
Post by: mageguild on January 20, 2012, 11:22:55 PM
Does anyone have a version that is Compatible with 2.0? 
Title: Re: Tidy Child Boards
Post by: Arantor on January 21, 2012, 07:12:56 AM
Making it work in IE has been discussed before in this very thread, more than once.

If only IE operated like all the other browsers, there wouldn't be a problem.

I never had a problem with it in IE till I upgraded to 9.

So am I to assume there is no fix?

Oh, there is. It's just in this thread somewhere.

Does anyone have a version that is Compatible with 2.0? 

Also as discussed in this thread multiple times, it will work using version emulation.
Title: Re: Tidy Child Boards
Post by: mrtarkhan on January 21, 2012, 07:39:01 AM
thanks Spoogs, your nice mod :)

persian translate attached  ;)

Title: Re: Tidy Child Boards
Post by: Heardy on February 16, 2012, 03:32:50 PM
I can't get this mod to work with the Glacier theme, it's saying that "//Show Basic" doesn't exist in my BoardIndex template so I don't know where one part of the code goes :(
Title: Re: Tidy Child Boards
Post by: chr05210084 on April 05, 2012, 09:40:13 PM
I can't make it work on vertex theme, maybe I missed something during the installation. I'm using smf 2.0.2 and vertex theme. I installed the mod using package manager without any error.  I enabled the mod and configured  in "Administration Center » Features and Options » Layout" but it didn't work. Do I need to edit something on my themes? Can you please post the instructions. Thanks.
Title: Re: Tidy Child Boards
Post by: scan06disk on May 10, 2012, 11:15:46 AM
Oh please tell me there is a 2.0.2 compatible version, I am dying for something like this especially moving from MyBB where I had columns.... :(

I did try this on 2.0.2 and it says that error of not being compatible.... STUCK now....

So far I am loving SMF !!!
Title: Re: Tidy Child Boards
Post by: Kat9119 on June 29, 2012, 02:16:50 PM
Also as discussed in this thread multiple times, it will work using version emulation.

I just tried it on a local forum (v 2.0.2) and I got fatal error by emulating 2.0 RC3.

I was using this on an old forum and starting over from scratch trying to use it again and the error I get is:

Fatal error: Cannot redeclare template_tidy_children() (previously declared in C:\xampp\htdocs\CB\forum\Sources\Load.php(2151) : eval()'d code:551) in C:\xampp\htdocs\CB\forum\Sources\Load.php(2151) : eval()'d code on line 627

Update: If I don't allow it to put the code in for BoardIndex or MessageIndex the mod works fine. . . in reading up on this kind of error it seems like there might be a duplicate code when those files are updated. Since the mod works without updating those files, do I still need to update them and just do it manually?
Title: Re: Tidy Child Boards
Post by: Arantor on June 29, 2012, 11:25:29 PM
Sounds like the code has been included twice for some reason...
Title: Re: Tidy Child Boards
Post by: Dr3amstor on August 02, 2012, 08:29:54 AM
Works perfect on the default theme curve but cant get it to work on the black rain template.

Any help, thanks.
Title: Re: Tidy Child Boards
Post by: Shambles on August 02, 2012, 08:49:57 AM
...cant get it to work on the black rain template.
That's not a great deal for us to go on :(

Works fine on my BlackBox theme, which is very similar to Rain.
Title: Re: Tidy Child Boards
Post by: Dr3amstor on August 02, 2012, 11:21:42 AM
...cant get it to work on the black rain template.
That's not a great deal for us to go on :(

Works fine on my BlackBox theme, which is very similar to Rain.

What I mean is that the child forums do not show in columns but linear.
Title: Re: Tidy Child Boards
Post by: Dr3amstor on August 02, 2012, 11:44:54 AM
I got it sorted.

Thank you
Title: Re: Tidy Child Boards
Post by: zappadoc on September 08, 2012, 05:48:54 AM
where to find Tidy Child Boards 1.3 for 2.0 RC3?
thanks
Title: Re: Tidy Child Boards
Post by: Spoogs on September 08, 2012, 11:00:13 AM
Not supporting that version but if you really need it, it should still be in the package just use version emulate. I don't think there were any code changes anyway.
Title: Re: Tidy Child Boards
Post by: phpshiva on October 11, 2012, 04:52:19 AM
iff i use more than one column its all on the right side of the page and not left
How can i fix this?
Title: Re: Tidy Child Boards
Post by: phpshiva on November 03, 2012, 10:39:37 AM
still no one who knows how to fix this?
its showing under last message on the right side and needs to be left
Title: Re: Tidy Child Boards
Post by: tweetledee on November 29, 2012, 12:08:39 PM
hi.

this seems like a very useful mod for me, but it doesn't seem to work with my theme. (see image)

which file should look into editing to make them appear in columns?... it seems (as shown in the screen grab) that it's trying to do something with the line breaks in between the sets of intended columns.

thanks.
Title: Re: Tidy Child Boards
Post by: tweetledee on November 29, 2012, 12:23:07 PM
got it fixed.

found this post in the thread:

Hi Sir Now  is working perfectly (transferred the file to default themes folder)!!! The childboards adjusts to a strategical position if I add a new sub-board. no spaces in between now!

 How could i thank you more..........   ;D

checked out the tidyboard.css in default theme -- the code got really chopped for some reason when it got installed, i'm guessing. copy and pasted original css and it works as it should.

very useful mod. thanks.
Title: Re: Tidy Child Boards
Post by: phpshiva on December 02, 2012, 04:10:12 AM
Still after all this time waiting for solution about my problem


How to fix this?
Title: Re: Tidy Child Boards
Post by: Crozz on December 27, 2012, 07:54:23 AM
Is there any way this mod can be made to work in SMF 2.0.3?
It kinda messed up the forum when I tried to emulate it to 2.0.2
Title: Re: Tidy Child Boards
Post by: Hristo on December 27, 2012, 09:30:35 PM
The mod works just fine in 2.0.3. Emulation is completely harmless to the forum, it does not revert it's code to the emulated version.
There is a way to install it without emulation:
First, open the mod archive, then open the package-info.xml file. Find these 2 lines:
<install for="2.0, 2.0.1, 2.0.2">
and
<uninstall for="2.0, 2.0.1, 2.0.2">

And change them like this, then save:

<install for="2.0, 2.0.1, 2.0.2, 2.0.3">
and
<uninstall for="2.0, 2.0.1, 2.0.2, 2.0.3">
Title: Re: Tidy Child Boards
Post by: Crozz on December 28, 2012, 12:01:30 AM
The mod works just fine in 2.0.3. Emulation is completely harmless to the forum, it does not revert it's code to the emulated version.
There is a way to install it without emulation:
First, open the mod archive, then open the package-info.xml file. Find these 2 lines:
<install for="2.0, 2.0.1, 2.0.2">
and
<uninstall for="2.0, 2.0.1, 2.0.2">

And change them like this, then save:

<install for="2.0, 2.0.1, 2.0.2, 2.0.3">
and
<uninstall for="2.0, 2.0.1, 2.0.2, 2.0.3">


Thank you, that did the trick :)
Title: Re: Tidy Child Boards
Post by: Arantor on December 30, 2012, 02:45:05 PM
All you're doing by editing the package-info.xml file is avoiding using emulation - they do *exactly* the same thing - just override the version that the package parser is going to select.
Title: Re: Tidy Child Boards
Post by: Frank Hunt on March 20, 2013, 12:49:18 AM
I love this mod but it doesn't work for the current version.  Any chance of updating it?
Title: Re: Tidy Child Boards
Post by: live627 on March 20, 2013, 02:28:44 AM
Oh look,, someone else doesn't read! trolllface.png
Title: Re: Tidy Child Boards
Post by: Frank Hunt on March 20, 2013, 11:56:10 AM
Oh look,, someone else doesn't read! trolllface.png

Crap, my bad.  I'll actually read and do what he says.
Title: Re: Tidy Child Boards
Post by: Biology Forums on May 21, 2013, 07:12:27 PM
I currently have it on three columns. However, there are some boards that only have one child board; by putting it into a three column configuration, the parent that has that one child board looks all squished. Is there a way of setting up those parents with one child board not to be in columns? (i.e. have a width of 100%)

If(parent contains 1 child) echo'

floor(width: 100%)

else

floor(100/$modSettings['tidy_child_boards']%)

Code: [Select]
if(empty($context['added_tidy_header']) && !empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1) {
if(empty($context['html_headers']))
$context['html_headers'] = '';
$context['html_headers'] .= '
<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/tidyboards.css?1110" />
<style type="text/css">.tidy_child { width:' . floor(100/$modSettings['tidy_child_boards']) . '%; }</style>';
$context['added_tidy_header'] = 1;
}
Title: Re: Tidy Child Boards
Post by: Arantor on May 21, 2013, 07:13:25 PM
Not without a more complex overhaul from what I remember and it's been a long time since I originally wrote this... :/
Title: Re: Tidy Child Boards
Post by: LisandroM on June 10, 2013, 12:15:19 AM
im wondering if somebody knows how to install this on 2.0.4 smf.???
Title: Re: Tidy Child Boards
Post by: TheListener on June 22, 2013, 02:21:07 PM
im wondering if somebody knows how to install this on 2.0.4 smf.???

The same way any mod is installed.

Via the forums package Manager.

 :)
Title: Re: Tidy Child Boards
Post by: Neo_TE on June 27, 2013, 03:33:57 PM
im wondering if somebody knows how to install this on 2.0.4 smf.???
It works perfectly with SMF 2.0.4
Title: Re: Tidy Child Boards
Post by: Melissa524 on June 27, 2013, 07:26:23 PM
Is there anyway to change the mod into rows instead of column?
Title: Re: Tidy Child Boards
Post by: Hristo on July 15, 2013, 07:50:46 PM
Noticed that when "Display small board icon next to child board" option is 'on' that gives validation error due to not closed img tag. Everything works just fine, but still if you do not want HTML validation errors open rc2-curve.xml (before mod's install) and replace on 2 places this code:

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="">
With this one:

Code: [Select]
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" />
If you have it installed do the above replacement in BoardIndex.template.php and MessageIndex.template.php (at one place on each of them).

BTW I like a lot this mod, thanks!
Title: Re: Tidy Child Boards
Post by: Porr on September 20, 2013, 03:21:35 AM
I am running a forum with childboards 1.4 we have some new themes and the mod does not work. So i wanted to reinstall it (well even update it to version 1.4.1). But i can not uninstall it :-(

I get the message that there is no uninstall program so i can not uninstall it.

Anyone had this issue? I am running the latest version of SMF. 2.0.5


 
Title: Re: Tidy Child Boards
Post by: Hristo on September 20, 2013, 05:19:47 AM
Follow this http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
and change your forum version to 2.0.3 or lower (whichever works). After that you should be able to uninstall and install again the mod. IIRC the only difference between 1.4 and 1.4.1 is that the latter supports up to 2.0.4, but since you are with 2.0.5 you will have to use emulation anyway, so you can leave the 1.4.
Title: Re: Tidy Child Boards
Post by: impreza on September 20, 2013, 05:56:27 AM
For me, it works well on the old forum. I have no problem
Title: Re: Tidy Child Boards
Post by: Porr on September 20, 2013, 07:58:35 AM
Thank you  :D

I even used this emulation in the passed. I kinda forgot about it  :-[

It worked  :D
Title: Re: Tidy Child Boards
Post by: SpeedHighway on November 15, 2013, 06:05:07 PM
I tried tweaking a few things, but didn't have any luck.

Is there any way to indicate that a child of a child board has new posts?

For example:
Other Games
--> FPS Games
--> --> Battlefield 3

If I put a new post in the Battlefield 3 forum, there's no indicator unless the user manually decides to visit the FPS Games forum.
The FPS Games forum, being a tidy child of Other Games, has an indicator, but it only displays if there are new posts in "FPS Games".  Is there any way to get it to use on2.png in the correct circumstance here?

End Goal - User posts in BF3 channel, and the little icon next to "FPS Games" in the tidy board section of Other Games, turns bronze.

Thanks!
Title: Re: Tidy Child Boards
Post by: Arantor on November 15, 2013, 06:11:33 PM
SMF does not consider the case of child of a child in any circumstances, whether this mod is installed or not.
Title: Re: Tidy Child Boards
Post by: mikkiTX on December 03, 2013, 02:39:58 PM
i've read that this works for 2.0.4... trying to install on 2.0.6 which is pretty much the same thing (?) and getting an error...
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."

any suggestions? i really kind of like it...

mikki

smf 2.0.6 + a Lot of mods...
Title: Re: Tidy Child Boards
Post by: Arantor on December 03, 2013, 02:44:40 PM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: .Vapor on December 30, 2013, 12:04:20 PM
Excellent mod, please update for 2.0.6 plz  ;D
Title: Re: Tidy Child Boards
Post by: Arantor on December 30, 2013, 12:23:09 PM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: -Captain Ghost- on January 03, 2014, 11:53:15 AM
how to make it work with custom board icon  :-X
Title: Re: Tidy Child Boards
Post by: Neo_TE on February 27, 2014, 03:11:32 AM
Hi,

A small suggestion to support themes having multiple colour styles & different board icons for each style.

In BoardIndex.template.php & MessageIndex.template.php, please add $context['theme_variant_url'] in the next release. Thanks. :)

Code: [Select]
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
Code: [Select]
echo '<img src="', $settings['images_url'], '/', $context['theme_variant_url'], '' , ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
Title: Re: Tidy Child Boards
Post by: Avicii on May 11, 2014, 07:12:21 AM
Tengo un problema, instalé el mod manualmente con el parse de la versión 2.0.4 y tengo la versión 2.0.6 en mi foro:

Desde el index el mod hace bien su trabajo de mostrar en columnas, pero cuando entro a un sub-foro no me parecen todos los sub-foros sólo 1


Aquí si os fijáis hay 2 sub-foros:
(http://i.minus.com/jbhoClLfxv3iKs.png)

Ahora cuando me dispongo entrar al apartado "Noticias e Información" sólo me aparece 1 sub-foro de 2 que tengo:
(http://i4.minus.com/jbnJwpf9LGj0Px.png)


¿Cuál es el problema?, puse todo tal y cómo en el parse para la 2.0.4
Hice las modificaciones del BoardIndex.template.php y en MessageIndex.template.php en el theme que uso que se llama Future.
Title: Re: Tidy Child Boards
Post by: Arantor on May 11, 2014, 09:15:48 AM
I'm sorry, I don't understand the problem.
Title: Re: Tidy Child Boards
Post by: Avicii on May 11, 2014, 03:36:25 PM
This example is from the photo 1:
Index, so good

In the index are all subforums, but when I enter the forum where those subforums are only shown me one:

This example is photo 2:



News SMF [FORUM]
update
problems
suggestions
downloads




When I go to "News SMF" forum appears just 1 subforum me, and actually there are 4


Perdon por el idioma, lo hice con el traductor de google.
Title: Re: Tidy Child Boards
Post by: Arantor on May 11, 2014, 03:47:22 PM
Mod works fine for me, on all the sites I run it on. I have no idea why it's not working for you. I can't see your site so I can't even look at that to see what's going on.
Title: Re: Tidy Child Boards
Post by: NW Dreamer on September 01, 2014, 09:03:20 AM
Hi, yes, my first post is about this mod!  I just installed v2.08 and spent a few days getting up to speed on everything (the first Simple Machines forum I've ever tried).  Anyway almost everything has gone very, very nicely (good job to all that created it!).  :)

Anyway, I have spent hours searching and reading so as not to be that guy who posts about something obvious.  That said, I'm really hoping I've missed a couple of things.  Obviously I'm looking to have child boards that aren't squished together under their parent board or I wouldn't be in this thread (I'm going to have a lot under one board).

If there's an easy code fix (I'm new to PHP but have programmed for a LONG time), a feature I haven't found in v2.0.8, or something that will come out in v2.1 (in which case I can wait) that will list the child boards indented like I see them in the Admin area then I would love to know about it!

Out of all my searching here I kept finding what I thought were answers, but then I look at the dates and the posts were all from 2005-2007!  This mod doesn't exactly do what I'm looking for (one column), but it should do.  Which brings us to the big question:  Will it work in v2.0.8 if I revert all the way back to 1.4.1?  I only see compatibility back to v2.0.4 listed in the download area.

I can't get my forum to communicate with SMF (and, no, it's not a "try again later" situation which I read about, I've tried dozens and dozens of times over the last three days.  So I did figure out how to download the mod manually.  I've also read how to install it using the revert feature, however the only method I've seen for uninstalling it if it doesn't work is to restore from backup!  Is that really true?

Thanks for your help!

Craig
Title: Re: Tidy Child Boards
Post by: Arantor on September 01, 2014, 09:05:54 AM
Quote
This mod doesn't exactly do what I'm looking for (one column), but it should do.

No, it shouldn't. I never wrote it to support one column.

Quote
Which brings us to the big question:  Will it work in v2.0.8 if I revert all the way back to 1.4.1?  I only see compatibility back to v2.0.4 listed in the download area.

No code has changed since 2.0.4 in the board index display, so if you use the last version of the mod, then use How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version) to emulate to 2.0.4 it should install.

One of these days I'll tweak the version and check it works on 2.0.8 but I'm pretty busy on paid mods these days.
Title: Re: Tidy Child Boards
Post by: Kimmie on September 01, 2014, 11:09:33 PM
Arantor, I am using v 1.3 on 2.0.8 (installed this way back in 2011) and it works just fine :)


SMF is also showing that is the latest version but I noticed the mod page says 1.4.1 so you may want to check that.


(http://i.imgur.com/6JLmVp7.png)
Title: Re: Tidy Child Boards
Post by: Arantor on September 01, 2014, 11:39:45 PM
SMF is doing exactly what it is supposed to with regards 'the latest version'. It doesn't do what people think it should...

I'll check the version number later though, bit late for that kind of thing just now, but thanks for the heads-up.
Title: Re: Tidy Child Boards
Post by: Kimmie on September 01, 2014, 11:47:26 PM
SMF is doing exactly what it is supposed to with regards 'the latest version'. It doesn't do what people think it should...

I'll check the version number later though, bit late for that kind of thing just now, but thanks for the heads-up.


I don't understand. The legend at the bottom clearly says it pertains to the mods

(http://i.imgur.com/VSCLEPi.png)
Title: Re: Tidy Child Boards
Post by: NW Dreamer on September 02, 2014, 05:42:52 AM
Thanks for the follow-up.  I decided to install the mod that removes child boards from the main index page for now, but may revisit this mod later if I need to see the child boards on the main page.

Quote
This mod doesn't exactly do what I'm looking for (one column), but it should do.

No, it shouldn't. I never wrote it to support one column.


BTW - I wasn't saying your mod should do one column, I was merely commenting that it's probably an acceptable alternative for me to use for now until I find something that can do one column.  Sorry I wasn't clear.  ;)
Title: Re: Tidy Child Boards
Post by: Arantor on September 02, 2014, 08:42:48 AM
Quote
I don't understand. The legend at the bottom clearly says it pertains to the mods

Trust me, it doesn't do what you think it does.

This is designed for if you have multiple versions of a mod installed, whereupon it will show you which version is the current version.

Mods, theoretically, can contain update instructions for themselves. For example, it's theoretically possible to have a 1.0 mod and a 1.1 mod where the 1.1 mod doesn't just contain instructions for installing the 1.1 version but also instructions on how to upgrade the 1.0 mod to 1.1. The problem is, doing this is so much hard work (since you end up maintaining two copies of the same code) that mod authors (me included) don't bother.

But if a mod did do that, you'd have both in the list and the 1.0 version would be shown as 'older version' and 1.1 as 'current version'.

It's doing exactly what it's supposed to be doing... even if that's not what people think it should be.
Title: Re: Tidy Child Boards
Post by: Kimmie on September 03, 2014, 01:18:27 PM
Quote
I don't understand. The legend at the bottom clearly says it pertains to the mods

Trust me, it doesn't do what you think it does.

This is designed for if you have multiple versions of a mod installed, whereupon it will show you which version is the current version.

Mods, theoretically, can contain update instructions for themselves. For example, it's theoretically possible to have a 1.0 mod and a 1.1 mod where the 1.1 mod doesn't just contain instructions for installing the 1.1 version but also instructions on how to upgrade the 1.0 mod to 1.1. The problem is, doing this is so much hard work (since you end up maintaining two copies of the same code) that mod authors (me included) don't bother.

But if a mod did do that, you'd have both in the list and the 1.0 version would be shown as 'older version' and 1.1 as 'current version'.

It's doing exactly what it's supposed to be doing... even if that's not what people think it should be.

Isn't that common sense though? Why would anyone need multiple versions of a mod? I guess it could possibly help out those who don't really know what they are doing in terms of things like not bothering to look to see if you have one already installed before installing an updated version. I have always thought (and relied upon)  that telling me if the one I had installed was the latest version. To be honest, I don't think it really works at all based on the fact I have several updates and they all say they are the latest

(http://i.imgur.com/SOZ7AG3.png)


I guess from now on I will have to constantly check to see if all the mods I have (34) get updated. This is going to be a pain.
Title: Re: Tidy Child Boards
Post by: Arantor on September 03, 2014, 01:22:49 PM
Quote
Isn't that common sense though? Why would anyone need multiple versions of a mod?

For the *specific* reason I outlined, where you install 1.0 and then install 1.1 without having to uninstall 1.0 first because 1.1 can upgrade from 1.0 without that extra step.

And no, the patches for SMF itself have never been distributed in that fashion because of the ridiculous amount of extra maintenance it generates, which is what I was saying. (Since the 2.0.2 patch would have to have all the 2.0.1 patch stuff in plus its own, 2.0.3 would have to have 2.0.1 + 2.0.2 + 2.0.3, 2.0.4 would have to have 2.0.1 + 2.0.2 + 2.0.3 + 2.0.4, 2.0.5 would have to have 2.0.1 + 2.0.2 + 2.0.3 + 2.0.4 + 2.0.5 and so on)

Sorry, I feel I've just wasted both our times trying to explain this, though thankfully I believe it has been removed in 2.1 because it just confuses people because it doesn't do what they expect even when it does actually work exactly as designed.
Title: Re: Tidy Child Boards
Post by: coldy316 on February 09, 2015, 10:46:02 AM
I have had this mod working since it got release and its never let me down. I just want to know is there
any mod coder in here willing to update it to SMF 2.0.9 , reason why I ask is because I reckon this is far
better then the other child forum mods I have seen so far..
Title: Re: Tidy Child Boards
Post by: margarett on February 09, 2015, 12:28:32 PM
The MOD installs fine if you emulate 2.0.4
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: Arantor on February 09, 2015, 05:05:54 PM
Quote
I just want to know is there
any mod coder in here willing to update it to SMF 2.0.9

I will if and when I get time, OK? Just started new job, lots of things going on.
Title: Re: Tidy Child Boards
Post by: coldy316 on February 10, 2015, 04:54:47 PM
but instead of emulating the mod and going back to different versions, Arantor could update the mod and have it
 compatiable with future new versions of smf forums. So it would be like this roughly:

smf vers: 2.0.9
smf vers: 2.x.x 

smart and ahead of other moders thinking of the future. saves updating the mod every time a new version comes out...

Title: Re: Tidy Child Boards
Post by: Arantor on February 13, 2015, 01:05:03 AM
Yes I heard you the first time. I will update it as and when I have time and NOT BEFORE. Please understand I do not have vast amounts of time to spend on SMF related stuff, especially not for stuff I wrote 5 years ago and should really rewrite knowing what I know now.
Title: Re: Tidy Child Boards
Post by: CHRIS-7 on February 18, 2015, 12:37:10 PM
Hi , I Want (Tidy Child Boards) For SMF 2.0.9
I Need This Mod , Because It's Very Nice
(My Theme is (Insidious II
! Please Help
 :)
Title: Re: Tidy Child Boards
Post by: Steve on February 19, 2015, 08:23:31 AM
First, please don't use large text, especially when making a request for help. It implies shouting and many people take it as rude on a support board.

Second, if you go to the first post in this thread there's a link to the mod.

Third, How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: njtweb on June 12, 2015, 11:44:00 AM
Any chance this mod gets updated? I get "Package" corrupt when trying to upload.
Title: Re: Tidy Child Boards
Post by: Mark S on October 05, 2015, 10:40:48 PM
Would love to see this mod updated for 2.0.11

Really looked much better than the line list of sub boards and made it easier for my forum members to pick them out from the other, main boards
 :)
Title: Re: Tidy Child Boards
Post by: Steve on October 06, 2015, 10:10:03 AM
Does this not work for you?

How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: Mark S on October 06, 2015, 09:19:48 PM
It didn't, but I emulated 2.0.10.  I've had is so long, I really don't know what version I was using when I installed it.  Do you think I should just keep trying by subtracting one version at a time, or emulate 2.0.4, the last updated version of the mod?

Thank you for your feedback!

Edit.  I checked that the latest mod version was 1.4.1 and was usable through SMF 2.0.4, so I'll attempt to emulate that and see what happens.
Title: Re: Tidy Child Boards
Post by: Mark S on October 06, 2015, 09:26:19 PM
That actually worked!  Thank you for prompting me to further think through it!
Title: Re: Tidy Child Boards
Post by: Steve on October 07, 2015, 08:19:29 AM
Cool beans. :)
Title: Re: Tidy Child Boards
Post by: Maggan22 on October 20, 2015, 09:11:52 AM
I get an Error message after installing!
 Fatal error: Cannot redeclare template_tidy_children() (previously declared in /www/htdocs/w009ae80/ZB/Sources/Load.php(2670) : eval()'d code:415) in /www/htdocs/w009ae80/ZB/Sources/Load.php(2670) : eval()'d code on line 491

SMF Version is:
   SMF 2.1 Beta 1

Can you help me please? Backend works without errors
Title: Re: Tidy Child Boards
Post by: Kindred on October 20, 2015, 09:31:09 AM
first and foremost...    this mod almost definitely will not work on 2.1 beta....

second... you seem to have installed the mod twice.
At this point, you are going to have to MANUALLY remove the duplicated code (probably in several files)

Third... If you are using 2.1 beta 1, you are way out of date. (and I certainly hope that you are not using it on a production/live site)
Title: Re: Tidy Child Boards
Post by: Bythe on January 09, 2016, 03:35:04 PM
hi is there any child boards mod for 2.0.11?
Title: Re: Tidy Child Boards
Post by: Shambles on January 09, 2016, 03:37:22 PM
^-- this will work fine:

http://custom.simplemachines.org/mods/index.php?mod=2294
Title: Re: Tidy Child Boards
Post by: Wellwisher on April 05, 2016, 07:33:16 PM
You can achieve what this mod does with a little bit of CSS & a simple theme file edit:

Code: [Select]

.children.windowbg > a, .children.windowbg > strong {
  float: left;
  width: 30%;
}


This just leaves the crap that SMF puts in by default, i.e the commas ( , ) after each childboard and the colan ( : ) after the text "ChildBoards:". Which you could easily get rid off in one of the theme files, not sure which one off the top of my head.  :P

You could also turn the childboards into a list or table with CSS by adding "display:list;" or "display:table;" to the above code.
Title: Re: Tidy Child Boards
Post by: Kindred on April 05, 2016, 09:13:50 PM
Did you happen to note that this mod was released 7 years ago, before CSS did much of what it does?
Title: Re: Tidy Child Boards
Post by: Wellwisher on April 05, 2016, 11:04:51 PM
Did you happen to note that this mod was released 7 years ago, before CSS did much of what it does?

Hello Kinded,

People still seem to be using this in 2016. I was about to do the same and emulate to get it working on my custom theme, but thought "Hang on, this feels like such an overkill..." hence why I posted the css snippet above.

Sometimes it feels good to follow the herd and jump off a cliff, other times, you just want to stand still whilst pointing and laughing at them.
Title: Re: Tidy Child Boards
Post by: Steve on April 06, 2016, 08:59:32 AM
Wellwisher, can I pm you about this?
Title: Re: Tidy Child Boards
Post by: Wellwisher on April 06, 2016, 09:07:12 AM
Wellwisher, can I pm you about this?

Sure thing, Steve.
Title: Re: Tidy Child Boards
Post by: Wellwisher on April 11, 2016, 06:30:28 PM
Here's a 2016 way of doing this, my tutorial on Tips & Tricks has been approved by @Antes.  8)

[TRICK] Pretty "Child Boards" On Front Page - A 60 Seconds Fix - By Wellwisher (http://www.simplemachines.org/community/index.php?topic=544949.0)
Title: Re: Tidy Child Boards
Post by: Rock Lee on April 11, 2016, 07:09:31 PM
No doubt more than one job I've used it a lot and helped me ah ... Excellent work @Arantor

Modifications.spanish_latin-utf8.php
Code: [Select]
$txt['tidy_child_boards'] = 'Organizar foros/subforo en las columnas';
$txt['tidy_child_boards_no'] = 'No poner en columnas (por defecto)';
$txt['tidy_child_boards_2col'] = 'Dos columnas';
$txt['tidy_child_boards_3col'] = 'Tres columnas';
$txt['tidy_child_boards_4col'] = 'Cuatro columnas';
$txt['tidy_child_boards_icon'] = 'Muestra el icono de nuevo(a) tema(s)/respuesta(s) junto al subforo';
$txt['tidy_child_boards_bold'] = 'Mostrar los subforos los tema(s)/respuesta(s) no leídos en negrita';
$txt['tidy_child_boards_new'] = 'Imagen en pantalla de [nuevo/new] junto a los subforos no le&iacute;dos';

and Modifications.spanish_latin-utf8.php
Code: [Select]
$txt['tidy_child_boards'] = 'Organizar foros/subforo en las columnas';
$txt['tidy_child_boards_no'] = 'No poner en columnas (por defecto)';
$txt['tidy_child_boards_2col'] = 'Dos columnas';
$txt['tidy_child_boards_3col'] = 'Tres columnas';
$txt['tidy_child_boards_4col'] = 'Cuatro columnas';
$txt['tidy_child_boards_icon'] = 'Muestra el icono de nuevo(a) tema(s)/respuesta(s) junto al subforo';
$txt['tidy_child_boards_bold'] = 'Mostrar los subforos los tema(s)/respuesta(s) no leídos en negrita';
$txt['tidy_child_boards_new'] = 'Imagen en pantalla de [nuevo/new] junto a los subforos no leídos';

Regards!
Title: Re: Tidy Child Boards
Post by: ZabiinoOo on May 10, 2016, 11:01:26 PM
mod old version, update please
Title: Re: Tidy Child Boards
Post by: Arantor on May 11, 2016, 12:45:51 AM
How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 11, 2016, 02:46:03 AM
In mod description it is written :
" Compatible with 1.1.11 Core theme and 2.0 RC2 Curve and Core themes (out of the box, plus it's quite easy to add to others, even doing it manually)"

Ok, well.... can anybody thell me ( maybe mod creator ? ), what i have to do in REDSY THEME  ? I have 2.0.11 version, in the curve and coreits work, in REDSY not :( 
Title: Re: Tidy Child Boards
Post by: br360 on May 11, 2016, 03:26:54 AM
Redsy has it's own BoardIndex.template.php and MessageIndex.template.php, so to get it to work in the redsy theme you would have to manually add in the mod's code edits to those files in the redsy theme.

Another option you can try would be to uninstall this mod (make sure there are no errors when uninstalling) and then you can reinstall the mod- making sure that you are checking the option "Install in Other Themes" for any of your other themes you have when you do reinstall it.
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 11, 2016, 03:56:04 AM
Redsy has it's own BoardIndex.template.php and MessageIndex.template.php, so to get it to work in the redsy theme you would have to manually add in the mod's code edits to those files in the redsy theme.

Well, if i know what and where i must add.... i'm weak in that things...

Btw... maybe i reinstall this mod ( probadly i will have problems with install it on 2.0.11 ).
Title: Re: Tidy Child Boards
Post by: br360 on May 11, 2016, 04:27:17 PM
If you already installed this on your 2.0.11 forum, you should have no issues uninstalling and then reinstalling again. Just make sure that you do not uninstall if you see errors.

If you emulated your version in your package manager to be able to install this mod, you are going to have to emulate again before you can uninstall.  The link that Arantor posted above should be able to walk you through it again.
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 12, 2016, 03:28:57 AM
i install this mod on 2.0.5 or 2.06 version of SMF and do updates do 2.0.xx (11).... thats why i'm afraid this isnt work...
Title: Re: Tidy Child Boards
Post by: br360 on May 12, 2016, 03:38:08 AM
You said on another post that you are using 2.0.11, is that correct?

If you go into your package manager and emulate the version to 2.0.5 or 2.0.6 (or whatever earlier version is needed to uninstall this), your forum itself isn't actually going to that version, you are only emulating your version for the sole purpose of installing/uninstalling that specific mod.

Read the link that was posted earlier as it does explain in much better detail what actually happens when you emulate your version- http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version
Title: Re: Tidy Child Boards
Post by: Arantor on May 12, 2016, 04:24:01 AM
I really should write a new version that just installs on all 2.0 versions and doesn't make theme edits.
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 12, 2016, 05:16:51 AM
I really should write a new version that just installs on all 2.0 versions and doesn't make theme edits.

Oh yes yes yes :) Please do that !:)


Ps. Ok, a reinstall this mod ( emulated 2.0.4 ) and... and nothing :( Not work....  only in REDSY :/   In other themes ( like premium CITIEZ by dzinerstrudio ) it work, everything is ok. In REDSY not... i don't know what is going on..
Title: Re: Tidy Child Boards
Post by: Steve on May 12, 2016, 07:04:20 AM
That would be awesome if you could Arantor. :)
Title: Re: Tidy Child Boards
Post by: br360 on May 12, 2016, 02:35:04 PM
In other themes ( like premium CITIEZ by dzinerstrudio ) it work, everything is ok. In REDSY not... i don't know what is going on..

I did double check by following the uninstall/reinstall steps above, and it will work on redsy without having to do any manual edits on that theme. Did you make sure to check the redsy theme as well when you scrolled to the Install in Other Themes option?
Title: Re: Tidy Child Boards
Post by: Arantor on May 12, 2016, 05:18:05 PM
OH HAI THAR

I just added a new version of the mod, (almost) complete rewrite done this evening. Only this time, NO THEME EDITS REQUIRED, and it only makes two file edits this time.
Title: Re: Tidy Child Boards
Post by: br360 on May 12, 2016, 05:27:53 PM
Nice. Thank you Arantor.  :)
Title: Re: Tidy Child Boards
Post by: Steve on May 12, 2016, 08:10:47 PM
Freaking awesome job Arantor! ;D

Was one column not an option?
Title: Re: Tidy Child Boards
Post by: Arantor on May 13, 2016, 12:38:08 AM
One column was never an option ;)
Title: Re: Tidy Child Boards
Post by: Steve on May 13, 2016, 08:50:07 AM
Works for me then. ;D
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 13, 2016, 11:16:27 AM
Super. Everything works fine :)

Btw... how to increase distance between columns ? ( in two colums configuration )
Title: Re: Tidy Child Boards
Post by: Arantor on May 13, 2016, 11:17:16 AM
Screenshot please?
Title: Re: Tidy Child Boards
Post by: Wapilbn on May 13, 2016, 03:11:16 PM
(http://i.imgur.com/yxABu40.jpg)
Title: Re: Tidy Child Boards
Post by: Arantor on May 13, 2016, 03:30:19 PM
There isn't the room to make it wide enough. Even if the spacing is adjusted, it's going to put the long name up against the other column.
Title: Re: Tidy Child Boards
Post by: Biology Forums on May 16, 2016, 02:01:12 AM
There isn't the room to make it wide enough. Even if the spacing is adjusted, it's going to put the long name up against the other column.

Perhaps you could add

Code: [Select]
white-space: nowrap;
into the
Code: [Select]
<li>
Title: Re: Tidy Child Boards
Post by: Arantor on May 16, 2016, 02:37:01 AM
That would force it onto one line, sure, but the resultant combined width would make the containers flow oddly and force the lists to partially attempt to flow outside of the container since they're floated.
Title: Re: Tidy Child Boards
Post by: musicus on October 25, 2016, 05:16:22 PM
Hi problem with the new tidychild

Code: [Select]
Fatal error:  Cannot redeclare tidyChildBoards() (previously declared in /homepages/14/d562938237/htdocs/musociety/Sources/Subs-BoardIndex.php:345) in /homepages/14/d562938237/htdocs/musociety/Sources/Subs-BoardIndex.php on line 345
Here from line 345
What is wrong? My PHP-knowing is very small

Code: [Select]
   // Now we tidy the child boards. As if by magic.
   function tidyChildBoards(&$board)
   {
      global $modSettings, $context, $settings, $scripturl, $txt;

      $limit = ceil(count($board['children']) / $modSettings['tidy_child_boards']);
      $children = array();
      $this_count = $limit + 1;
      $this_division = 0;
      foreach ($board['children'] as $child)
      {
         if ($this_count >= $limit)
         {
            $this_division++;
            $this_count = 0;
         }
         $children[$this_division][] = $child;
         $this_count++;
      }

      // Having split the board into columns, dump the original children
      // and build the new layout
      unset ($board['children']);
      $board['description'] .= '<div class="board_children">';
      foreach ($children as $child_block)
      {
         $board['description'] .= '<div class="tidy_child"><ul>';
         foreach ($child_block as $child)
         {
            $board['description'] .= '<li>';
            if(!empty($modSettings['tidy_child_boards_icon']))
               $board['description'] .=  '<img src="' . $settings['images_url'] . '/' . ($child['new'] ? 'on' : 'off') . '.png" class="tidyboardimg" alt="" /> ';

            if (!$child['is_redirect'])
               $child['link'] = '<a href="' . $child['href'] . '" ' . ($child['new'] ? 'class="new_posts" ' : '') . 'title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')">' . $child['name'] . '</a>';
            else
               $child['link'] = '<a href="' . $child['href'] . '" title="' . comma_format($child['posts']) . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

            if (!empty($modSettings['tidy_child_boards_new']) && $child['new'])
               $child['link'] .= ' <a href="' . $child['href'] . '" title="' . $txt['new_posts'] . ' (' . $txt['board_topics'] . ': ' . comma_format($child['topics']) . ', ' . $txt['posts'] . ': ' . comma_format($child['posts']) . ')"><img src="' . $settings['lang_images_url'] . '/new.gif" class="new_posts" alt="" /></a>';

            // Has it posts awaiting approval?
            if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
               $child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] > $child['unapproved_posts'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';' . $context['session_var'] . '=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

            if(!empty($modSettings['tidy_child_boards_bold']) && $child['new'])
               $child['link'] = '<strong>' . $child['link'] . '</strong>';

            $board['description'] .= $child['link'];

            $board['description'] .= '</li>';
         }
         $board['description'] .= '</ul></div>';
      }
      $board['description'] .= '</div>';
   }

   $add_header = false;
   if (!empty($modSettings['tidy_child_boards']) && $modSettings['tidy_child_boards'] > 1)
   {
      if (!empty($boardIndexOptions['include_categories']))
      {
         // Doing the full listing
         foreach ($categories as $cat_id => $cat)
         {
            foreach ($cat['boards'] as $board_id => $this_board)
            {
               if (!empty($this_board['children']))
               {
                  tidyChildBoards($this_board);
                  $categories[$cat_id]['boards'][$board_id] = $this_board;
                  $add_header = true;
               }
            }
         }
      }
      else
      {
         // Doing a single board
         foreach ($this_category as $board_id => $this_board)
         {
            if (!empty($this_board['children']))
            {
               tidyChildBoards($this_board);
               $this_category[$board_id] = $this_board;
               $add_header = true;
            }
         }
      }
   }

   if (empty($context['html_headers']))
      $context['html_headers'] = '';

   if ($add_header)
   {
      $context['html_headers'] .= '
   <link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/css/tidychildboards2.css?fin20" />
   <style type="text/css">.tidy_child { width:' . floor(90/$modSettings['tidy_child_boards']) . '%; }</style>';
   }

   // By now we should know the most recent post...if we wanna know it that is.
   if (!empty($boardIndexOptions['set_latest_post']) && !empty($latest_post['ref']))
      $context['latest_post'] = $latest_post['ref'];

   return $boardIndexOptions['include_categories'] ? $categories : $this_category;
}

at first I deinstall it....
Title: Re: Tidy Child Boards
Post by: Kindred on October 25, 2016, 06:28:22 PM
you have double-installed the mod...  you will have to manually remove the duplicated code...
Title: Re: Tidy Child Boards
Post by: musicus on November 23, 2016, 09:45:33 PM
I install now the old version
Title: Re: Tidy Child Boards
Post by: Ray. on January 13, 2017, 06:14:09 AM
Can I get help? I want to change the moderator position from this:
(http://i.imgur.com/59AhCCT.png)

To this:
(http://i.imgur.com/gs1B2NZ.png)

Thanks.
Title: Re: Tidy Child Boards
Post by: Steve on January 13, 2017, 09:27:55 AM
Isn't that the exact opposite of what you asked for here? How to change the position of moderators (http://www.simplemachines.org/community/index.php?topic=551309.0)
Title: Re: Tidy Child Boards
Post by: Ray. on January 13, 2017, 09:28:34 AM
I got it wrong there, sorry.
Title: Re: Tidy Child Boards
Post by: Steve on January 13, 2017, 09:33:38 AM
No worries. :)

So above is the way you want it, correct?
Title: Re: Tidy Child Boards
Post by: Ray. on January 13, 2017, 09:34:06 AM
So above is the way you want it, correct?

Yes
Title: Re: Tidy Child Boards
Post by: Steve on January 21, 2017, 08:01:22 AM
In addition to Ray's question I have one as well. Why when I add a fifth child (with four columns selected in the settings) does the layout become:

child     child     child
child     child

Instead of:

child     child     child     child
child

as I expected?

The names are extremely short so that 'shouldn't' be the problem and it does happen on the default theme as well as others.
Title: Re: Tidy Child Boards
Post by: Arantor on January 21, 2017, 08:32:35 AM
First of all, in addition to Ray's question, because he decided to PM me to 'encourage me' to deal with his question and proceeded to go down the road of 'just when you get to it' as though there is some expectation on my part to do anything, he won't be getting an answer from me.

In answer to your question, that's almost certainly related to the theme having a slight padding on it that Curve doesn't have causing the calculation of width to go astray. Not sure off hand how to fix it but then again, I'm honestly not sure I can be bothered with it anyway. It's like SMF, I wish I'd never gotten involved with it. Truth be told, I only wrote this mod back in the day to prevent a crappier one being approved, not even because I wanted it myself though I eventually used it myself.

Consider this mod officially no longer supported but left up in case it is of use to anyone. (Cue the: but if you're not supporting it, why did you release it etc. comments)
Title: Re: Tidy Child Boards
Post by: Steve on January 21, 2017, 08:36:23 AM
You actually made me chuckle as I can certainly understand your feelings on the situation. I'll play around with it and see what I can find.

Thanks for letting us know. :)
Title: Re: Tidy Child Boards
Post by: Route on February 13, 2017, 05:48:52 AM
Is there any way to mod that plugin and make Child boards to 1 column ? Thank you
Title: Re: Tidy Child Boards
Post by: samimikawi on March 11, 2017, 11:56:07 PM
Dear Guys,

i install the mods and everything went ok even i check what have beem edited everything is fine , i went to admin-features and options - layout and i enable it and make it 2 columns and check everything is fine , but still i m not able to see the child boards.

kindly help.
( i m using 2.0.13 )
thanks and best regards
Title: Re: Tidy Child Boards
Post by: Arantor on March 12, 2017, 05:48:27 AM
Link to site?
Title: Re: Tidy Child Boards
Post by: samimikawi on March 12, 2017, 09:04:19 AM
it is not linked to anysite it is a stand alone simple forum.
Title: Re: Tidy Child Boards
Post by: Steve on March 12, 2017, 09:53:48 AM
That's what he wants the url to.
Title: Re: Tidy Child Boards
Post by: samimikawi on March 13, 2017, 01:14:08 AM
i m doing it in localhost right now still not upload it, http://local/smf
Title: Re: Tidy Child Boards
Post by: Arantor on March 13, 2017, 03:33:26 AM
I can't see that, and so I don't know how you expect me to debug it...
Title: Re: Tidy Child Boards
Post by: edi1967 on May 07, 2017, 06:28:16 AM
How i could have insted of forum default icon , one my personal icon in front of child board title?

thx for help
Title: Re: Tidy Child Boards
Post by: qubbah on August 16, 2017, 01:34:18 PM
How can i make it suitable with mobile responsive view?
Title: Re: Tidy Child Boards
Post by: Arantor on August 16, 2017, 01:38:06 PM
Pretty much rewrite it; it really wasn't designed with responsive in mind, not that 2.0 is particularly responsive.
Title: Re: Tidy Child Boards
Post by: Balsa. on January 06, 2018, 05:31:12 AM
Hey, i have SMF 2.0.15 smf , and theme zone99 20rc5, i install 2.0 tidy child boards for that SMF , and when i click "home" page can't load, why ?
Title: Re: Tidy Child Boards
Post by: Arantor on January 06, 2018, 05:40:08 AM
I don't know. What's in the error log?
Title: Re: Tidy Child Boards
Post by: Balsa. on January 06, 2018, 08:43:35 AM
When i install mod all is perfect, but when i activate and click "Home" page can't load. I don't know where is a error log
Title: Re: Tidy Child Boards
Post by: Arantor on January 06, 2018, 08:52:13 AM
Yes, I understand that part - but there's about a million reasons why it might not work and I don't know which one it is to be able to help you. It's like going to the doctor and saying "I'm sick" and expecting the doctor to have the answer without any other information.

Ask your host about the error log, they should be able to point you in the right place.
Title: Re: Tidy Child Boards
Post by: SaltedWeb on February 01, 2018, 04:59:58 PM
I have a function issue.
Installed and can be removed with no errors, creating childboard no errors.
However under features the settings for the mod are not there, I uninstalled and installed three times no errors but they don't show up.   smf 2.0.15
Title: Re: Tidy Child Boards
Post by: Steve on February 01, 2018, 05:19:10 PM
You are looking under 'Features and Options' and then the 'Layout' tab, right?
Title: Re: Tidy Child Boards
Post by: SaltedWeb on February 01, 2018, 05:34:20 PM
You are looking under 'Features and Options' and then the 'Layout' tab, right?

Awww man, putting on dunce cap, I just read literately where it says the adjustments are.

Can you help me find my cars keys they were in my left hand the last I saw them, never mind they were the right hand.
You'd think I would by now know to poke around a bit I know Ive done this before. gees  Thanks Steve.  :-)

Title: Re: Tidy Child Boards
Post by: Steve on February 02, 2018, 09:11:47 AM
No worries. We've all done this type of thing. :)