Images or css around catigories

Started by AllanD, April 20, 2012, 03:51:15 PM

Previous topic - Next topic

AllanD

was wondering if anyone knew or could help with adding images or css tables around each category?
Check out this great sites.
KnD Hosting


AllanD

something like the image i add. Where the dark grey goes around each category, but inside the forum wrapper.
I hope that made sense  ;D
Check out this great sites.
KnD Hosting

kat

Ah, right.

No mod that I know of. :(

I bet someone could help you figure it out, though.

It's just a case of being patient, ay? ;)

AllanD

Patience I have :D
Thank you though very much.
Check out this great sites.
KnD Hosting


Antechinus

That actually requires rewriting the markup for BoardIndex.template.php. The entire board index is one big table. To get the effect you're after, you would have to break it down into a table for each category (unless you want to go nuts and re-write the markup to be table-less).

Find:

echo '
<div id="boardindex_table">
<table class="table_list">';

/* 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)
{


Replace:

/* 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)
{
echo '
<div class="boardindex_table">
<table class="table_list">';


Find:

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


Replace:

</tbody>
</table>
</div>';
}


That will break it into separate tables. After that it's just a matter of using borders, etc to get what you want.

AllanD

Thank you for responding, but since I'm not that good at coding where would I enter the border and background info at.
Check out this great sites.
KnD Hosting

Antechinus

<div class="boardindex_table">

That wraps each table, so you can use that class to set borders, etc in your css. Example:

.boardindex_table {
    padding: 25px;
    background: #555;
    border: 2px solid #aaa;
    border-radius: 5px;
}

AllanD

Check out this great sites.
KnD Hosting

AllanD

Since this the  BoardIndex.template.php being modified will this take effect on all themes?
Check out this great sites.
KnD Hosting


AllanD

ok thank you just needed to know that so I can have a backup original on hand.
Check out this great sites.
KnD Hosting


AllanD

Just wanted to say work out great thank you both very much for taking the time to help out.
Check out this great sites.
KnD Hosting

MoinFaraz

Hey CrazieGrafix,

Just thought i report it as i am not sure if its a redirect you are working on or an issue with your forum.

Anyways, all of your board links are not accessible at the moment. click on any board links and you will see a 404 error.

AllanD

Thanks I forgot to update my info on here. That forum has been sold.
Check out this great sites.
KnD Hosting

Advertisement: