vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   How can I change footer width? (https://vborg.vbsupport.ru/showthread.php?t=268596)

Divvy 08-15-2011 10:26 PM

How can I change footer width?
 
Hello guys,

I have my forum with a fixed width (980px)
And recently I have enabled the sidebar at my forum, but didnt like the result...
The problem is that my footer, what's going on box, etc, is compressed to the width of the forum tables themselves.

Actually this is how my forumhome looks like:

------------navbar-------------
----forums ----- sidebar -----
----footer ----------------------



And I need to looks like that:

------------navbar-------------
----forums ----- sidebar -----
------------footer --------------


Can please someone help me? :)
Im using default theme...

Divvy 08-16-2011 10:07 AM

Please, anyone?

BirdOPrey5 08-17-2011 10:36 AM

A screenshot or a link to your forum would better help explain the situation.

The footer width is set to be the same as the header and everything else, it's probably not a simple change to make the edit you are requesting. (Nor a good idea)

If you really wanted to change the footer width you would edit the footer template.

Find the line:
Code:

<div id="footer" class="floatcontainer footer">
And add a custom width, it should override the value specified in the class:

Code:

<div id="footer" class="floatcontainer footer" style="width:1000px;">
Where 1000 is the width in pixels- change it to whatever you want.

But again I caution you this is probably going to make things worse, not better.

(You can of course always undo it.)

Divvy 08-17-2011 12:54 PM

Thank you for your reply BirdOPrey5 :)

I did your trick but didn't worked...
Btw, I changed my board width by changing doc_maxWidth (980px) and doc_margin (left and right auto) Stylevars.

Heres an example of what I need:

Current:
http://screensnapr.com/e/5XL2QW.jpg

Needed:
http://screensnapr.com/e/n2KEux.jpg

I sent you my board link via PM.

BirdOPrey5 08-17-2011 04:08 PM

I see, that's called the "What's Going On Box" not the footer.

I tested this on 4.0.8 and it should work the same on most 4.x versions.

Edit your FORUMHOME template.

Near the bottom find all the sidebar code, for me it looks like this, your version might be slightly different:

Code:

        <vb:if condition="$show['sidebar']">
                </div>
        </div>

        <div id="sidebar_container"<vb:if condition="$show['sidebarposition'] == 'left'"> class="sidebarleft"</vb:if>>
                <a id="sidebar_button_link" href="#">
                        <vb:if condition="$show['sidebarposition'] == 'left'">
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed-left.png" alt="" />
                        <vb:else />
                        <img id="sidebar_button" src="{vb:stylevar imgdir_misc}/tab-collapsed.png" alt="" />
                        </vb:if>
                </a>
                <ul id="sidebar">
                        {vb:raw sidebar}
                </ul>
        </div>
        </vb:if>

Now cut all that code and paste it directly above the line:
Code:

<!-- what's going on box -->
It should work as you want.

Divvy 08-17-2011 09:06 PM

Perfect, thank you :D


All times are GMT. The time now is 01:21 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.02367 seconds
  • Memory Usage 1,723KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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