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
Yet another awesome mod! Congrats again!
/me mutters something about spammers
nice one dude, looks so much neater now. good job
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.
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.
Quote from: 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..
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.
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
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.
Quote from: 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.
and whats that suppose to mean??? it is the standard theme all i did was change color
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.
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
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.
arantor I sent you a pm please read and explain back
nice one
Brilliant mod and works fine! Perfect for the sites with more boards. Will definitely put this up on my site ASAI get more boards.
Looks a very nice mod. Will use it ;)
Arantor, I think I love you!!!!!!!!!! hehehe I have been waiting for this mod to get fixed!! (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpatriotgames2.info%2FSmileys%2Fclassic%2FHappyDance.gif&hash=cab616b100831770cfe5367c1f076dac1a04daed) (*doin the happy dance)
Will be installing this later tonight!! :)
I didn't just fix it - this is a complete rewrite with extra goodness :)
Quote from: Arantor on December 09, 2009, 07:09:41 PM
I didn't just fix it - this is a complete rewrite with extra goodness :)
Will this mod work on 2.0 RC1.2?
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.
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
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.
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) :)
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.
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fpatriotgames2.info%2FSmileys%2Fclassic%2FHugs.gif&hash=ee4c5745555fb8d7fbfff44d10f73944045efa9a)
Just glad it works out the way it's meant to :)
Very nice.
Thanks mate :)
arantor sent you that pm that you wanted....
And I replied :)
Quote from: Arantor on December 10, 2009, 03:15:49 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
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)
Closing the img tag and adding alt"" will validate it.
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="" />
Does it not pass validation? :o
/me was sure he put that in.
Just a simple miss for the 1.1.x version
EDIT: in both
Confirmed for all three supported themes.
Fixed in version 1.1 :D as well as adding 2.0 RC1.2 support :D
Hey if it wasnt for arantor we wouldnt be able to do this. it works fine in 3 column
Quote from: 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
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?
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.
Quote from: 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.
Indeed. Actually meant the column display/layout of child/sub boards has been done, not the way you've offered it. ;)
Quote from: Arantor on December 10, 2009, 03:42:52 AM
As for offline, yeah, means I get less PMs. I'm now in the bracket of 1-5 unsolicited per day...
lol
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.
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.
Quote from: Sabre™ on December 10, 2009, 04:01:26 AM
Yep, great mod mate, I'll be using it for most projects :)
Great to hear :)
QuoteI'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.
QuoteThose be the pitfalls when you're famous ;)
Infamous more like!
QuoteSide 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
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.
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)
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
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.
Thank you for the mod
Most awesome sub forum style ever, thanks dude!
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):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2F2emdjqb.png&hash=8bb517e990ffeb4459706d8776388a42279a57c1)
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F2cfuwwp.png&hash=bfccbd6e67b73ee39ce532f88193f5833df56440)
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 :)
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.
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"?
If you put in 2.0 RC2 in the advanced, it should allow you to uninstall.
Quote from: 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.
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. :-\
Use "SMF 2.0 RC2" not "SMF 2.0 RC2.0"
i edited my last post because I just figured that out
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.
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
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.
Quote from: 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.
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?
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. :(
Quote from: 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. :(
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?
QuoteI 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 :()
Quote from: Arantor on December 13, 2009, 04:44:59 AM
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 ;)
QuoteYes, 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)
Quote from: Kimmie on December 13, 2009, 04:01:09 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".
Quoteand 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)
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?
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.
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. :)
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.
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?
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi279.photobucket.com%2Falbums%2Fkk151%2Fstillperplexed%2Ftidyboardsinfirefox.png&hash=5f070dd177d07cffc50a084d8649ec4d70c1bb21)
and in IE7 it looks like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi279.photobucket.com%2Falbums%2Fkk151%2Fstillperplexed%2FtidyboardsinIE7.png&hash=a085c464f4740f70b32185bd557ed4793a5f03c2)
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)
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?
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.
It's just that the layout changes with resolution, and with one column some boards would be prettier...
But thanks anyway.
Am I an idiot because I cannot find where to setup this mod? I've looked everywhere.
Quote from: 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.
Admin>Configuration>Features and Options>Layout (scroll down to arrange child boards into columns)
Quote from: 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...
That would also imply configuration per parent board, which I'm definitely not going to be adding any time soon.
Quote from: 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.
1.1: Admin > Features and Layout > Layout
2.0: Admin > Features and Options > Layout (about 1/3 the way down the page)
Quote from: Arantor on December 16, 2009, 03:59:56 AM
Quote from: 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.
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.
Quote from: 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)
Sorry, I misread this. Did you mean I should mess with the css and see what happens?
Yeah, have a mess with the CSS file it comes with and see what happens. I haven't had chance to try it.
Such an Wonderful mod you have done.
Best suite all big boards.
Thanks for the excellent work you have done.
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. :-\
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.)
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?
Quote from: Cruncher Pete on December 21, 2009, 03:33:29 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.
Quote from: The Grinch on December 21, 2009, 03:53:20 AM
Quote from: Cruncher Pete on December 21, 2009, 03:33:29 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?
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).
Quote from: The Grinch 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).
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
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...
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 ?
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.
IE 6 and IE 7 with problem like previous member's problems. It is solved? How.
Great and super mod but IE?
Amazing mod Arantor!
Awesome mod! Congrats!
Quote from: 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?
Never said it was solved. I don't have IE 6 or 7 available right now to test this either.
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)
$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';
Thanks :)
I'll add that to the next version.
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.
Quote from: GohighVoltage on December 30, 2009, 04:24:14 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 :)
Nice mod Arantor. And one report
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
should be echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" /> ';
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...)
Quote from: 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...)
Boardindex.template edit. In last version of mod and smf 2.0 RC2.
Function is
template_tidy_children()
And line is
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=""> ';
=)
Huh, affects all the edits :(
Thanks for catching it, I'll fix it shortly.
How can i change it from this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F2v01j7q.png&hash=2d14105e3f4c2427ef01299e9a1dd0325e8dbaf0)
to this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi46.tinypic.com%2Fi4oajn.png&hash=0e13c0cae60df1a29f61c225b802df4e0f36c5b0)
where theres a different color box separating child boards from parent boards?
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F300znnn.png&hash=e0729d6d67996e836b6347ec2b2830236432ef45)
It looks like this without the tidy child boards, so i guess like this
So, um, what exactly are you hoping for? To me that area where the child boards are appears to be exactly the same colour?
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
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.
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?
No, because it's in the same container; unlike the usual which splits the containers, I don't.
so who can help me?
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.
well what are your solutions? :-\
Dropping an <hr /> into it with custom styling just above the newly added code in BoardIndex.template.php and MessageIndex.template.php
ok thats fine can you give me a code for that
So what colour is the dividing line supposed to be?
idk but if you put an <hr /> above the code, the forum will make it that color automatically
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.
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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F2ijkf9x.png&hash=0bc797970b721bc7d331c6cb0fd841942ea49a8f)
if not remove the space how can i add the same amount of space at the bottom of the child board
I don't know, sorry.
ok thank you for the help though
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
Glad to know it's working for you :)
Great mod ! It's working fine on our 2.0 RC2 forum :D
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
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
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.
Quote from: Harvester on January 10, 2010, 09:12:11 PM
also none of the items in the admin panel are labeled and the drop down box doesnt have any of the options labeled either... everything is blank... I can still select how many columns and it works but I cant see the labels "2 cols, 3 cols, 4 cols" etc... so its a guessing game as to which option I am choosing.
I have a custom theme but I parsed it and did all the edits teh parser on this page http://custom.simplemachines.org/mods/index.php?mod=2294 showed me to do
oh I have SMF 1.1.11 by the way
That's the age old and classic symptom that you're using English.UTF-8 instead of English as your language, or a similar mismatch
Copy the language strings from the /default-theme/languages/English.php into your /custom-theme/languages/all-languages-in-use.php files and the field labels will show up - remember to translate them as needed.
Gaz
even if I go for fewer columns it still breaks the names in half. I am just curious where you are setting the column width? Id like to edit and change it and see what happens.
Quote from: Arantor on January 10, 2010, 09:43:00 PM
Shorter board names? Fewer columns?
As for missing admin items... what language are you using? The mod only supports English/English-British on account of the fact I don't know any other languages.
Quote from: GazOutEast on January 11, 2010, 07:26:25 AM
That's the age old and classic symptom that you're using English.UTF-8 instead of English as your language, or a similar mismatch
Copy the language strings from the /default-theme/languages/English.php into your /custom-theme/languages/all-languages-in-use.php files and the field labels will show up - remember to translate them as needed.
Gaz
I actuallyt do not even have the english-utf-8 files on my server... I only run english.php and no other languages. Already copied all the language strings from the default theme to my custom... as I said... I installed this manually via the parser.. I double and triple checked everything. I will go back and give it a quadruple check though
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'].
Quote from: Harvester on January 11, 2010, 06:56:28 PM
even if I go for fewer columns it still breaks the names in half. I am just curious where you are setting the column width? Id like to edit and change it and see what happens.
Quote from: Arantor on January 10, 2010, 09:43:00 PM
Shorter board names? Fewer columns?
As for missing admin items... what language are you using? The mod only supports English/English-British on account of the fact I don't know any other languages.
You'll also notice if you set the boards with new posts to use bold titles, that the font width increases - this can cause text wrap to more than a single line,
As Arantor says, shorter board titles and fewer columns might be your only solution - it's what I had to do on mine.
Alternatively, if you can code, you might want to create a title length limiter that will only apply to displayed sub-boards titles, but which is also variable to suit the number of columns.
Another factor could be the display width set for your forum - too narrow and even a two column display will line wrap with short board titles. I use around 1000px on all my sites and scripts and it looks fine even on a wide screen monitor - I'm not a great fan of fluid width as I've seen it murder a number of site layouts and present garbage on screen.
Gaz
can someone post a site to check it out please.
Quote from: curlin on January 13, 2010, 11:42:09 PM
can someone post a site to check it out please.
There's screenshots on the mod site listing, or were last time I checked (I definitely added some!)
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??
You will have to edit your themes.
Please see Manual Installation of Mods (http://docs.simplemachines.org/index.php?topic=402.0)
OK Arantor, thanks a lot, you have a great Mod i will try apply this procedure in my themes
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:
function template_tidy_children() {
global $context, $settings, $txt, $modSettings;
function template_tidy_children() {
global $context, $settings, $txt, $modSettings, $scripturl;
installed perfectly fine on RC2.... really one my favorites mod :D
Does anyone know how to make the child boards like this
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi50.tinypic.com%2F28juu81.png&hash=f02c15005029355a797355c25a11a4b0454a6ca9)
Make them appear under the main things
High resolution image here
http://i50.tinypic.com/28juu81.png
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
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.
Thank you for updating this mod.
You are a valuable asset to this community.
Thanks :)
Actually, this one required about 2 minutes work to update :)
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.
Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:
.tidy_child ul li
{
font-size: 90%;
}
That worked perfectly. Thank you very much for the quick and helpful reply. :)
Glad to be of service :)
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.
Mind telling me what version you're on? (both SMF and mod)
Quote from: Arantor on March 10, 2010, 03:25:15 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
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)
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..
Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:
.tidy_child ul li a
{
font-weight: bold;
text-decoration: underline;
}
Ok..
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
Forum's in maintenance mode, we can't see.
Its on now
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.
Please add russian translation
My problem was due to the Twitter/Facebook mod. I emailed them to fix.
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?
Quote from: 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?
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
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 :)
I like the mod just the way it is. It is great.
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
Quote from: 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
Means you have a mod already that disagrees with this one.
Quote from: GohighVoltage on March 26, 2010, 09:16:18 AM
I like the mod just the way it is. It is great.
Ok nothing will change :)
I have installed tidy_child_board.
I want to remove the letter "Subforos" (subforum in english):
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg269.imageshack.us%2Fimg269%2F892%2Fmioh.gif&hash=0f105c02ac780d37b7e7ddfe1803e99eacd803ca)
I want to make:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg231.imageshack.us%2Fimg231%2F548%2Fejemplom.gif&hash=ac907fa2daea51be8a25090eb2f234d1427238c4)
Without letter "subforos" and y left part. What should I change?
Thx!
Last Modified: March 19, 2010
Latest Version: 1.3
In BoardIndex.template.php and MessageIndex.template.php files for default (curve) and core themes:
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="">
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="">
Closing the image tags will eliminate markup validation warnings.
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="" />
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.gif" width="12" height="12" alt="" />
Thanks.
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
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.
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:
Moderators: please merge this with the mod's support topic; it isn't a bug in SMF core.
how it will work?
I have installed now where to configure?
Quote from: 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?
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
Should be easy enough to add an option in the next version.
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.
1 column is planned in next release.
thanks, can't wait!
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.
did that arantor and the mod work beautifully thanks for your help
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
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 .
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.
I have little doubt it was posted - by which point I'd stopped supporting the mod...
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
Your theme has a custom BoardIndex.template.php, you will have to add the changes yourself to it.
Quote from: 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.
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,
<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
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!
Quote from: 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!
i'm sorry...
thx for all explaination, but i can't find : // Find all boards
where should i add this code:
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 ...
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.
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
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):
?>
Add Before:
$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';
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!
Quote from: 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?
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
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.
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.
QuoteOnce installed, you'll find these options in the Features and Options page of the admin panel:
Quote from: 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.
QuoteOnce 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.
Quote from: Arantor on May 09, 2010, 06:24:26 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.
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.
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...
Quote from: Runic 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.
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.
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?
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.
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..
this mod doesnt seem to work on MessageIndex.template even on a fresh install!
Did you checked it out in IE?
It appears to bug. At least, that's what it is doing for me.
Great mod! It would be good if it would be possible to change still font size of sub-forums.
Quote from: 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.
The answer is already in this thread. :) His reply was to my inquiry about making the text smaller.
Quote from: Arantor on March 09, 2010, 07:40:00 PM
Add a rule to the CSS file it adds (Themes/default/tidyboards.css) of:
.tidy_child ul li
{
font-size: 90%;
}
MarcusJ, o Thanks so much! :)
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
you installed it twice somehow
so... i uninstall it n try again?
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
Where's the support for this mod? :-\
No longer supported by the author.
I have very little time sorry.
Robbo, did you see my PM? ;)
I don't give support via PM. Either post your problem here or PM someone else.
I'm curious if anyone knows how to get something like this to work for the child boards INSIDE the parent forum?
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
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! :)
it must have made sense to the author as thats exactly how he wrote it to work
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?
If I have Images on board and tidy child boards mod, I have little problem :( in screen ...
How fix it :( ?
what browser?
Firefox :)
The browser would have nothing to do with it.
This fix comes courtesy of the infamous Arantor
Quote from: Arantor on January 27, 2010, 10:27:12 PM
You should be able to fix it by adding the following to Themes/default/tidyboards.css and refreshing the page:
.board_children { clear:left; }
Sabre : thanks ;) it´s working
My pleasure, and Arantors Im sure.
Enjoy :)
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!
what board number?
you can do it by changing subs-boardindex.php like so
//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']);
//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
Thanks! I'll give it
Quote from: Oya on October 10, 2010, 09:23:04 PM
what board number?
you can do it by changing subs-boardindex.php like so
//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']);
//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
This is an impressive and handy mod. Thank you. :)
I need to hide the 1st child boards inside the first parent forum on one board. Can you tell me how to do this?
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!
Quote from: 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!
It works perfectly on RC3. See my forum to look at it:
www.ccmasters.x10.mx
Quote from: MF Tlaxcala on October 16, 2010, 07:11:11 PM
Quote from: 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!
It works perfectly on RC3. See my forum to look at it: www.ccmasters.x10.mx
Beautiful! Thanks :)
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?
Robbo_ please RC4 support :)
Quote from: 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!
it will work fine through the installer providing your on the default core or curve..
I have it on both my 2.0rc3 boards..
for RC4 ...??
Quote from: 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?
Looks like it's already installed and doing its thing
It already works on RC4 under emulation
With some small fix in package file.
This mod is working excellently in my 2.0 RC4.
Thanks for this cool mod author.
Quote from: live627 on November 08, 2010, 03:12:55 PM
It already works on RC4 under emulation
What do you mean "under emulation" ? Thanks
Quote from: A.SK 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.
hello mr.A.sk can you tell me what is small fix in package file thanks
@ 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
GazOutEast I tested it at my test forum RC4.
This modification already works on RC4 under emulation RC3!
Try it...
Quote from: 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
Did you search the new wiki?
It installs fine once the package downloader is set to emulate RC3 in the advanced options. Couldn't have worked any easier.
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.
Not working with 1.1.12
Also not working with RC4.. :'(
As already stated it installs and works just fine on RC4... read just few posts back and you'll see how its done.
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
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:
floor(100/$modSettings['tidy_child_boards'])
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.
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
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
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.
Quote from: Eyesman on January 23, 2011, 03:11:06 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...
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 ;)
Quote from: Arantor on February 03, 2011, 11:15:38 AM
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?
Quote from: Arantor on February 03, 2011, 11:15:38 AM
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 :
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.hulpverleningsforum.nl%2Fsub-boards.png&hash=2f19a7dcdc47fc09568128d7cc9a1f7cfee4bfad)
Isn't that the MessageIndex? If so, I can't get my MessageIndex(es) altered like this, whatever setting I try.
Quote from: Arantor on February 03, 2011, 11:15:38 AM
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 :(
Quote from: Arantor on February 03, 2011, 03:01:24 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?
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
why no shange can 1 column? :(
Quote from: Shrinath on December 06, 2010, 11:00:14 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 :
<install for="2.0 RC2, 2.0 RC3">
Replace With :
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
Find :
<uninstall for="2.0 RC2, 2.0 RC3">
Replace With :
<uninstall for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
Quote from: Neo_TE on February 16, 2011, 06:49:54 AM
Replace With :
<install for="2.0 RC2, 2.0 RC3, 2.0 RC4, 2.0 RC5">
Why not
<install for="2.0 RC2 - 2.0 RC5">
??
Quote from: Arantor on February 16, 2011, 10:01:48 AM
Because they're not treated as numbers. They're discrete blocks.
Ok, thanks! ;)
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
go back 1 page to find a solution
Quote from: Spoogs on February 28, 2011, 06:59:35 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.
Nice mod, works great, thanks so much!
mine got issues hows this the spacing look inappropriate.. Im using 3 columns here.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi52.tinypic.com%2F2nr3eqe.png&hash=69c6e6b46fed5029937952f1b8d5ea861b93af29)
also when i use 2 columns the 3rd link sperates itself from the 2
help please
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
:(
pls see attats file
ohh sorry i misunderstood
uploadingtips.com
its installed before i raised the issue sir...
here is were it is installed
smf/Themes/AvaraMu/tidyboards.css
anyway sir this is just the scripts on the file
.tidy_child ul {
list-style:none;
padding:0 0.5em 0 0.5em;
}
.tidy_child {
display:block;
float:left;
}
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
Is the mod going to be updated for the latest smf 2.0RC5
Quote from: Arantor on February 16, 2011, 08:27:26 AM
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
thank you so much... it works fine with rc5
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
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'], ' • ', $txt['posts_made'], ': ', $context['common_stats']['total_posts'], ' • ', $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> ';
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();
}
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'], ' "', $context['latest_post']['link'], '" ', $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>"' . $context['latest_post']['link'] . '"</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('] [', $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>';
}
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.
Quote from: Arantor on March 09, 2011, 07:09:50 AM
And you did configure it to use the small board icon?
yes sir. It works well with core and curve theme.
sorry, it's here... (http://www.sekstorya.net)
strange, I am using 3.6.15 and I really don't see any board icon...
sir, kindly check it again...
thanks it works now. :)
this mod doesnt work with colorizeboards mod here: http://custom.simplemachines.org/mods/index.php?mod=1030
what to do? anyone can help?
Quote from: Arantor on March 12, 2011, 07:07:26 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.
Quote from: 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?
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?
Quote from: live627 on March 12, 2011, 08:09:42 PM
Quote from: 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?
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.
Hooray for half the story :P
Child boards not colorized with or without the mod?
Quote from: live627 on March 12, 2011, 10:27:18 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.
they don't complement to one another... simply these mods were written indifferently.
Will it be made for RC 4 and 5?
Ok, it installed. but where is the feature?
i am so so sorry. i found it. my mistake.
Curious if this will be updated for 2.0 gold, or does it already work for it?
Works fine on 2.0 Gold
Just emulate 2.0 RC3
Please help!
http://www.simplemachines.org/community/index.php?topic=439531.0
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.
I did disable my evaluation, and I get the same error.
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?
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
Try this but do a backup first, the code was duplicated.
Worked perfect, thanks!
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fskypeemoticons.net%2Fwp-content%2Fuploads%2F2010%2F01%2FSkype-emoticons-48-yes.gif&hash=18f9944d0bf4513227e7e3b66ec88546514330c3)
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 ...
Quote from: kimba 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 ...
Admin>> Package Manager... scroll down, click Advanced, change 2.0 to 2.0 RC3, install the mod, change it back to 2.0
Thanks. The mod has now been installed. However, the layout of the columns seem to have gone wary. Any suggestions?
Browser?
I'm using the latest version of Firefox.
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?
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. :)
Ah that was gonna be my next guess... glad it worked out for ya though :)
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 ...
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
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
thanks for help IchBin™
i cant find the options
Hi,
I have this problem with IE 9... in opera and FF is everything ok
(https://www.simplemachines.org/community/index.php?action=dlattach;topic=352963.0;attach=158561;image)
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
nothing happen ? I dont see any difference? I am using simplyblue theme. I ticked those options during installation too
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
anyone got it working with 2.0.1?
Just install it on SMF 2.0.1. Seems it is working fine till now :)
that's very weird. its not working for me. I tried both installation. both doesnt work. Im tried using default theme too. Dont work..
Quote from: 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..
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:
- In Package Manager scroll down to the bottom. On the right there is a link called "Advanced", click it.
- There will be a text box with the forum version in it.
In my case:
SMF 2.0.1
Change it to:
SMF 2.0 RC3 - Click the APPLY button.
- Now click on Download Package and install the mod. It should work. ;)
Once installed:
- In Package Manager scroll down to the bottom. On the right there is a link called "Advanced", click it.
- Click REVERT button.
- Click on APPLY button.
:) ;)
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"?
Quote from: Robbo_ on April 21, 2010, 01:21:34 PM
1 column is planned in next release.
Quote from: 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"?
Quote from: Robbo_ on April 21, 2010, 01:21:34 PM
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy297%2FShamblesX%2Fi30OwnersClub%2F3cols.jpg&hash=1ed62802c76627f00a2971542e0891ba1971799a)
2 COLUMNS:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy297%2FShamblesX%2Fi30OwnersClub%2F2cols.jpg&hash=00c479cb169936f19f8de6cfb4cf0e702302a1bf)
1 COLUMN:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy297%2FShamblesX%2Fi30OwnersClub%2Fafter.jpg&hash=281057200079468fa9aeee6b706ec36d6cef1825)
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.
Quote from: 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.
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.
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.
Quote from: IchBin™ on November 19, 2011, 12:27:37 AM
...Only attach the mod update if the author says it's ok.
I understand. I've messaged Robbo.
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?
i wish there is some one column child in this mod to make this more useful.
One column would not be a very effective option, unless you only have a few child boards in the first place.
Quote from: 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.
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.
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.
Quote from: Shambles on January 10, 2012, 03:29:40 AM
Quote from: 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.
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.
i'm using SMF 2.0.2 and the original code still works.
Quote from: fullmoonya on January 10, 2012, 04:58:35 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 :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy297%2FShamblesX%2Fchildboards.png&hash=e4b6688a8403ddb0cac8077791b04324216a7bb0)
Quote from: Shambles on January 16, 2012, 05:17:36 AM
Quote from: fullmoonya on January 10, 2012, 04:58:35 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 :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi7.photobucket.com%2Falbums%2Fy297%2FShamblesX%2Fchildboards.png&hash=e4b6688a8403ddb0cac8077791b04324216a7bb0)
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. :)
it doesnt work properly in IE9. The columns should be side to side, but they are top/bottom
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi42.tinypic.com%2F24bp6d2.png&hash=b2a9ba37f21117b637c6d227a23b62248b9541e9)
what can I do to fix this?
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.
Quote from: 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.
I never had a problem with it in IE till I upgraded to 9.
So am I to assume there is no fix?
Does anyone have a version that is Compatible with 2.0?
Quote from: Kimmie on January 20, 2012, 11:05:07 PM
Quote from: 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.
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.
Quote from: mageguild on January 20, 2012, 11:22:55 PM
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.
thanks Spoogs, your nice mod :)
persian translate attached ;)
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 :(
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.
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 !!!
Quote from: Arantor on January 21, 2012, 07:12:56 AM
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?
Sounds like the code has been included twice for some reason...
Works perfect on the default theme curve but cant get it to work on the black rain template.
Any help, thanks.
Quote from: Dr3amstor on August 02, 2012, 08:29:54 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.
Quote from: Shambles™ on August 02, 2012, 08:49:57 AM
Quote from: Dr3amstor on August 02, 2012, 08:29:54 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.
I got it sorted.
Thank you
where to find Tidy Child Boards 1.3 for 2.0 RC3?
thanks
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.
iff i use more than one column its all on the right side of the page and not left
How can i fix this?
still no one who knows how to fix this?
its showing under last message on the right side and needs to be left
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.
got it fixed.
found this post in the thread:
Quote from: 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
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.
Still after all this time waiting for solution about my problem
How to fix this?
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
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">
Quote from: 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">
Thank you, that did the trick :)
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.
I love this mod but it doesn't work for the current version. Any chance of updating it?
Oh look,, someone else doesn't read! trolllface.png
Quote from: live627 on March 20, 2013, 02:28:44 AM
Oh look,, someone else doesn't read! trolllface.png
Crap, my bad. I'll actually read and do what he says.
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']%)
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;
}
Not without a more complex overhaul from what I remember and it's been a long time since I originally wrote this... :/
im wondering if somebody knows how to install this on 2.0.4 smf.???
Quote from: LisandroM on June 10, 2013, 12:15:19 AM
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.
:)
Quote from: LisandroM on June 10, 2013, 12:15:19 AM
im wondering if somebody knows how to install this on 2.0.4 smf.???
It works perfectly with SMF 2.0.4
Is there anyway to change the mod into rows instead of column?
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:
<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt="">
With this one:
<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!
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
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.
For me, it works well on the old forum. I have no problem
Thank you :D
I even used this emulation in the passed. I kinda forgot about it :-[
It worked :D
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!
SMF does not consider the case of child of a child in any circumstances, whether this mod is installed or not.
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...
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)
Excellent mod, please update for 2.0.6 plz ;D
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)
how to make it work with custom board icon :-X
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. :)
echo '<img src="', $settings['images_url'], '/', ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
echo '<img src="', $settings['images_url'], '/', $context['theme_variant_url'], '' , ($child['new'] ? 'on' : 'off'), '.png" width="12" height="12" alt=""> ';
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:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.minus.com%2FjbhoClLfxv3iKs.png&hash=a882417c05447725d02866faab4d6af26c731fa9)
Ahora cuando me dispongo entrar al apartado "Noticias e Información" sólo me aparece 1 sub-foro de 2 que tengo:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi4.minus.com%2FjbnJwpf9LGj0Px.png&hash=2c5d58f5a1ed70e9f009aec9cb18f800e4ad7de5)
¿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.
I'm sorry, I don't understand the problem.
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.
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.
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
QuoteThis 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.
QuoteWhich 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.
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.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F6JLmVp7.png&hash=ef5b487d4b6d50315a07247633ab5adbdab04684)
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.
Quote from: 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.
I don't understand. The legend at the bottom clearly says it pertains to the mods
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FVSCLEPi.png&hash=609c8034623a6dedc1e631666aa3c7e55eabf308)
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 from: Arantor on September 01, 2014, 09:05:54 AM
QuoteThis 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. ;)
QuoteI 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.
Quote from: Arantor on September 02, 2014, 08:42:48 AM
QuoteI 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
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FSOZ7AG3.png&hash=3ecd1b5d30cb215309c201a7c7113057e818c25b)
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.
QuoteIsn'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.
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..
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)
QuoteI 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.
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...
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.
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
:)
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)
Any chance this mod gets updated? I get "Package" corrupt when trying to upload.
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
:)
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)
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.
That actually worked! Thank you for prompting me to further think through it!
Cool beans. :)
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
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)
hi is there any child boards mod for 2.0.11?
^-- this will work fine:
http://custom.simplemachines.org/mods/index.php?mod=2294
You can achieve what this mod does with a little bit of CSS & a simple theme file edit:
.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.
Did you happen to note that this mod was released 7 years ago, before CSS did much of what it does?
Quote from: 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?
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.
Wellwisher, can I pm you about this?
Quote from: Steve on April 06, 2016, 08:59:32 AM
Wellwisher, can I pm you about this?
Sure thing, Steve.
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)
No doubt more than one job I've used it a lot and helped me ah ... Excellent work @Arantor
Modifications.spanish_latin-utf8.php
$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';
and Modifications.spanish_latin-utf8.php
$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!
mod old version, update please
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)
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 :(
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.
Quote from: 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.
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 ).
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.
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...
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
I really should write a new version that just installs on all 2.0 versions and doesn't make theme edits.
Quote from: 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.
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..
That would be awesome if you could Arantor. :)
Quote from: Wapilbn on May 12, 2016, 05:16:51 AM
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?
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.
Nice. Thank you Arantor. :)
Freaking awesome job Arantor! ;D
Was one column not an option?
One column was never an option ;)
Works for me then. ;D
Super. Everything works fine :)
Btw... how to increase distance between columns ? ( in two colums configuration )
Screenshot please?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FyxABu40.jpg&hash=fa1197680bd91f071365a22f6eaed3987923920d)
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.
Quote from: 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.
Perhaps you could add
white-space: nowrap;
into the
<li>
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.
Hi problem with the new tidychild
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
// 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....
you have double-installed the mod... you will have to manually remove the duplicated code...
I install now the old version
Can I get help? I want to change the moderator position from this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F59AhCCT.png&hash=8c3939fa586b981793053f519f74bd17b9852da5)
To this:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fgs1B2NZ.png&hash=113470e0fb17b653948f73bacbc73aa7caf8c795)
Thanks.
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)
I got it wrong there, sorry.
No worries. :)
So above is the way you want it, correct?
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.
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)
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. :)
Is there any way to mod that plugin and make Child boards to 1 column ? Thank you
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
Link to site?
it is not linked to anysite it is a stand alone simple forum.
That's what he wants the url to.
i m doing it in localhost right now still not upload it, http://local/smf
I can't see that, and so I don't know how you expect me to debug it...
How i could have insted of forum default icon , one my personal icon in front of child board title?
thx for help
How can i make it suitable with mobile responsive view?
Pretty much rewrite it; it really wasn't designed with responsive in mind, not that 2.0 is particularly responsive.
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 ?
I don't know. What's in the error log?
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
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.
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
You are looking under 'Features and Options' and then the 'Layout' tab, right?
Quote from: Steve on February 01, 2018, 05:19:10 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. :-)
No worries. We've all done this type of thing. :)