Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: hhy89 on March 23, 2009, 02:53:18 PM

Title: Aligned and Bilateral Child Boards
Post by: hhy89 on March 23, 2009, 02:53:18 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1704)




Aligned and Bilateral Child Boards smf 1.1.x

made by www.smfmod.com (http://www.smfmod.com)
Version: 1.0 Date 2009-03-12
Compatibility: SMF 2.0 RC1


Version: 1.0 Date 2009-03-24
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add smf 1.1.x


Version: 1.2 Date 2009-04-03
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add MessageIndex.template.php


Version: 1.3 Date 2009-04-11
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add new look for smf 2.0 RC1


Version: 1.4 Date 2009-04-11
Compatibility: SMF 2.0 RC1 & 1.1.x
*Child board can be selected as tripartite or bilateral
Title: Re: Aligned and Bilateral Child Boards
Post by: armorbeast on March 23, 2009, 05:51:44 PM
What exactly does this do?
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 23, 2009, 06:00:45 PM
Child Boards are Aligned and Bilateral
Title: Re: Aligned and Bilateral Child Boards
Post by: fords8 on March 23, 2009, 06:24:03 PM
Installed and works great! Nice work!
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 23, 2009, 09:58:33 PM
One of the more useful mods.

Suggestion:
I would like the images on the left (on.gif, off.gif, etc) to be aligned at the top, rather than in the middle.

Other than that, great work.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 23, 2009, 10:06:59 PM
Quote from: armorbeast on March 23, 2009, 05:51:44 PM
What exactly does this do?

Basically, it just re-aligns the child boards to make them look nicer.
Title: Re: Aligned and Bilateral Child Boards
Post by: armorbeast on March 23, 2009, 11:23:47 PM
Ahhh, ok. They do look better this way. I was looking for a mod that would put the child boards at the bottom of the parent board though. Members of my site hate having the child boards at the top so much we actually got rid of them. Might try this one and maybe the drop down mod and see if either gives us what we want.

Thanks for showing me an image and for contributing to SMF as I know you guys don't always have the time 8)
Title: Re: Aligned and Bilateral Child Boards
Post by: kichu on March 24, 2009, 05:27:22 AM
can u make this mod for 1.1.8 :)
Title: Re: Aligned and Bilateral Child Boards
Post by: edi67 on March 24, 2009, 05:57:43 AM
let me try it ;)
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 24, 2009, 06:54:49 AM
I've done templates like this for 1.1.8 and RC1. It's not hard in either, so it wouldn't be hard to pack it as a mod.
Title: Re: Aligned and Bilateral Child Boards
Post by: kichu on March 24, 2009, 07:45:52 AM
Antechinus :) can u do it for me plz
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 24, 2009, 09:02:40 AM
made by www.smfmod.com
Version: 1.0 Date 2009-03-24
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add smf 1.1.x

Aligned_and_Bilateral_Child_Boards.zip
for smf 2.0 rc1
Aligned_and_Bilateral_Child_Boards_1.1.x.zip
for smf 1.1.x
;)
Title: Re: Aligned and Bilateral Child Boards
Post by: SilverKnight on March 24, 2009, 11:44:24 AM
Can you make a 3 row design? theres so much free space...
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 24, 2009, 05:21:13 PM
There you go, kichu. Ask and ye shall receive. :)

SilverKnight, if he does that someone will want four rows (I know someone who did). It's easy to alter your template manually if you want to customise the number of rows.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 24, 2009, 08:54:33 PM
Quote from: SilverKnight on March 24, 2009, 11:44:24 AM
Can you make a 3 row design? there's so much free space...

I wouldn't mind knowing this too.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 24, 2009, 09:03:05 PM
Quote from: dwd2000 on March 23, 2009, 09:58:33 PM
One of the more useful mods.

Suggestion:
I would like the images on the left (on.gif, off.gif, etc) to be aligned at the top, rather than in the middle.

Other than that, great work.

Never mind...I figured it out.

Find: (Line 127 for me)
Quote<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon">

Replace with:
Quote<td', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg icon" valign="top">

realign.png - Before
realign2.png - After
Title: Re: Aligned and Bilateral Child Boards
Post by: kichu on March 24, 2009, 11:34:00 PM
Ty dwd2000 , it is working ...


Title: Re: Aligned and Bilateral Child Boards
Post by: haito on March 25, 2009, 01:20:26 AM
nice mod....
thanks
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 25, 2009, 01:42:30 AM
Quote from: dwd2000 on March 24, 2009, 08:54:33 PM
Quote from: SilverKnight on March 24, 2009, 11:44:24 AM
Can you make a 3 row design? there's so much free space...

I wouldn't mind knowing this too.
Yes it can be done but I'm not sure how many mods he wants to make for the same purpose.
Do it like this:

