Page 1 of 1

Sub-Forums???

PostPosted: Sun Jun 25, 2006 12:43 am
Author: tekguru
Does anyone know which file one needs to edit, and maybe what to edit if one wishes to change teh way sub-forums display on the index?

I want to add in a </br> or similar so I can get each sub-forum on a seperate line instead of just being after one another.

Spent a good hour lastnight trying to work it out and failed miserably!

Re: Sub-Forums???

PostPosted: Sun Jun 25, 2006 10:17 pm
Author: Teelk
Actually did this on my website, http://www.witchhunters.ca/coh/index.php

Check out the news forums...

I'll take a look at what edits I made, it's actually in one of the php files which makes it difficult to find...

Open includes/functions_categories_hierarchy.php
FIND[code]                     if ($link != '') $links .= (($links != '') ? ', ' ]REPLACE WITH[code]                     if ($link != '') $links .= (($links != '') ? '<br> ' ]
Just replaced the comma with the <br> tag. Did mine a little differently to add spaces and try to line it up on the right... doesn't quite look right though...

Re: Sub-Forums???

PostPosted: Sun Jun 25, 2006 11:05 pm
Author: tekguru
Teelk, you are a hero! It looks a lot better on site now I've added in your change.

Any ideas how to page break immediately after the 'Subforums' title, as I think that would fix the neatness issues?

Re: Sub-Forums???

PostPosted: Mon Jun 26, 2006 12:33 am
Author: Teelk
Sure...

Open templates/yourtheme/index_box.tpl
FIND
Code: Select all
        <span>{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}{catrow.forumrow.L_LINKS}{catrow.forumrow.LINKS}</span>

REPLACE WITH
Code: Select all
        <span>{catrow.forumrow.L_MODERATOR}{catrow.forumrow.MODERATORS}{catrow.forumrow.L_LINKS}<br>{catrow.forumrow.LINKS}</span>


Just added a <br> between the subforum language key and the subforum links.

PostPosted: Mon Jun 26, 2006 11:32 am
Author: tekguru
Cheers again Teelk - just what was needed, now looks much better!

PostPosted: Mon Jun 26, 2006 5:37 pm
Author: tmotley
I like that look. I might just try it.

tekguru, your site loads quickly for me but yours is the second site I've noticed recently with odd page generation line...

Page generation time: 1151368550.57s (PHP: 100% | SQL: 0%)

PostPosted: Mon Jun 26, 2006 5:45 pm
Author: tmotley
I use the BBLite theme also but replaced all of the buttons. I notice that the 'Download' button for downloading of a post has 'Dowload'...

PostPosted: Mon Jun 26, 2006 11:11 pm
Author: tekguru
Yeah that weird page generatino time started occuring after the last upgrade. No ideas why as it only seems to affect some pages. Weird.

I'd missed that on the button - will check it out and get my designer to correct it. Cheers for he heads-up.

What's your site BTW, be interested to see what you have done with the theme.

PostPosted: Tue Jun 27, 2006 7:24 pm
Author: tmotley
Not much since it's a site I use during the regular school year and I just put in the BBLite theme recently.

Pretty much the only modifications I've made are buttons...

http://motleyville.com

PostPosted: Wed Jun 28, 2006 12:23 pm
Author: tekguru
Looks good though, I must admit I doi love the theme <img>

One Q, which is the block you are using for the Posts Leaders - looks pretty good!

PostPosted: Wed Jun 28, 2006 4:05 pm
Author: tmotley
Looking in block management, it shows the block file as 'top posters' but I don't remember if that's a different one I've added or the standard one.

'Bones Leaders' is pretty much the same block only ranking on points instead of posts. For that one, I modified the 'top cash' block to look like the 'top posters' block.

PostPosted: Thu Jun 29, 2006 9:10 am
Author: tekguru
Cheers for that will certainly revist those!