Remove Sidebar from Groups Home

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • trackpads
    Senior Member
    • Aug 2003
    • 486

    [vB4] Remove Sidebar from Groups Home

    On a fixed width the sidebar for groups is really bad looking. I removed this code from socialgroups_overview

    Code:
        <div id="sidebar_container"<vb:if condition="$stylevar['textdirection'] == 'rtl'"> class="sidebarleft"</vb:if>>
            <ul id="sidebar">
                <li id="newgroups">
                    <div class="block smaller">
                        <div class="blocksubhead">
                            <a class="collapse" id="collapse_w_newgroups" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_newgroups"/></a>
                            <img src="{vb:stylevar imgdir_button}/star.png" alt="" />
                            <span class="blocktitle">{vb:rawphrase new_groups}</span>
                        </div>
                        <vb:if condition="$newgroupbits != ''">
                        <ul id="w_newgroups" class="blockbody floatcontainer widget_content">
                            {vb:raw newgroupbits}
                        </ul>
                        </vb:if>
                    </div>
                    <div class="underblock"></div>
                </li>
                <li id="categories">
                    <div class="block smaller">
                        <div class="blocksubhead">
                            <a class="collapse" id="collapse_w_categories" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_categories"/></a>
                            <a class="blocksubheadinfo" href="{vb:link grouphome, '', 'do=grouplist'}">{vb:rawphrase view_all}</a>
                            <img src="{vb:stylevar imgdir_cms}/categories.png" alt="" />
                            <span class="blocktitle">{vb:rawphrase categories}</span>
                        </div>
                        <vb:if condition="$categorybits != ''">
                        <ul id="w_categories" class="blockbody floatcontainer widget_content">
                            {vb:raw categorybits}
                        </ul>
                        </vb:if>
                    </div>
                    <div class="underblock"></div>
                </li>
            </ul>
        </div>
    but ended up with this: I would prefer not to zap the search also.

    Click image for larger version

Name:	SP32-20120706-034545.jpg
Views:	1
Size:	94.4 KB
ID:	3723995

    Since I cant figure this out by simply cutting I have therefore declared this to be Magic and as such need help

    Thanks again,

    -Jason
    sigpic
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    You've shown us what it looks like, but what do you want it to look like? This is a CSS issue and so we really need to have a link to see the problem (and, as I stated), we need to know what you want it to look like also).

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • trackpads
      Senior Member
      • Aug 2003
      • 486

      #3
      Lynne, my apologies. I just want the two columns and the search in the same place. Since the sidebar doesn't work well with the fixed length on this page I would rather just remove it.

      Sorry about the confusion,

      -Jason
      sigpic

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        I still need a link to see your groups page (and a test username/password, if necessary). I also still don't understand what you want - search moved over to be on top of the second column? An image would really help here.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • trackpads
          Senior Member
          • Aug 2003
          • 486

          #5
          Sorry for the delay, PM sent.

          Thanks again,

          -Jason
          sigpic

          Comment

          • TheLastSuperman
            Senior Member
            • Sep 2008
            • 1799

            #6
            Try adding this new plugin:

            Product: vBulletin
            Hook Location: parse_templates
            Title: Hide sidebar on Groups Page
            Execution Order: 5
            Code:
            PHP Code:
            if (THIS_SCRIPT == 'group') {
            $hidesidebar '<style type="text/css">
            #content_container, #content {
            margin-right:0px !important;
            }
            #sidebar_container {
            display:none !important;
            }
            </style>'
            ;

            $template_hook[headinclude_bottom_css] .= $hidesidebar;

            Edit: Ermmm Hmm hmmmm... that will remove the sidebar from all pages and still leaves some sub group pages not so aesthetically pleasing so I suppose the best thing to do would be to comment out the sidebar code in each respective group template .
            Last edited by TheLastSuperman; Sun 5 Aug '12, 8:39pm.


            Former vBulletin Support Staff
            Hacked recently? See my blog post "Recovering a Hacked vBulletin Site".
            Thinking outside the box? Need modification support? Visit www.vBulletin.org and have at it!

            Comment

            Related Topics

            Collapse

            Working...