vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Forumhome category collapse (https://vborg.vbsupport.ru/showthread.php?t=206376)

TimberFloorAu 02-23-2009 08:53 PM

Forumhome category collapse
 
1 Attachment(s)
Have asked this on 2 occasions, and not got an answer, have searched but cannot find an answer, so can someone please tell me how to enable this.

Collapse on forumhome. > on rhs of each forum category. Must be dead simple to enable, just cant seem to see where

Dismounted 02-24-2009 04:20 AM

If you have separated the categories using a modification - it is entirely dependant on that modification to add the code necessary for this. However, if you made the manual template edits, the code needed is fairly straightforward. You can find it on every collapse button. It is pretty much exactly the same (you just need to change the ID).

TimberFloorAu 02-24-2009 04:56 AM

The image included is of VB.org. Not my forum.

Our forum, uses a custom template, and within the forum code,

Its kind of bewildering actually, as it seems to be a generic function of vb, but I have noticed, even our default template doesnt display the collapse button in the last column on rhs of each forum.



If that makes sense.

code lifted from ( forumhome )

Code:

<!-- main -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
$forumbits
<tbody>
        <tr>
                <td class="tfoot" align="center" colspan="<if condition="$vboptions['showmoderatorcolumn']">6<else />5</if>"><div class="smallfont"><strong>
                        <a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a>
                        <if condition="$vboptions['forumleaders']">&nbsp; &nbsp;
                        <a href="showgroups.php$session[sessionurl_q]">$vbphrase[view_forum_leaders]</a></if>
                </strong></div></td>
        </tr>
</tbody>
</table>
$forumhome_markread_script
<!-- /main -->

I am presuming, we need a tcat collapse within this code, or perhaps my forumbits is screwed, and i cant seem to find where that would be stored..

Perhaps I am barking up the wrong tree.

Ste

--------------- Added [DATE]1235458776[/DATE] at [TIME]1235458776[/TIME] ---------------

**** TO ADD ****

What I am trying to achieve is similar to this site, http://forums.allurehost.com/

Look at the collapse expand button to the right of each forum category.

Dismounted 02-24-2009 05:08 AM

Please post your forumhome_forumbit_level1_nopost template.

TimberFloorAu 02-24-2009 05:12 AM

Okies. Thankyou Sir

Code:

<if condition="$forum[forumid] != 1">
</table>
<br />
 
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
</if>
<tbody>
        <tr>
                <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                        <if condition="$childforumbits">
                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
                        </if>
                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
                </td>
        </tr>
</tbody>
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
<if condition="$vboptions['showmoderatorcolumn']">
    <tr align="center">
      <td width="5%" class="thead">&nbsp;</td>
      <td width="40%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
      <td width="25%" class="thead">$vbphrase[last_post]</td>
      <td width="10%" class="thead">$vbphrase[threads]</td>
      <td width="10%" class="thead">$vbphrase[posts]</td>
      <td width="10%" class="thead">$vbphrase[moderator]</td>
    </tr>
$childforumbits
</tbody>
    <else />
      <tr align="center">
      <td width="5%" class="thead">&nbsp;</td>
      <td width="50%" class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
      <td width="25%" class="thead">$vbphrase[last_post]</td>
      <td width="10%" class="thead">$vbphrase[threads]</td>
      <td width="10%" class="thead">$vbphrase[posts]</td>
    </tr>
$childforumbits
</tbody>
</if>


Dismounted 02-24-2009 05:14 AM

That already has the collapse button code in it.

TimberFloorAu 02-24-2009 05:15 AM

Yep I know lol. Thats why I cant figure it out lol

--------------- Added [DATE]1235459786[/DATE] at [TIME]1235459786[/TIME] ---------------

My only thought is that somehow, because moderator column isnt activated, then it isnt parsing the next field... im really not sure

--------------- Added [DATE]1235461657[/DATE] at [TIME]1235461657[/TIME] ---------------

Could it be a closing table tag ?

Dismounted 02-24-2009 09:43 AM

Run your site through the W3C validator, that will point out if there are any mismatched tags.

TimberFloorAu 02-24-2009 06:36 PM

Okey Dokey

mmoore5553 02-25-2009 01:43 AM

i am sorry but i must be dumb founded . i was looking to see what forum you was talking about needing the collapse ..but you do have the code there as mentioned ..so i was trying to find the forum where it was to take a look to see what was missing ..usually if it is there and not working i usually find an extra TD tag ... but without seeing forum i cant say for sure

TimberFloorAu 02-25-2009 02:15 AM

Quote:

Originally Posted by mmoore5553 (Post 1753821)
i am sorry but i must be dumb founded . i was looking to see what forum you was talking about needing the collapse ..but you do have the code there as mentioned ..so i was trying to find the forum where it was to take a look to see what was missing ..usually if it is there and not working i usually find an extra TD tag ... but without seeing forum i cant say for sure

yobromofo.com/forum

Lynne 02-25-2009 02:45 AM

It isn't showing up because you aren't even using the forumhome_forumbit_level1_nopost template. You don't have the whole column heading that says Forum, Last Post, Threads, and Posts. That whole row is gone - and thus the little collapse button isn't there.

TimberFloorAu 02-25-2009 03:09 AM

Well.. who stole that ! then lol

How the blinking heck did I manage to cock that up, and any suggestions on a fix please?

Lynne 02-25-2009 03:11 AM

Was it ever there? It looks like a custom style and maybe they deliberately didn't add that row.

TimberFloorAu 02-25-2009 03:12 AM

Quote:

Originally Posted by Lynne (Post 1753879)
Was it ever there? It looks like a custom style and maybe they deliberately didn't add that row.

Yeah it was originally there, it is a cutoms style, and then re-customized by me lol.

Which is obviously where I have cocked it up :(

Dismounted 02-25-2009 05:43 AM

A modification might be screwing with it. Try disabling them.

TimberFloorAu 02-25-2009 06:34 AM

Quote:

Originally Posted by Dismounted (Post 1753954)
A modification might be screwing with it. Try disabling them.

Will do mate, I reckon its the forum and subforum mod I have !

Will give it a whirl :)

mmoore5553 02-25-2009 10:57 AM

okay yeah you are missing alot of stuff on your forum home ...i do alot of custom work on templates. I am more than willing to help but what can save you alot of time if you just upload your style again but there is a section for title. Changet it to test and athen just do a compare of both templates ..there are tons of programs used ....axis merge

then it should give your code back.

TimberFloorAu 03-02-2009 02:20 AM

Cheers mate will try axis merge ( never heard of it before )

mmoore5553 03-02-2009 10:21 AM

<a href="https://www.araxis.com/merge/?gclid=CPSBmqmdhJkCFQq3sgodKxt0lg" target="_blank">http://www.araxis.com/merge/?gclid=C...FQq3sgodKxt0lg</a>

sorry

araxis merge ..sorry was on other computer and tried to remember the program

Dismounted 03-03-2009 04:51 AM

Any comparison and merge application will do... There are free (and open-source) alternatives.

mmoore5553 03-03-2009 04:53 AM

dismount may i ask the free ones that you prefer ? i have dont know of any that are good to use and can merge code ?

Dismounted 03-03-2009 04:56 AM

I was originally going to say TortoiseMarge (part of TortoiseSVN - great SVN utility), but I found this neat page: http://en.wikipedia.org/wiki/Compari...mparison_tools


All times are GMT. The time now is 09:27 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.02399 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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