Replace this:

     <td class="windowbg3 smalltext largepadding">
         <table style="float:right; padding-left:10px;margin-top: 15px;" width="97%" cellspacing="0" cellpadding="3" border="0">
                  <tr>
                     <td style="width:50%" valign="top">
                        <strong>', $txt['parent_boards'], '</strong>:<br/>';
                     for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++)
                        echo $children[$sayac2], '<br/>';
                     echo '
                     </td>
                     <td style="width:60%" valign="top">
                        <br/>';
                     for(; $sayac2 < $sayac ; $sayac2++)
                        echo $children[$sayac2], '<br/>';
                     echo '
                     </td>
                  </tr>
               </table>
            </td>


with this:

     <td class="windowbg3 smalltext largepadding">
         <table style="float:right; padding-left:10px;margin-top: 15px;" width="97%" cellspacing="0" cellpadding="3" border="0">
                  <tr>
                     <td style="width:40%" valign="top">
                        <strong>', $txt['parent_boards'], '</strong>:<br/>';
                     for($sayac2 = 0 ; $sayac2 < ceil($sayac/3);$sayac2++)
                        echo $children[$sayac2], '<br/>';
                     echo '
                     </td>
                     <td style="width:30%" valign="top">
                        <br/>';
                     for(; $sayac2 < ceil($sayac/1.5);$sayac2++)
                        echo $children[$sayac2], '<br/>';
                     echo '
                     </td>
                     <td style="width:30%" valign="top">
                        <br/>';
                     for(; $sayac2 < $sayac ; $sayac2++)
                        echo $children[$sayac2], '<br/>';
                     echo '
                     </td>                  </tr>
               </table>
            </td>
Title: Re: Aligned and Bilateral Child Boards
Post by: edi67 on March 25, 2009, 04:13:21 AM
Thx Antechinus work perfectly with some little modification for my page
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 25, 2009, 04:19:56 AM
Cool. I just took a rough guess at the widths. ;)

You can do four or five columns the same way. Just add another td and change the divisors.
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 25, 2009, 05:10:20 AM
thanx Antechinus ;D
thank u :D
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 25, 2009, 11:01:58 AM
QuoteYes it can be done but I'm not sure how many mods he wants to make for the same purpose.

Maybe something in the admin section to allow a choice between 2, 3, or even 4 columns might be a way?

Works great. Thanks.

realign.png - original
realign2.png - on.gif / off.gif aligned top
realign3.png - on.gif / off.gif aligned top and 3 columns
Title: Re: Aligned and Bilateral Child Boards
Post by: edi67 on March 25, 2009, 01:58:39 PM
Quote from: Antechinus on March 25, 2009, 04:19:56 AM
Cool. I just took a rough guess at the widths. ;)

You can do four or five columns the same way. Just add another td and change the divisors.

sorry please explain me how i could make it for 4 columns
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 25, 2009, 06:12:31 PM
The process depends on the number of td cells and the divisors used.
If you look at the difference between the two and three column codes you'll see the extra td cell I added.
The divisor in the first td cell for the two column code is 2, as you would expect for putting half the child boards in each column.

For the three column code the divisor is changed to 3 for the first td cell (to give one third of the child boards in that column) and 1.5 for the second cell (dividing by 1.5 being that same as multiplying by two thirds).  

For a four column code you'd add one more td and change the divisors to 4, 2 and 1.33. This last one may need some tweaking due to rounding errors, since 4/3 is an irrational decimal. Either of 1.32 or 1.34 should work as a limit though.

For five columns, if anyone ever wants them, it's an additional td and the divisors become 5, 2.5, 1.66 and 1.25.
Once again rounding errors may make it necessary to tweak the third one to 1.65 or 1.67. Whichever works best.

ETA: Oh and of course you'd need to adjust the width settings for the td cells. For a start I'd go with 25% for four columns and 20% for five, then play around a bit until it looks right.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 26, 2009, 01:09:19 AM
Hmmm.

Just noticed it's not working on Child Boards of Child Boards.

Yes, my Child Boards have Child Boards of their own.
(I guess that makes them Grandchild Boards)  ;D

Any ideas?
Title: Re: Aligned and Bilateral Child Boards
Post by: kichu on March 26, 2009, 03:15:01 AM
Child Boards Font is very small.. how to increase ?
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 26, 2009, 06:03:24 AM
' . $child['name'] . '
replace
<font size="2">' . $child['name'] . '</font>
Title: Re: Aligned and Bilateral Child Boards
Post by: kichu on March 26, 2009, 09:53:52 AM
thx again hhy89 :)
Title: Re: Aligned and Bilateral Child Boards
Post by: nina-nina on March 30, 2009, 12:39:20 AM
I installed the Aligned and Bilateral Child Boards Mod but my childboards are not aligned even after aplying the mod.  Is there any step I may have missed?  Look below
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 30, 2009, 08:53:17 AM
give me boardindex.template.php
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 30, 2009, 11:08:34 AM
Quote from: hhy89 on March 30, 2009, 08:53:17 AM
give me boardindex.template.php

Wasn't sure if you were saying that to me, nina-nina, or both of us.

My problem is that this is not working on the child boards of my child boards.
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on March 30, 2009, 08:09:43 PM
can u try it
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 30, 2009, 09:57:43 PM
Quote from: hhy89 on March 30, 2009, 08:09:43 PM
can u try it

Didn't work.

It's a great mod. I'm hoping this part can be fixed. It would make it that much better.
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on March 31, 2009, 08:04:00 AM
Those need to be edited in MessageIndex.template.php, not BoardIndex.template.php. The code is much the same, it's just in another template.
Title: Re: Aligned and Bilateral Child Boards
Post by: spiffypix on March 31, 2009, 08:57:54 PM
hi -

Can someone please tell a noob like me how to get this to work on my template themes as well?  I tried to cut and paste all of that code on the bottom of the mod page into my other theme page.  The child boards did what they were supposed to do, but the stats, calendar, etc all of a sudden moved to the very top of my forum page.

Any ideas?

Thx...Melanie
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 31, 2009, 10:08:26 PM
Quote from: Antechinus on March 31, 2009, 08:04:00 AM
Those need to be edited in MessageIndex.template.php, not BoardIndex.template.php. The code is much the same, it's just in another template.

GOT IT.  ;D

It took a little doing, but it's done.

Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on March 31, 2009, 10:35:17 PM
I've reduced the top margin to 10px and added 10px to the bottom margin.
Also used the 3 column edit and changed the tables to 33%, 33% and 34%.

Hope this helps.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 01, 2009, 05:03:27 PM
Quote from: spiffypix on March 31, 2009, 08:57:54 PM
hi -

Can someone please tell a noob like me how to get this to work on my template themes as well?  I tried to cut and paste all of that code on the bottom of the mod page into my other theme page.  The child boards did what they were supposed to do, but the stats, calendar, etc all of a sudden moved to the very top of my forum page.

Any ideas?

Thx...Melanie

You'll need the BoardIndex.template.php from each theme, then do the manual edits.
If you want the "child of child" boards done, you'll have to modify the MessageIndex.template.php from the same theme.

If you are using SMF 2 RC1, I think there's an option to install it into other themes (near the bottom) when you do the initial installation. I'm just using the default theme, although it's heavily modified.
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 01, 2009, 08:44:11 PM
Quote from: Antechinus on March 31, 2009, 08:04:00 AM
Those need to be edited in MessageIndex.template.php, not BoardIndex.template.php. The code is much the same, it's just in another template.

I could use some help.. i did as you said and put it manually in the MessageIndex.template.php file. It works perfectly, However now im getting an error reading:

8: Undefined index: viewer_text
Line 69.

I know its because of me adding this mod manually. maybe i missplaced something? This is my only error in all of my forums i hope you can help me =(
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 01, 2009, 11:07:49 PM
anyone have any kind of idea ???
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 01, 2009, 11:48:39 PM
Quote from: Amoreitalia on April 01, 2009, 08:44:11 PM
Quote from: Antechinus on March 31, 2009, 08:04:00 AM
Those need to be edited in MessageIndex.template.php, not BoardIndex.template.php. The code is much the same, it's just in another template.

I could use some help.. i did as you said and put it manually in the MessageIndex.template.php file. It works perfectly, However now im getting an error reading:

8: Undefined index: viewer_text
Line 69.

I know its because of me adding this mod manually. maybe i missplaced something? This is my only error in all of my forums i hope you can help me =(

Attach your MessageIndex.template.php file.
Are you using the default theme?
I have an extra mod mixed with my MessageIndex.template.php file. (Images on Board)
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 01, 2009, 11:57:08 PM
hey dwd i was going to try to get ahold of you last night on yoru forums but didnt have time.

i manually edited that index page like you had to. but im getting that error now and dont know how to fix it. What do you need from me? a code link of that whole section?

im not using the default theme.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 12:04:37 AM
Quote from: Amoreitalia on April 01, 2009, 11:57:08 PM
hey dwd i was going to try to get ahold of you last night on yoru forums but didnt have time.

i manually edited that index page like you had to. but im getting that error now and dont know how to fix it. What do you need from me? a code link of that whole section?

im not using the default theme.

Attach your MessageIndex.template.php to a reply to this message.
Look for "Additional Options" at the bottom left on the "Reply" page.
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 02, 2009, 12:15:41 AM
here ya go
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 12:26:43 AM
Quote from: Amoreitalia on April 02, 2009, 12:15:41 AM
here ya go

You are using SMF 1.1.x.

I'll try.
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 02, 2009, 12:31:59 AM
ok awesome. i appreciate it.  :D I Hope i can get rid of that error lol. like i said before it works perfect for my grandchild boards lol. but throws up that error.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 12:56:01 AM
Quote$child['viewer_text']

This is part of the code that you installed, as per the instructions, which is in this part:

Quoteforeach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name'] . '</a>';

All this means is that viewer_text has not been defined. I can't find it mentioned anywhere else on the page.

It is possible that it was erased somehow, defined somewhere else in another file, or not included in your theme.

Check your version of the default theme and see if it is defined in its MessageIndex.template.php.

I've been using SMF 2x for a few months now and I'm concentrating on learning that system.

Personally, if it is working, don't worry about it so much. If you have time, search the SMF 1.1.8 support boards for exact error and see what shows up.

Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 02, 2009, 02:54:10 AM
uh oh i think the problem is i added that to the default theme...

should i have done the mod on my php file in my actual custom theme?
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 02:58:47 AM
Quote from: Amoreitalia on April 02, 2009, 02:54:10 AM
uh oh i think the problem is i added that to the default theme...

should i have done the mod on my php file in my actual custom theme?

I would think you would have to install it on every theme you use, unless the new theme reverts to the default. To be safe, I would install it on every theme you use.
Title: Re: Aligned and Bilateral Child Boards
Post by: Amoreitalia on April 02, 2009, 03:11:58 AM
but then again its all worked so far... i only have like 4 0r 5 simple mods. ive always added it to the default theme and it works just fine. thats the first time i tried altering another area.

Id liek to ignore it but every user that goes to that certain section gets like 2 or 3 errors each time. Kinda annoying. What can you recommend oh wise one? lol

i also didnt back that file up... so im kinda pissed at that..
Title: Re: Aligned and Bilateral Child Boards
Post by: Aleksi "Lex" Kilpinen on April 02, 2009, 10:39:38 AM
Just my 2 cents on this issue here (http://www.simplemachines.org/community/index.php?topic=302570.msg2001072#msg2001072)
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 11:50:19 AM
Quote from: LexArma on April 02, 2009, 10:39:38 AM
Just my 2 cents on this issue here (http://www.simplemachines.org/community/index.php?topic=302570.msg2001072#msg2001072)

Thanks.
It looks like that part can be taken out.

Quotein ./Themes/default/MessageIndex.template.php I would try finding this

Code: [Select]
$txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name']

and changing it to this

Code: [Select]
$txt[21] . ': ' . $child['posts']. ')">' . $child['name']
But I can't promise you it will work, so if you didn't backup already - then atleast take a copy of the file now, before trying.

Title: Re: Aligned and Bilateral Child Boards
Post by: Aleksi "Lex" Kilpinen on April 02, 2009, 11:52:37 AM
That seemed to solve Amoreitalia's problem at least, and yeah, I actually missed the fact that the edit wasn't in boardindex.php afterall, but messageindex.php instead, but Amoreitalia pointed that out, and the same solution seemed to work still. :)
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 02, 2009, 12:29:36 PM
Quote from: LexArma on April 02, 2009, 11:52:37 AM
That seemed to solve Amoreitalia's problem at least, and yeah, I actually missed the fact that the edit wasn't in boardindex.php afterall, but messageindex.php instead, but Amoreitalia pointed that out, and the same solution seemed to work still. :)

I just read through it very quickly, and I missed that. (not in BoardIndex.php)  :-[
I was getting ready for work.

I have modified the above post to show MessageIndex.template.php, not BoardIndex.template.php
Title: Re: Aligned and Bilateral Child Boards
Post by: Aleksi "Lex" Kilpinen on April 02, 2009, 12:31:47 PM
I'm not sure about the boardindex, as this time the error came up from messageindex only...

EDIT to add:

I went through all my theme files, and not a single hit when I searched for the $child['viewer_text']  in them, so I'm pretty confident it is not needed, nor does it belong to the 1.1.8 code at all.
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 03, 2009, 11:41:59 AM
I think hhy89 has enough info here to put together an updated version.
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 03, 2009, 04:16:38 PM
Version: 1.2 Date 2009-04-03
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add MessageIndex.template.php
Title: Re: Aligned and Bilateral Child Boards
Post by: dwd2000 on April 03, 2009, 04:25:25 PM
Quote from: hhy89 on April 03, 2009, 04:16:38 PM
Version: 1.2 Date 2009-04-03
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add MessageIndex.template.php

;D
Title: Re: Aligned and Bilateral Child Boards
Post by: Aleksi "Lex" Kilpinen on April 05, 2009, 11:08:24 AM
There is still an error in the mod code.

Both in ./Themes/default/BoardIndex.template.php AND MessageIndex.template.php have an unnecessary $child['viewer_text'] in them.

I would suggest changing this

$txt[21] . ': ' . $child['posts']. $child['viewer_text'] . ')">' . $child['name']

to this

$txt[21] . ': ' . $child['posts']. ')">' . $child['name']

In both of them ;) (For 1.1.8 at least... )
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 05, 2009, 02:41:04 PM
:o sorry about that :D
thanx LexArma ;)
Title: Re: Lex via Nokia
Post by: Aleksi "Lex" Kilpinen on April 05, 2009, 02:57:18 PM
You're welcome :)
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 11, 2009, 08:24:57 AM


Version: 1.3 Date 2009-04-11
Compatibility: SMF 2.0 RC1 & 1.1.x
*Add new look for smf 2.0 RC1 :D :D :D
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 11, 2009, 09:56:36 AM


Version: 1.4 Date 2009-04-11
Compatibility: SMF 2.0 RC1 & 1.1.x
*Child board can be selected as tripartite or bilateral :D :D
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on April 20, 2009, 02:54:47 PM
Getting TONS of errors on this mod (even on the default theme and it installed with no problems)

8: Undefined index: can_approve_posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 205

8: Undefined index: posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200

8: Undefined index: board_topics
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200

8: Undefined index: old_posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200


The above are just a few of the errors. There is 35 pages of errors just on the default theme after viewing the home page "once".

Any ideas?


EDIT: I figured out the problem. Make sure you tell folks that are using 1.1.8 (or lower), that they can ONLY use BINARY. If they try and use Triad, this will happen
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 20, 2009, 03:11:54 PM
it work triad very well
demo:
http://www.comuforum.com/index.php
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on April 20, 2009, 03:15:13 PM
Quote from: hhy89 on April 20, 2009, 03:11:54 PM
it work triad very well
demo:
http://www.comuforum.com/index.php

Not on a 1.1.8 default theme it doesnt..lol. I just showed you a bunch of errors and it installed with no test faileds. Those errors came from the default theme.
Title: Re: Aligned and Bilateral Child Boards
Post by: Marcus J on April 23, 2009, 06:46:56 AM
It installed fine for me, and it works on child boards.  However the index is still default.

I'm using a modified version of the default with tinyportal.

Any suggestions?
Title: Re: Aligned and Bilateral Child Boards
Post by: nina-nina on April 28, 2009, 10:55:08 AM
This mod is not working on my theme. I am using  Callisto Premium theme and smf 1.1.8. I would love to be able to use it!  :)
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on April 28, 2009, 05:30:26 PM
Quote from: nina-nina on April 28, 2009, 10:55:08 AM
This mod is not working on my theme. I am using  Callisto Premium theme and smf 1.1.8. I would love to be able to use it!  :)
give me display.template.php
Title: Re: Aligned and Bilateral Child Boards
Post by: webline on April 29, 2009, 10:09:01 AM
i get this error (only with binary child option):


QuoteFile: /Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 184

Undefined offset: 21


i think is this code "$txt[21]" but i cant find any corresponding text in the language files
Title: Re: Aligned and Bilateral Child Boards
Post by: sombra on May 02, 2009, 12:12:15 PM
mm test failed

(http://img21.imageshack.us/img21/2117/testfailed.jpg)

im using darkbreak this theme only has index

and smf rc1
Title: Re: Aligned and Bilateral Child Boards
Post by: EZ1 on May 15, 2009, 05:38:40 PM
I am getting these errors


      Type of error: Undefined 
8: Undefined index: hhyaltbolum
default/BoardIndex.template.php (eval?)
Line: 163 

      Type of error: Undefined 
8: Undefined index: hhyaltbolum
default/BoardIndex.template.php (eval?)
Line: 208 

      Type of error: Undefined 
8: Undefined offset: 333
default/BoardIndex.template.php (eval?)
Line: 175 
 
     Type of error: Undefined 
8: Undefined offset: 333
BoardIndex.template.php (eval?)
Line: 174 

  Check all 


I am ataching my BoardIndex.template.php can some one look at this for me ??

Powered by SMF 2.0 RC1


thank you
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on May 16, 2009, 06:49:33 AM
do u select it ?
Title: Re: Aligned and Bilateral Child Boards
Post by: rjscott on May 22, 2009, 02:06:23 PM
I'm using 1.1.9 and the Babylon theme. I get the following error messages when doing the installation check:
QuoteInstall Actions
Installations actions for "Aligned and Bilateral Child Boards":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/BoardIndex.template.php    Test failed
2.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test failed
3.    Execute Modification    ./Sources/ModSettings.php    Test successful
4.    Execute Modification    ./Themes/default/languages/ModSettings.english.php    Test successful
What might the cause be? What other info or files do you need to diagnose?

UPDATE: I have the following mods installed-
QuoteView and Remove Installed Packages
   Mod Name    Version    
1.    AvatarOnBoard    2.1    [ Uninstall ]
2.    Search Focus Dropdown    1.2    [ Uninstall ]
3.    Separate Sticky and Normal Topic    1.0    [ Uninstall ]
4.    Topic Indices    1.0    [ Uninstall ]
5.    Ad Managment    2.3    [ Uninstall ]
6.    Signature Area BBCode Buttons    1.5    [ Uninstall ]
7.    Remove Forum Header    2.0    [ Uninstall ]
8.    Aeva ~ Auto-Embed Video & Audio    6.9.99    [ Uninstall ]
9.    Twitter Field    1.0    [ Uninstall ]
10.    RSS Feed Icon    1.1    [ Uninstall ]
11.    Link Tree    1.1.0    [ Uninstall ]
12.    SMF 1.0.17 / 1.1.9 / 2.0 RC1 Update    1.0    [ Uninstall ]
Title: Re: Aligned and Bilateral Child Boards
Post by: candidosa2 on May 23, 2009, 06:38:09 PM
thank you when update dont forget plaese portuguese
<file name="$languagedir/ManageSettings.portuguese_pt.php" error="skip">
<operation>
<search position="replace"><![CDATA[?>]]></search>
<add><![CDATA[// child board by smfmod.com translate candidosa2 Suporte smfpt.net
$txt['hhyaltbolum'] = 'Seleccionar sec&ccedil;&atilde;o para Sub-Quadro';
$txt['hhyikili'] = 'bin&aacute;rio sub-quadro';
$txt['hhyuclu'] = 'grupo de três sub-quadro';

]]></add>
</operation>
</file>
<file name="$languagedir/ManageSettings.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[?>]]></search>
<add><![CDATA[// child board by smfmod.com translate candidosa2 Suporte smfpt.net
$txt['hhyaltbolum'] = 'Seleccionar sec&ccedil;&atilde;o para Sub-Quadro';
$txt['hhyikili'] = 'bin&aacute;rio sub-quadro';
$txt['hhyuclu'] = 'grupo de três sub-quadro';

]]></add>
</operation>
</file>
<file name="$languagedir/ManageSettings.portuguese_brazilian.php" error="skip">
<operation>
<search position="replace"><![CDATA[?>]]></search>
<add><![CDATA[// child board by smfmod.com translate candidosa2 Suporte smfpt.net
$txt['hhyaltbolum'] = 'Seleccionar sec&ccedil;&atilde;o para Sub-Quadro';
$txt['hhyikili'] = 'bin&aacute;rio sub-quadro';
$txt['hhyuclu'] = 'grupo de três sub-quadro';

]]></add>
</operation>
</file>
<file name="$languagedir/ManageSettings.portuguese_brazilian-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[?>]]></search>
<add><![CDATA[// child board by smfmod.com translate candidosa2 Suporte smfpt.net
$txt['hhyaltbolum'] = 'Seleccionar sec&ccedil;&atilde;o para Sub-Quadro';
$txt['hhyikili'] = 'bin&aacute;rio sub-quadro';
$txt['hhyuclu'] = 'grupo de três sub-quadro';

]]></add>
</operation>
</file>
Title: Re: Aligned and Bilateral Child Boards
Post by: rafaweborama on May 23, 2009, 07:16:48 PM
This Mod is great but it makes 84 queries on my forum! and i disable all the other mods and this mod its making these queries :(

Look: Página creada en 0.126 segundos con 83 consultas.

How can i fix it?
Title: Re: Aligned and Bilateral Child Boards
Post by: EDSucation on May 30, 2009, 03:08:56 PM
This works well on my board, but what is this alternate text:
Quote(: 0, : 0)
That I get when I hover over a child board, and how can I get rid of it?
Title: Re: Aligned and Bilateral Child Boards
Post by: MaXiForum.cz on June 14, 2009, 11:09:09 AM
Very nice and interesting mod!
gratulate :)

CZ translate:

// child board by smfmod.com
$txt['hhyaltbolum'] = 'Vyberte vzhled subfór';
$txt['hhyikili'] = 'dva sloupce';
$txt['hhyuclu'] = 'tři sloupce';
Title: Re: Aligned and Bilateral Child Boards
Post by: imno007 on June 16, 2009, 11:26:08 PM
Hi, I'm using SMF 2.0 RC1-1 and the 2.0 version of the Kani theme and the mod just doesn't work. It's installed and enabled in admin but the child boards are the same. So I'm assuming I need to do a template edit of some kind. Any suggestions?

TIA
Title: Re: Aligned and Bilateral Child Boards
Post by: GMCbris on June 19, 2009, 09:04:27 AM
Thanks - I just installed this and like it
Title: Re: Aligned and Bilateral Child Boards
Post by: TauTau on June 23, 2009, 09:25:18 AM
Quote from: Kimmie on April 20, 2009, 02:54:47 PM
Getting TONS of errors on this mod (even on the default theme and it installed with no problems)

8: Undefined index: can_approve_posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 205

8: Undefined index: posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200

8: Undefined index: board_topics
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200

8: Undefined index: old_posts
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 200


The above are just a few of the errors. There is 35 pages of errors just on the default theme after viewing the home page "once".

Any ideas?


EDIT: I figured out the problem. Make sure you tell folks that are using 1.1.8 (or lower), that they can ONLY use BINARY. If they try and use Triad, this will happen

Same problem here with 1.1.9 and Triad on a non-default theme
Title: Re: Aligned and Bilateral Child Boards
Post by: DilSe on June 24, 2009, 01:00:52 AM
hello sir

plz help ..

i make it just 2 child board but on index show 3 child board from where i can change limte plz help ..
Title: Re: Aligned and Bilateral Child Boards
Post by: DilSe on June 24, 2009, 04:26:00 PM
Quote from: Hanzalah on June 24, 2009, 01:00:52 AM
hello sir

plz help ..

i make it just 2 child board but on index show 3 child board from where i can change limte plz help ..

anybody help plz
Title: Re: Aligned and Bilateral Child Boards
Post by: DilSe on June 25, 2009, 04:30:31 PM
Quote from: Hanzalah on June 24, 2009, 04:26:00 PM
Quote from: Hanzalah on June 24, 2009, 01:00:52 AM
hello sir

plz help ..

i make it just 2 child board but on index show 3 child board from where i can change limte plz help ..

anybody help plz

:( plz help me
Title: Re: Aligned and Bilateral Child Boards
Post by: vassilisgr on June 28, 2009, 02:14:09 PM
This is a great mod!!! I have a problem that i cant find why. every time i hit home page i get 3 pages of errors like this

8: Undefined index: viewer_text
File: /home/basil67/public_html/Themes/default/BoardIndex.template.php (eval?)
Line: 163

I am sure that is from this mod cause when i unistall it i dont get any errors.
I use simple portal on 1.1.9 (i had the same problem on 1.1.8 but differents errors)and i have a lot of mods, but my theme is based on default theme with only some changes to colors.

Please Sir if you have any idea cause i like this mod so much
Title: Re: Aligned and Bilateral Child Boards
Post by: SISPro on June 30, 2009, 11:39:37 PM
I installed this mod on 2.0 RC1-1 and in my error log I am getting this message

8: Undefined index: hhyaltbolum
Apply Filter: Only show the errors from this file
File: /home2/ac919/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 163

8: Undefined index: hhyaltbolum
Apply Filter: Only show the errors from this file
File: /home2/ac919/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 208
Title: Re: Aligned and Bilateral Child Boards
Post by: patalete on July 03, 2009, 06:41:28 AM
Most errors this mod creates can be solved with the info in this thread.

http://www.simplemachines.org/community/index.php?topic=310650.0

It did the trick fine for me. In my case it was generating lots of errors daily and like 400 queries to load the forum index each time a user load it, after do the edits forum errors gone and index now load with around 30 queries.

Maybe the Mod Author can take a look at it and update the package if needed.


Also I would like to know how to disable the Icons from showing for the child boards cause they are so small that are hardly visible.  :P


thanks
Title: Re: Aligned and Bilateral Child Boards
Post by: zorro18 on July 07, 2009, 04:51:57 PM
Hello,

Thanks for the mod. It works perfectly on basic theme but doesnt show up with custom theme. I have tried it to manually parse but I really cant find the phrases which have to be replaced. I am attaching the custom theme boardindex.template.php

Can any one parse it for me if possible plz. I hope this is not too demanding. Thanks in advance.
Title: Re: Aligned and Bilateral Child Boards
Post by: BarfBag on July 09, 2009, 01:28:46 AM
http://www.simplemachines.org/community/index.php?topic=310650.0

Would those instructions work on 1.1.9?
Title: Re: Aligned and Bilateral Child Boards
Post by: BarfBag on July 09, 2009, 10:26:08 AM
8: Undefined index: hhyaltbolum
File: /home/content/r/b/r/rbrown1990/html/Themes/default/BoardIndex.template.php (eval?)
Line: 199
   
8: Undefined index: hhyaltbolum
File: /home/content/r/b/r/rbrown1990/html/Themes/default/BoardIndex.template.php (eval?)
Line: 154

After installing this mod, I'm getting the preceding errors.  How do I fix them?
Title: Re: Aligned and Bilateral Child Boards
Post by: improv on July 10, 2009, 06:15:28 AM
Great mod, thanks!
Works flawless.
Title: Re: Aligned and Bilateral Child Boards
Post by: zorro18 on July 10, 2009, 10:56:28 AM
Quote from: zorro18 on July 07, 2009, 04:51:57 PM
Hello,

Thanks for the mod. It works perfectly on basic theme but doesnt show up with custom theme. I have tried it to manually parse but I really cant find the phrases which have to be replaced. I am attaching the custom theme boardindex.template.php

Can any one parse it for me if possible plz. I hope this is not too demanding. Thanks in advance.

Sorry for the bump... Help please. Anybody??
Title: Re: Aligned and Bilateral Child Boards
Post by: DilSe on July 14, 2009, 04:21:49 PM
hello to all

i installed this mod .. but after installed child boards show 2 time plz anybody help about this problem..?
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on August 10, 2009, 09:48:20 PM
Getting these errors on 2.0 (872 of them as soon as I installed it to be exact..lol)

8: Undefined offset: 334
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 175

8: Undefined offset: 21
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 174

8: Undefined offset: 334
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 174

And I am getting these from my custom themes board index as well:


8: Undefined offset: 333
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199

8: Undefined offset: 21
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199

8: Undefined offset: 330
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199
Any ideas? Thanks
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 09, 2009, 06:13:24 PM
Quote from: Kimmie on August 10, 2009, 09:48:20 PM
Getting these errors on 2.0 (872 of them as soon as I installed it to be exact..lol)

8: Undefined offset: 334
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 175

8: Undefined offset: 21
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 174

8: Undefined offset: 334
File: /home//public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 174

And I am getting these from my custom themes board index as well:


8: Undefined offset: 333
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199

8: Undefined offset: 21
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199

8: Undefined offset: 330
File: /home//public_html/Themes/Deep_Red_2009_v1-3/BoardIndex.template.php (main sub template - eval?)
Line: 199
Any ideas? Thanks


Has this mod been abandoned?
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on September 10, 2009, 05:47:37 PM
Looks to me like you have 1.1.x code installed on 2.0 themes. Those errors are caused by 1.1.x  language strings. I haven't tested this mod on 2.0 but I will run it tonight and see what the results are.

Re abandonment: hyhy89 has been banned from submitting mods because he was consistently taking other people's code from the Tips and Tricks board without their permission and without giving them credit.
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 10, 2009, 11:55:23 PM
Quote from: Antechinus on September 10, 2009, 05:47:37 PM
Looks to me like you have 1.1.x code installed on 2.0 themes. Those errors are caused by 1.1.x  language strings. I haven't tested this mod on 2.0 but I will run it tonight and see what the results are.

Re abandonment: hyhy89 has been banned from submitting mods because he was consistently taking other people's code from the Tips and Tricks board without their permission and without giving them credit.


Thanks for the reply :)

I upgraded from 1.1.9 to 2.0 about a month ago and I had this mod on my 1.1.9 forum. Could that be the problem, and is there a way I can fix those? (thanks for testing it ) :)

re: abandonment: Understandable. Thanks for letting us know :)
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on September 11, 2009, 02:52:34 AM
Ok, I know what the problem is. He was incompetent. :D He wrote the installation xml for 2.0 using exactly the same code as for 1.1.x. The whole mod package needs rewriting to make it work properly.
Title: Re: Aligned and Bilateral Child Boards
Post by: hhy89 on September 12, 2009, 07:37:00 AM
@Antechinus
hyhy89 is not :) hhy89 is true :)

i fix it for smf 2.0.x ;)
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 12, 2009, 02:45:44 PM
Quote from: hhy89 on September 12, 2009, 07:37:00 AM
@Antechinus
hyhy89 is not :) hhy89 is true :)

i fix it for smf 2.0.x ;)


I downloaded the updated one, installed it, and its still not working right. To "look" at the child boards it is displaying correctly, however, I am still getting those errors on the default theme

8: Undefined offset: 334
File: /home/***/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 176

8: Undefined offset: 21
File: /home/***/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 175

8: Undefined offset: 330
File: /home/***/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 175


(846 errors every time I load the main forum page)
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 26, 2009, 11:32:24 PM
any updates on this yet?

Thanks
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on September 26, 2009, 11:38:12 PM
I'll grab the "fixed" one and take a look at it. Give me a bit of time though.
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 27, 2009, 10:29:35 AM
Quote from: Antechinus on September 26, 2009, 11:38:12 PM
I'll grab the "fixed" one and take a look at it. Give me a bit of time though.


