vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   End-User Options - vB 4 (https://vborg.vbsupport.ru/showthread.php?t=231671)

amjadz4 12-29-2009 10:00 PM

vB 4
 
1 Attachment(s)
Okay so some (most - so far) of the vb 4 themes come only with one width i.e 100% which fills up the screen. Like me, many want to match their website and want the width of the main table to be fixed. So how can we adjust the width of the CMS, Blog and Forum all together?

vBulletin 3 had an easy way to do it, under Main CSS of the template. But in vB 4 its a bit different. Follow these steps to adjust the width of your vbulletin.

1. Log into AdminCP
2. Navigate to Styles & Templates > Your style > StyleVars
3. In the search field type in doc_width (under Common).
4. Now set the Units and Size as per your requirement, and Save. (default: auto)

That's it!

Now if at all for some reason your theme is not center aligned after adjusting the width do this:
  • Type doc_margin in the search field.
  • Set Left & Right to auto
Now you have your CMS, Blog and Forum center aligned to the width of your choice! :)

If you did this to your forum, please click MARK AS INSTALLED.

Thank you!

Dr.osamA 12-30-2009 12:39 PM

installed

thanxx
________
Sc replay upload

bilgicc 12-30-2009 02:05 PM

Thank you. installed.

haothiencz 12-31-2009 09:52 AM

You just can make a style fixed or fluid that way.

It's good with default style but for some style with images it require also adding

value repeat-x for the bg and forumhead etc...

amjadz4 12-31-2009 10:18 AM

Quote:

Originally Posted by haothiencz (Post 1943257)
You just can make a style fixed or fluid that way.

It's good with default style but for some style with images it require also adding

value repeat-x for the bg and forumhead etc...

well true, but once you set your theme to be of a fixed size and in case any image go out of the table for example a large forum header image you can either use dynamic resizing using timthumb.php or just resize the image. But this is very unlikely and happens rarely. Theme designers should make their theme compatible for every scenario.

b6gm6n 01-01-2010 12:03 AM

didn't work for me, actually after finding your thread after searching around for a simple way to make a fixed width skin for my site using just the new vB4 forum, after trying it on my local-machine I'm not gonna bother using it on my main site, it's horrible, i have been persistently put off by bugs and things not working... still cannot see my profile page, no errors, nothing i did wrong, you wanna start designing and get stuck in but this is just horrid, all those posts slamming vB for it's styles were right, i was really looking forward to producing something for my site but it looks like i'll have to wait a year or two for this to catch up... and while I'm here the default style is awful... well it's ok, but god no... sack it and start over the experiment didn't work

-b6

DataHero 01-02-2010 05:14 AM

Thanks for the help. Marked as installed.

stable2 01-15-2010 01:44 PM

Thank you for this - worked perfectly and prevented me from tearing my hair out!
*Installed*

amjadz4 01-15-2010 01:55 PM

Quote:

Originally Posted by stable2 (Post 1956484)
Thank you for this - worked perfectly and prevented me from tearing my hair out!
*Installed*

LoL, :) you are welcome!

Gnomie 01-21-2010 08:16 AM

Hi I'm new here and new to VB :) I like the new version 4 !

Installed :)

Was trying to find that. However it has given another problem.

The text in each thread now aligns left and not 100% width of the text container.

Which style would i edit to get that 100% width in the text box?

If anyone could point me in the right direction that would be grand!

amjadz4 01-21-2010 08:30 AM

Quote:

Originally Posted by Gnomie (Post 1962122)
Hi I'm new here and new to VB :) I like the new version 4 !

Installed :)

Was trying to find that. However it has given another problem.

The text in each thread now aligns left and not 100% width of the text container.

Which style would i edit to get that 100% width in the text box?

If anyone could point me in the right direction that would be grand!

Can you post a screenshot?

Gnomie 01-21-2010 08:36 AM

1 Attachment(s)
sure no problem. as you can see, the title isnt subject to the same issue. its like the main body text has been placed in a fixed width or less than 100% table.

so many style vars to search, its driving me nuts!

dont suppose anyone has any kind of cheat sheet with screen shots etc indicating the different style vars locations? i might have to make one :)

amjadz4 01-21-2010 08:49 AM

Well you can see which style it is by adding this line to your config.php

PHP Code:

$config['Misc']['debug'] = true

right after the opening <?php line

and then view the source code of that page in your browser. you should see the template tags.

Gnomie 01-21-2010 08:53 AM

thanks ill give that a whirl :)

edit to add: its not this fix causing the issue above, i reset to stock style vars and templating and itt still happens. I have some work to do :)

kokotitokoko 01-21-2010 09:03 AM

installed

Gnomie 01-21-2010 12:32 PM

now installed and fully functional. my error was a 4.01 bug listed here:

http://www.vbulletin.com/forum/showt...post-body-area

thanks for your input amjadz4 :D

mandingo 01-21-2010 12:38 PM

Quote:

Originally Posted by Gnomie (Post 1962135)
sure no problem. as you can see, the title isnt subject to the same issue. its like the main body text has been placed in a fixed width or less than 100% table.

so many style vars to search, its driving me nuts!

dont suppose anyone has any kind of cheat sheet with screen shots etc indicating the different style vars locations? i might have to make one :)

http://www.vbulletin.com/forum/entry...F-Documents%29

Gnomie 01-21-2010 03:20 PM

Quote:

Originally Posted by mandingo (Post 1962279)

thanks for that, VERY useful :)

ill find my way around vb org soon :D

rikmac 02-18-2010 06:10 AM

Thank you. installed. :up:

fortuneinternet 02-22-2010 11:58 PM

Installed, thanks alut!!!

Alucard^ 04-14-2010 07:34 PM

Omg, someone solved the problem with HiO CleanLight?

https://vborg.vbsupport.ru/showthread.php?t=237772

I cannot fix this skin :(

rohitkhuranadce 05-11-2010 01:55 PM

Thanks :)
You Rock !

Keysailor 05-12-2010 08:09 PM

Thanks for the tip, installed!

TimberFloorAu 05-12-2010 08:19 PM

4.0.3 made no difference at all. In any browser

Booost This 06-30-2010 05:17 PM

Worked good but the CMS front page is still forcing left, after it adjusts center midway through the load. It still forces left.

Running 4.0.3.

Any idea?

laddo 07-01-2010 09:00 AM

Thanks, this was frustrating me trying to find how to set overall page width!

kingharrison 07-06-2010 12:18 PM

Can you make a mod where there is a toggle switch in the bottle left to go between a set fixed width and full screen?

slimgamer 04-20-2011 12:41 AM

This worked perfectly, thanks!

knucklesdamone 06-06-2011 07:56 AM

This worked perfect for my site. www.muscleswithattitude.com. The one thing I did have to do was change the doc_margin to auto for both sides and now im happy and can be. Thanks if you see anything wrong let me know please

doc fluty 06-20-2011 06:39 AM

helped a lot.. thanks!

chrayres 09-12-2011 11:23 PM

Thank you so much! installed!

hivitro 09-14-2011 08:04 AM

Modify the settings many times and never pay attention. worked perfectly!

vBDesignerz 07-09-2012 02:44 PM

thanks how do you centre it after you fix the width up though??

edit: nvm saw the rest of your post, good details! installed

rosikquit 11-21-2013 02:19 PM

Very useful! Thanks ;)


All times are GMT. The time now is 06:30 PM.

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.01322 seconds
  • Memory Usage 1,780KB
  • 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_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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