how can I get the 'child board' row in V2.0 to go ALL the way over as in v1.x

Started by TheDragon, October 11, 2009, 06:08:04 PM

Previous topic - Next topic

TheDragon

see pix (v 1.10 ) the child board goes ALL the way (this is what I prefer)


BUT . . . v 2.0 stops at the "post box"




tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Antechinus

Basically, those table cells will be set to <td rowspan="2"> which as you might suspect means they span two rows in height. ;)
If you change them to rowspan="1", or even just remove the rowspan code entirely so they default to 1, then it will look the way you want to to look.

You will also need to change the child boards <td> to <td colspan="3"> so it spans three columns. Just giving you some basic tips on html tables for future reference. ;)

TheDragon

Quote from: Antechinus on October 11, 2009, 07:19:01 PM
Basically, those table cells will be set to <td rowspan="2"> which as you might suspect means they span two rows in height. ;)
If you change them to rowspan="1", or even just remove the rowspan code entirely so they default to 1, then it will look the way you want to to look.

You will also need to change the child boards <td> to <td colspan="3"> so it spans three columns. Just giving you some basic tips on html tables for future reference. ;)

cool - I can do that  -  8)
but
make the changes in WHAT file  ??? ???

TheDragon

Quote from: tyty1234 on October 11, 2009, 07:11:23 PM
Can you please attach your BoardIndex.template.php file?

do you still want this?
ie after the post from Antechinus?
( no problem for me to upload if you still want it)

TheDragon

Quote from: Antechinus on October 11, 2009, 07:19:01 PM
Basically, those table cells will be set to <td rowspan="2"> which as you might suspect means they span two rows in height. ;)
If you change them to rowspan="1", or even just remove the rowspan code entirely so they default to 1, then it will look the way you want to to look.

You will also need to change the child boards <td> to <td colspan="3"> so it spans three columns. Just giving you some basic tips on html tables for future reference. ;)

there is NO td=colspan in the BoardIndex.template.php file
do I "add" it?


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheDragon

Quote from: tyty1234 on October 11, 2009, 07:37:32 PM
yes, you have to add it. ;)

I did in 2 places - are there more and/or did I use the correct syntax??
see below :
**********************
// Show some basic information about the number of posts, etc.
               echo '
            </td>
            <td colspan="3" ', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg stats

smalltext">
               ', $board['posts'], ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
               ', $board['is_redirect'] ? '' : $board['topics'] . ' ' . $txt['board_topics'], '
            </td>
            <td colspan="3" ', !empty($board['children']) ? ' rowspan="2"' : '', ' class="windowbg2 smalltext

lastpost">';

tyty1234

It's in the right syntax, but in the wrong place. It should be...

Code (Find) Select

<td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>


Code (Replace With) Select

<td class="windowbg3 smalltext largepadding" colspan="3"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>


Don't forget that rowspan Antechinus mentioned. :)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheDragon

looks like it is in the style.css file?
or still in the board.template ??
888888888888
found the string - almost works - let me check a few things
(like undo my earier mistakes)
brb

btw = the 'gray' bar now goes 1/2 across the post block - but it also overwrite some of the data there!

TheDragon

ok - the grey goes ALL the way over
BUT - still have 'over write issues '
see photo below
(hint - the 'months are 'child boards')



thanks for ideas - getting closer !

tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

TheDragon

Quote from: tyty1234 on October 11, 2009, 08:01:07 PM
Quote from: tyty1234 on October 11, 2009, 07:46:37 PM
Don't forget that rowspan Antechinus mentioned. :)
:)

ok - but as  the rowspan was in multiple places - I thought that colspan
was 'simpler' - perhaps it is a combination of then both

I CAN do HTML coding by hand - since mid 90's
but is the embedded php with all the "IF" that are little tough for me

TheDragon

OK - sort of out of ideas
changed all 3 rowspan = 2 to =1
made NO difference to site

file attached


tyty1234

My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

REDSEW

I guess this is not going to well...
Why dont you dig up some codes from the old version, print them out, take your time, get a pen, write, get back on the computer, type your ideas on your new file. I do that for my themes when I cant get help for them, works out fine.

Antechinus


TheDragon

PERFECT ! Thanks Antechinus !
As grateful as I am, (and I have received numerous hints from users here on many topics)
none have DONE it FOR me (as in posted an edited file)
so, ONLY IF IT IS NO TROUBLE for you
can you 'highlight' the changes you made?
my guess is you removed two of the rowspan calls?
(ie now have just one - before were 3?)
again = thanks
ps
this is all a result from having 12 child boards (one per month)
ergo - needed a WIDE row

Antechinus

Just compare the file with an unedited one and you'll see the differences. Easy way is to use this nifty little application: http://winmerge.org/ ;)

TheDragon

on my way ! ty
***********************
got the file compare program
found the 2 lines you edited
TY - clearway beyond my php skills
ie, could not have done that with out you
btw = I am not a MODS maker
- but hard to believe that others have not sought the same thing I did
(ie return of child board to span the whole table)
hint - make mod
(hey - was 'gonna add a smiley' where did they go????)
oh well - here is an old one  ;P



Advertisement: