Can someone break it down for me?
Announcement
Collapse
No announcement yet.
Fixed width vs Full screen styles - Can someone explain the +/-?
Collapse
X
-
Fluid designs give people with bigger monitors the advantage of seeing more (like long text) and they can still resize their browser window if it's too big for them.
With fixed width designs you determine where an element will be placed relative to other elements, especially for sites that depend heavily on graphics. With fluid designs the elements would float around depending on the size of the browser window.
Comment
-
For fixed width you may need to tweak certain elements, particularly the new message area, code block, and control panel message widths to get them fit within the main table widths. IMHO fixed width is 'neater' and worth a few extra tweaks. It's certainly easy to offer your members the choice, like this forum does.
Comment
-
Actually, wrong. You dont really need to create a separate style. Just create a new user profile, with options Expanded and Fixed. Then put this in the headerinclude_start template:
PHP Code:if ($bbuserinfo['yournewuserprofilefieldid'] == 'Expanded')
{
$stylevar['outertablewidth'] = "95%";
$stylevar['outerdivwidth'] = "98%";
$stylevar['spacersize'] = "0";
}
else
{
$stylevar['outertablewidth'] = "760";
$stylevar['outerdivwidth'] = "760px";
$stylevar['formwidth'] = "640px";
$stylevar['formwidth_usercp'] = "480px";
}
Chamber of Secrets - The Ultimate Harry Potter Community!
Comment
-
Originally posted by M1thActually, wrong. You dont really need to create a separate style. Just create a new user profile, with options Expanded and Fixed. Then put this in the headerinclude_start template:
PHP Code:if ($bbuserinfo['yournewuserprofilefieldid'] == 'Expanded')
{
$stylevar['outertablewidth'] = "95%";
$stylevar['outerdivwidth'] = "98%";
$stylevar['spacersize'] = "0";
}
else
{
$stylevar['outertablewidth'] = "760";
$stylevar['outerdivwidth'] = "760px";
$stylevar['formwidth'] = "640px";
$stylevar['formwidth_usercp'] = "480px";
}
edit: actually, it does require a snippet in phpinclude_start to choose which CSS class to initially use. But the overall approach has the benefit of not having to reload the page for the changes to be viewed.--filburt1, vBulletin.org/vBulletinTemplates.com moderator
Web Design Forums.net: vB Board of the Month
vBulletin Mail System (vBMS): webmail for your forum users
Comment
-
Pray tell...
This is Interesting.
Now I could, of course, spend half an hour of my life trying to find that phrase "phpinclude_start" and pat myself on the back afterwards at being so resourceful in finding it (if at all) or I could ask you to spend 30 seconds of yours to read and answer this message.
Thus done and said I have decided that the latter is the wisest choice. Would you please be so kind and direct us to that location, and, if you'd care to expend another 30 seconds include the Javascript AND the snippet you refer to, That would be so wonderful and prevent the possible reinvention of a known wheel.
Thanks,
PolLast edited by Polinco; Tue 5 Jul '05, 10:26am.
Comment
-
Well, I did find three files in which the phrase actually occurs, namely vbulletin-adminhelp.xml, vbulletin-language.xml and vbulletin-style.xml. Considering it is a visible element we can safely assume that the only candidate here would be the vbulletin-style.xml file. However, these are files in the 3.0.x series of the vbulletin software; I have not seen the phrase in any of the files of the new version 3.5.0. Any ideas what is is now?
Comment
-
Originally posted by filburt1You can do it entirely through Javascript (with cookies) and CSS, as on my site (http://www.webdesignforums.net/ ; "Bigger"/"Smaller" link in the header).
edit: actually, it does require a snippet in phpinclude_start to choose which CSS class to initially use. But the overall approach has the benefit of not having to reload the page for the changes to be viewed.
MGM outLast edited by MGM; Tue 5 Jul '05, 11:32am.
Comment
-
The phpinclude templates were removed with Beta 2:
http://www.vbulletin.com/forum/showthread.php?t=143261
The phpinclude_start and phpinclude_end templates have been removed. You should use the global_start and global_end hooks instead.Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
Change CKEditor Colors to Match Style (for 4.1.4 and above)
Steve Machol Photography
Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.
Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment