Wrap around text in Blog

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • outreacher
    Member
    • Mar 2005
    • 32
    • 4.1.x

    [Blog] Wrap around text in Blog

    I have Version 4.1.8 installed and am unable to align an image in a blog with text wrapped around the image.

    The blog looks absolutely terrible with an image aligned left, with text above and below and a vast empty area of space at the side of the image.

    Why won't this basic function work in Blogs.

    I have tried creating the Blog in wordpress, and using other methods and then pasting into the vb blog and the image still aligns without the text wrapping.
    Last edited by outreacher; Thu 26 Apr '12, 11:28am.
  • Matthew Gordon
    Senior Member
    • May 2002
    • 3243
    • 1.1.x

    #2
    Make a new BB Code (Admin CP -> Custom BB Codes -> Add New BB Code), I named it "float" but it doesn't matter. This should be the replacement:

    Code:
    <span style="float:left; margin-right: 5px;">{param}</span>
    The rest can be left at default. Wrap your [img] tag with the new [float] tag, like so:

    [float][img]https://www.vbulletin.com/forum/images/misc/vbulletin4_logo.png[/img][/float]

    The result should be something like this, when you add text next to it:

    Click image for larger version

Name:	floatbbcode.png
Views:	1
Size:	15.7 KB
ID:	3687135

    Comment

    • Trevor Hannant
      vBulletin Support
      • Aug 2002
      • 24358
      • 5.7.X

      #3
      I think this was fixed in a later version (sorry, unsure as to which) as it's definitely works in 4.1.12 OK.
      Vote for:

      - Admin Settable Paid Subscription Reminder Timeframe (vB6)
      - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

      Comment

      • outreacher
        Member
        • Mar 2005
        • 32
        • 4.1.x

        #4
        Originally posted by Matthew Gordon
        Make a new BB Code (Admin CP -> Custom BB Codes -> Add New BB Code), I named it "float" but it doesn't matter. This should be the replacement:

        Code:
        <span style="float:left; margin-right: 5px;">{param}</span>
        The rest can be left at default. Wrap your [img] tag with the new [float] tag, like so:

        [float][img]https://www.vbulletin.com/forum/images/misc/vbulletin4_logo.png[/img][/float]

        The result should be something like this, when you add text next to it:

        [ATTACH=CONFIG]59106[/ATTACH]
        Thank you Matthew, looks like you have a solution to the problem. I am a little naive when it comes to adding code without specific instructions.

        When I arrive at the (Admin CP -> Custom BB Codes -> Add New BB Code) There is a place for Title - then a place for "BB Code Tag Name" then below that a large text box.

        Do I leave the Tag Name blank and paste the code in the text box "Replacement". Sorry for the questions but I don't want to paste the code and mess it up. Below the replacement box is another text box, should I enter something in there?

        Also if I just paste into replacement box, and try save it tells me to complete all required fields, that is a bit confusing as well .

        Thank you.

        Actually Matthew, I just tried to work it out and I seem to have pasted info into the right places and the text has wrapped.

        Your a genius, thank you very much.

        Regards.
        Last edited by outreacher; Fri 27 Apr '12, 3:28pm.

        Comment

        • Matthew Gordon
          Senior Member
          • May 2002
          • 3243
          • 1.1.x

          #5
          The title is what it is called, the tag name is what you use inside of brackets to use it. For example, the image tag's title would be "Image" while the tag name is "img".

          Glad you got it working right.

          Comment

          • Mr_Running
            Senior Member
            • Nov 2009
            • 178
            • 4.2.X

            #6
            Can anyone confirmed this was fix as I am on 4.2.0 and have the same problem.
            If it's fixed is there something I can do to get it working?
            I am hoping not to need this bbcode.

            Cheers
            Mr_Running
            You Could Live a Long Time: Are you Ready to Run?

            For the improvement of social groups, please add tags, attachments, infractions, reputation, moderation tools, notifications, thread read marking, group discussions in What's new, category permissions and subcategories.
            More improvements: http://tracker.vbulletin.com/browse/VBIV-8784

            Comment

            • Matthew Gordon
              Senior Member
              • May 2002
              • 3243
              • 1.1.x

              #7
              If your image is an attachment, you can use the WYSIWYG editor, double-click the attachment, and choose to align it to the left or right. If you are using [img] tags, then you need to use an extra BB Code (or HTML) to align it how you want.

              Comment

              • Mr_Running
                Senior Member
                • Nov 2009
                • 178
                • 4.2.X

                #8
                Okay, I just realized that it's an attachment which is align to the left but the attachment and the text are butting up to each other, leaving no space between the attachment and text.

                Click image for larger version

Name:	attachnospace.jpg
Views:	1
Size:	2.1 KB
ID:	3689737
                Mr_Running
                You Could Live a Long Time: Are you Ready to Run?

                For the improvement of social groups, please add tags, attachments, infractions, reputation, moderation tools, notifications, thread read marking, group discussions in What's new, category permissions and subcategories.
                More improvements: http://tracker.vbulletin.com/browse/VBIV-8784

                Comment

                • Mr_Running
                  Senior Member
                  • Nov 2009
                  • 178
                  • 4.2.X

                  #9
                  Who has blogs and has this issue in post #8?
                  Mr_Running
                  You Could Live a Long Time: Are you Ready to Run?

                  For the improvement of social groups, please add tags, attachments, infractions, reputation, moderation tools, notifications, thread read marking, group discussions in What's new, category permissions and subcategories.
                  More improvements: http://tracker.vbulletin.com/browse/VBIV-8784

                  Comment

                  • Matthew Gordon
                    Senior Member
                    • May 2002
                    • 3243
                    • 1.1.x

                    #10
                    Try adding the following to your additional.css template:
                    Code:
                    blockquote .align_left
                    {
                    	margin: 1em 1em 1em 0;
                    }
                    
                    blockquote .align_right
                    {
                    	margin: 1em 0 1em 1em;
                    }
                    See also a relevant bug report: VBIV-14822

                    Comment

                    • Mr_Running
                      Senior Member
                      • Nov 2009
                      • 178
                      • 4.2.X

                      #11
                      Thanks Matthew, it worked for all about 5 minutes.
                      I play with the em ...tried .5em but then put it back to 1em

                      Not it does not work for me
                      I tried clearing the cache and browser but still the same result.

                      Voted.
                      This may seem minor but my bloggers don't like it !!!
                      I hope it gets fixed in the next update.

                      Any other ideas to temporary fix?
                      Mr_Running
                      You Could Live a Long Time: Are you Ready to Run?

                      For the improvement of social groups, please add tags, attachments, infractions, reputation, moderation tools, notifications, thread read marking, group discussions in What's new, category permissions and subcategories.
                      More improvements: http://tracker.vbulletin.com/browse/VBIV-8784

                      Comment

                      • Matthew Gordon
                        Senior Member
                        • May 2002
                        • 3243
                        • 1.1.x

                        #12
                        Are you using the config window to align the attachment? [attach=left] uses an inline float that isn't affected by the additional.css addition, but it should work fine for [attach=config] with alignment set to left.

                        Comment

                        • Mr_Running
                          Senior Member
                          • Nov 2009
                          • 178
                          • 4.2.X

                          #13
                          Okay, Now it seems to be working again.
                          Mr_Running
                          You Could Live a Long Time: Are you Ready to Run?

                          For the improvement of social groups, please add tags, attachments, infractions, reputation, moderation tools, notifications, thread read marking, group discussions in What's new, category permissions and subcategories.
                          More improvements: http://tracker.vbulletin.com/browse/VBIV-8784

                          Comment

                          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                          Working...