remove a forum expand-collapse tab, and erase title-lunk

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpreadingLight
    Member
    • Jan 2008
    • 63
    • 3.6.x

    remove a forum expand-collapse tab, and erase title-lunk

    How can this forum be collapsed always, so that arrow tab is always invisible. This forum is simply a title bar.

    And I'd also like to delete the hyperlink capability of this forum title.

    Thanks for any help
    Last edited by SpreadingLight; Thu 21 Feb '08, 7:09am.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    For example:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Forum Home Templates -> forumhome_forumbit_level1_nopost

    Remove the red code to remove the collapse arrow from categories. And remove the blue code to remove the hyperlink from category titles:

    Code:
    <tbody>
    	<tr>
    		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
    			<if condition="$childforumbits">
    			[color=red]<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>[/color]
    			</if>
    			[color=blue]<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">[/color]$forum[title][color=blue]</a>[/color]
    			<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>
    <if condition="$childforumbits">
    <tbody [color=red]id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"[/color]>
    $childforumbits
    </tbody>
    </if>

    Comment

    • SpreadingLight
      Member
      • Jan 2008
      • 63
      • 3.6.x

      #3
      Thanks Jake,

      Is this able to be done on a per forum basis?

      Comment

      • Jake Bunce
        Senior Member
        • Dec 2000
        • 46598
        • 3.6.x

        #4
        You can surround the various colored pieces with this conditional to hide them for one forum only:

        Code:
        <if condition="$forum[forumid] != X"></if>
        Where X is the forumid for which you want to remove those things.

        Comment

        • SpreadingLight
          Member
          • Jan 2008
          • 63
          • 3.6.x

          #5
          Removing the blue code also removed the forum titles. I was hoping to only remove the hyper-threading capability.

          Comment

          • SpreadingLight
            Member
            • Jan 2008
            • 63
            • 3.6.x

            #6
            Originally posted by Jake Bunce
            You can surround the various colored pieces with this conditional to hide them for one forum only:

            Code:
            <if condition="$forum[forumid] != X"></if>
            Where X is the forumid for which you want to remove those things.
            Excellent. What is the specific placement the codes needs to be in to 'surround'?

            Comment

            • Jake Bunce
              Senior Member
              • Dec 2000
              • 46598
              • 3.6.x

              #7
              Originally posted by SpreadingLight
              Removing the blue code also removed the forum titles. I was hoping to only remove the hyper-threading capability.
              The blue code does not span the entire line. Look closely. The forum title variable is not colored blue. Do not remove the title, only the link.

              Comment

              • Jake Bunce
                Senior Member
                • Dec 2000
                • 46598
                • 3.6.x

                #8
                Originally posted by SpreadingLight
                Excellent. What is the specific placement the codes needs to be in to 'surround'?
                For example, I have placed the green conditional around the first piece of code, where X is the forumid of the forum for which you want to remove the collapse arrow:

                Code:
                <tbody>
                	<tr>
                		<td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
                			<if condition="$childforumbits">
                			[color=green]<if condition="$forum[forumid] != X">[/color]
                			[color=red]<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>[/color]
                			[color=green]</if>[/color]
                			</if>
                			[color=blue]<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">[/color]$forum[title][color=blue]</a>[/color]
                			<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>
                <if condition="$childforumbits">
                <tbody [color=red]id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}"[/color]>
                $childforumbits
                </tbody>
                </if>
                Add the same condition around the other colored pieces.

                Comment

                • SpreadingLight
                  Member
                  • Jan 2008
                  • 63
                  • 3.6.x

                  #9
                  I applied that code and everything is working well and looks much better.

                  Thanks for the help, I really appreciate it.

                  Comment

                  • southeastsxs
                    Member
                    • Jul 2010
                    • 43
                    • 4.0.x

                    #10
                    Any news on how to do this in v4.0.4?
                    vBulletin - v4.0.4u1 (CMS), GoDaddy Hosting, Linux OS, MY SQL Database

                    Addons:- vBH Add New Tabs 1.2, Forum Category Icons Advanced 1.2.4, Mini Photo Edit 1.0.1, VBadvanced CMPS 4.0.1, VSa Advanced New Posts 3.0.2, VSa Advanced Registration 2.0.1

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...