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.
Check core/vb/api/node.php and find the closeNode function. If you are using the compressed PHAR version of the vB5 package, you will not see the api...
05-03-2024, 12:00 PM
Working...
X
Searching...Please wait.
An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.
Please push the back button and reload the previous window.'
An unexpected error was returned: 'Your submission could not be processed because the token has expired.
Please push the back button and reload the previous window.'
An internal error has occurred and the module cannot be displayed.
Comment