vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How to change forumhome so that it'll show a "chain" of depth? (https://vborg.vbsupport.ru/showthread.php?t=245853)

DataHero 07-04-2010 07:26 AM

How to change forumhome so that it'll show a "chain" of depth?
 
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

1 Attachment(s)
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

1 Attachment(s)
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

1 Attachment(s)
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

1 Attachment(s)
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.

HTML Code:

<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 [DATE]1278785850[/DATE] at [TIME]1278785850[/TIME] ---------------

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

Code:

<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.


All times are GMT. The time now is 11:03 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01114 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete