PDA

View Full Version : How to change forumhome so that it'll show a "chain" of depth?


DataHero
07-04-2010, 07:26 AM
Well, couldn't think of a better description. But basically, I've been messing around with the forum home listing option in vB AdminCP and couldn't figure out how to perform this "chain" of depth, so to say.

It'd be great if anyone knew how I could get something similar to a forum listing like this: http://lucasforums.com/forumdisplay.php?f=71

Cheers! :)

KevinL
07-04-2010, 08:08 AM
Looks like the options would be...2...2...2 when setting the depth of the forum.

DataHero
07-04-2010, 12:19 PM
I've tried your suggestion, but that didn't seem to work; at least, not for forum home. However, when I click the category, it does appear in the way I wanted; just not for forumhome (see attachment, unfortunately.

KevinL
07-04-2010, 03:15 PM
Sorry it would be 2-2-3

Then you would have to line them up the way you want.

DataHero
07-04-2010, 03:38 PM
Unfortunately that didn't seem to work either. :(

It just comes up with a list of links to each sub-forum as it would do normally.

KevinL
07-04-2010, 03:51 PM
hah LOL now I see it..

Well the first problem is the link is from the forumdisplay...

So it is setup...

- Star Wars ---Cat
--Prequel Trilogy --subforum
--Original Trilogy --subforum

So it seems like 2-2-1 would work but you would have to edit the actual forumhome to get it anywhere near that..it is not a simple setting.

DataHero
07-04-2010, 10:54 PM
Shame, I had expected this to be possible without much hassle. I guess they didn't implement options for vB to be any 'deeper' than two?

KevinL
07-04-2010, 11:03 PM
No once you go over 2..say you put in 3..they disappear lol It is really strange

DataHero
07-10-2010, 04:07 PM
Well after some extensive searching, etc. I've managed to find how to increase the depth display: I had to add a forumhome_forumbit_level3_nopost/post and had to copypaste the contents of the level2_nopost/post accordingly.

As said, it shows the way I wanted now, except one thing. I'd like to indent the subforums to the right a bit more, so it's better to see which are subforums, and which are not (see attachment). Any idea how I'd go on about that?

BirdOPrey5
07-10-2010, 04:29 PM
To add spaces in the template add a few " " - that is the code for a blank space-2 or 3 should provide a nice indent.

DataHero
07-10-2010, 04:49 PM
Hm, that didn't seem to work; it remained precisely as it was before. Added it to the top of the template (three times just as a test), to both level3_nopost and level3_post.

BirdOPrey5
07-10-2010, 04:54 PM
In the template find where the link to the forum is being displayed and put it right before that... I can't find the template on my install or I could give you an exact location- if you can't find it maybe copy the template text to a post here?

DataHero
07-10-2010, 05:04 PM
Okay, so far the title is indented, but the icons remain at the same location. I've tried adding the ' ' in front of the images, but that didn't seem to work. Instead, the height of the forum column increased.


<if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
&nbsp;
&nbsp;
&nbsp;
&nbsp;<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>

</td>
<td class="alt2">$forum[threadcount]</td>
<td class="alt1">$forum[replycount]</td>
<td class="alt2">$forum[lastpostinfo]</td>
</tr>

<if condition="!$show['collapsable_forums']">
</tbody>
</if>

<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>

BirdOPrey5
07-10-2010, 05:11 PM
Yeah unfortunately indenting the icons would be a major PITA because they are in tables/rows/columns that can't be arbitrarily placed. I'm not saying it's impossible but changing the table structure isn't a simple task and is more than I could walk someone through here. I would suggest possibly using an alternate icon for subforums to give them a different look.

--------------- Added 1278785850 at 1278785850 ---------------

Actually... try this... Keep a copy of your original code if this doesn't work...


<if condition="!$show['collapsable_forums']">
<tbody>
</if>
<tr align="center">
<td class="alt1Active" colspan="2" align="$stylevar[left]" id="f$forum[forumid]">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="20">&nbsp;</td>
<td>
&nbsp;<img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
<td>
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>

</td>
<td class="alt2">$forum[threadcount]</td>
<td class="alt1">$forum[replycount]</td>
<td class="alt2">$forum[lastpostinfo]</td>
</tr>

<if condition="!$show['collapsable_forums']">
</tbody>
</if>

<if condition="$childforumbits">
<if condition="!$show['collapsable_forums']">
<tbody>
</if>
$childforumbits
<if condition="!$show['collapsable_forums']">
</tbody>
</if>
</if>

DataHero
07-10-2010, 05:32 PM
That worked like a charm! Thanks! :)

BirdOPrey5
07-10-2010, 05:46 PM
perfect... you can change the width="20" to whatever size in pixels you want. I didn't expect each 'row' to be its own table, made editing it much easier then I thought.