thank you :)
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on September 28, 2009, 12:30:10 AM
Kimmie: I suggest you uninstall this mod as the whole thing is a mess and needs a complete re-write.

It wont even install on a clean 1.1.10 and it throws masses on errors on 2.0.

Even if the installation for 1.1.10 was fixed it would still throw errors on 1.1.10 because the install xml for 1.1.10 contains a pile of 2.0 code.
Title: Re: Aligned and Bilateral Child Boards
Post by: Kimmie on September 28, 2009, 01:56:05 AM
Quote from: Antechinus on September 28, 2009, 12:30:10 AM
Kimmie: I suggest you uninstall this mod as the whole thing is a mess and needs a complete re-write.

It wont even install on a clean 1.1.10 and it throws masses on errors on 2.0.

Even if the installation for 1.1.10 was fixed it would still throw errors on 1.1.10 because the install xml for 1.1.10 contains a pile of 2.0 code.

k thanks for looking at it for me, I really appreciate it. Hopefully the mod auth will get it redone soon because i had this mod when I was running 1.1.9 and I would really really love to have it on my 2.0RC1.2 site because it makes the site look so much cleaner and better organized. :)
Title: Re: Aligned and Bilateral Child Boards
Post by: Antechinus on September 28, 2009, 02:07:33 AM
Well in view of the problems with it I have suggested the SMF team take it over. The code (the parts that work, that is) is not original anyway and it will need more work for RC2, as well as the error fixing.