Welcome to vbmods.rocks! Get FREE and paid vBulletin mods, plugins, addons, API extensions, custom modules, custom BB Codes, vBCloud mods, CORE hacks, JS hacks, custom coding by Glenn, an ex-vBulletin Developer. You must register before you can post, download the files or copy the code from the free plugins.
I'm not checking for that -- in testing as a Guest, it's defaulting to Left, which is what it does for anyone logged in who hasn't defined a value in their profile yet.
Feel free to borrow any or none of this if this is worth a free mod.
For gits and shiggles, I cloned the steps for Horizontal and made Large Print option.... it sets the HTML element font-size at 100% (since rem's are supposed to be relative to the HTML element).
header
Code:
<vb:comment> START Extra CSS elements for the horizontal and large print </vb:comment>
<vb:if condition="$user['userid'] > 1">
{vb:data userInfo, user, fetchUserInfo, {vb:raw user.userid}}
<vb:if condition="$userInfo['field18'] == 'Horizontal'">
{vb:cssExtra css_add_horizontal.css}
<!---- Horizontal Userinfo ---->
<vb:else />
<!---- Left Userinfo ---->
</vb:if>
<vb:if condition="$userInfo['field19'] == 'Large'">
{vb:cssExtra css_add_largeprint.css}
<!---- Large Print ---->
<vb:else />
<!---- Regular Print ---->
</vb:if>
<vb:else />
<!---- Guest Settings ---->
</vb:if>
<vb:comment> END Extra CSS elements for the horizontal and large print </vb:comment>
css_add_largeprint.css
Code:
html {
font-size: 100%;
}
I didn't tag that one as important because it works, and I don't want to mess up what might need to be out there for responsive or media specific CSS.
vB6 only uses horizontal postbit layout when in mobile view but not in desktop view. If you want to also do it on desktop, then you are in the right place!
Here are the instructions. This is compatible with self-hosted vB6 and vBCloud. For vB5, you can get it here (https://vbmods.rocks/forum/vbulletin-5-modifications/vbulletin
Comment