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.
      Buy me a coffeePayPal QR Code
      My Amazon Affiliate Link
      Fast vBulletin VPS Host:
      This site is hosted by 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


          #34
          By chance glennrocksvb have you or anyone else been able to get this to work for vb6??

          I've gotten the large print to work, but the horizontal postbit layout seems to not be working.

          Comment


            #35
            The HTML structure of each post has changed in vB6. I'll make the vB6 version of this mod.
            Buy me a coffeePayPal QR Code
            My Amazon Affiliate Link
            Fast vBulletin VPS Host:
            This site is hosted by IONOS

            Comment


              #36
              Thanks, hopefully it's as easy to implement as it was for vb5.

              Comment


                #37
                Eolesen, here it is1

                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
                Buy me a coffeePayPal QR Code
                My Amazon Affiliate Link
                Fast vBulletin VPS Host:
                This site is hosted by IONOS

                Comment

                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 "|||"