Announcement

Collapse
No announcement yet.

Horizontal Postbit Layout

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    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.

    Comment


      #32
      Originally posted by Eolesen View Post
      in testing as a Guest, it's defaulting to Left
      Yes but does it still call the fetchUserInfo API? It would be a waste to call it if userid is zero.
      Helpful? Donate. Thanks!
      Buy me a coffeePayPal QR Code
      Fast VPS Host for vBulletin:
      A2 Hosting & IONOS

      Comment


        #33
        Ah. That's a consideration, then.

        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.

        Comment

        Users Viewing This Page

        Collapse

        There is 1 user viewing this forum topic.

        • Guest Guest

        Latest Posts

        Collapse

        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.
        There are no results that meet this criteria.
        Search Result for "|||"