Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: libertygirl - marraskuu 22, 2011, 10:13:58 AP

Otsikko: Customising the index page
Kirjoitti: libertygirl - marraskuu 22, 2011, 10:13:58 AP
What I'm trying to do is alter the look of the index.php page so that it just shows a list of categories with no post counts, redirect counts etc. Just some columns listing categories and then sub categories (the sub categories would link to an smf built category).

If not possible then I would like to alter the link that would normally take you to index.php to take you to index.html instead. This would need to happen in the breadcrumbs too.

I'm using the latest version of smf 2.0.1

This is because I have lots of child categories and I don't want the index page to show up 0 posts as its not encouraging to newcomers.

I do hope that makes sense. It's very hard to describe what I'm imagining!

Thank you

Donna
-x-
Otsikko: Re: Customising the index page
Kirjoitti: Sir Osis of Liver - marraskuu 22, 2011, 12:43:37 IP

You can remove the post/topics counts in BoardIndex.template.php -



// Show some basic information about the number of posts, etc.
echo '
</td>
<td class="stats windowbg">
<!--p>', comma_format($board['posts']), ' ', $board['is_redirect'] ? $txt['redirects'] : $txt['posts'], ' <br />
', $board['is_redirect'] ? '' : comma_format($board['topics']) . ' ' . $txt['board_topics'], '
</p-->
</td>



Otsikko: Re: Customising the index page
Kirjoitti: libertygirl - marraskuu 22, 2011, 12:55:44 IP
Thank you for that.  :)

Which bit would move the "x redirects" bit of text?

Is there anyway to get all the categories to then show in columns so that there isn't a big empty space?

I wish I could photograph the image in my head as I'mhopeless at explaining these things!  :laugh:

Donna
-x-
Otsikko: Re: Customising the index page
Kirjoitti: Sir Osis of Liver - marraskuu 22, 2011, 01:06:48 IP

Post a screenshot that shows what you want to do.

Otsikko: Re: Customising the index page
Kirjoitti: libertygirl - marraskuu 22, 2011, 01:27:43 IP
Well that's the problem, I don't have one because I can't do it!  :laugh: I will mock one up.

I have however solved one problem, the removing redirect text: http://www.simplemachines.org/community/index.php?topic=344781.0

I will see how that works out because it may solve all problems without making too big a change to the site.  :)

Sorry to have been a pain and thanks for your help.

Donna
-x-
Otsikko: Re: Customising the index page
Kirjoitti: Sir Osis of Liver - marraskuu 22, 2011, 01:31:39 IP
Lainaus käyttäjältä: libertygirl - marraskuu 22, 2011, 01:27:43 IP
Sorry to have been a pain and thanks for your help.

This is my idea of fun.

Otsikko: Re: Customising the index page
Kirjoitti: libertygirl - marraskuu 22, 2011, 01:41:10 IP
...and learning all this coding is my kind of fun!  :laugh: