• Before posting a question, please check our Frequently Asked Questions page as well as previous threads here. Odds are you aren't the first to ask, and you may find the answer without having to post!

BBCode Questions (and/or possible bug?)

Vendetta

It's a sin to kill a mockingbird.
Hello.


I'm currently creating a thread within the character feedback section and am using all sorts of bbcodes to make it look pretty; I came across a few things that I was told to ask here.


Can height restrict be used in tandem with image float? I'm not sure if I'm just doing it incorrectly, but when I've tried to use both on one image, the height restrict works but cancels out the image float. I've tried reversing the order but nothing changed, so I don't know if I'm just making an error somewhere.


Also, I'm using tabs to keep everything organized but I'm having an issue with that too. I'm trying to put certain things within certain tabs, but for some reason it keeps making a seperate one on the bottom when there's only a few words in the proper tab (see picture below). Is there a way to fix this?


Thanks!


<p><a href="<fileStore.core_Attachment>/monthly_2015_02/image.jpg.f6cd6d74b88c9463b45ccccfc053cf4e.jpg" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="43411" src="<fileStore.core_Attachment>/monthly_2015_02/image.jpg.f6cd6d74b88c9463b45ccccfc053cf4e.jpg" class="ipsImage ipsImage_thumbnailed" alt=""></a></p>

 

Attachments

  • image.jpg
    image.jpg
    288.5 KB · Views: 93
1. Yes, you can use height restrict within image float. Tags should be

Code:
[imagefloat=OPTION][heightrestrict=OPTION][img=«Image url»][[/heightrestrict][/imagefloat]

2. Don't use the rich text editor when attempting complex bbcode. Use the bbcode editor. Usually that behavior occurs when the rich code editor attempts to "help" and ends up putting the bbcode tags in the wrong order. For example, it might put a center or bold tab in weird places or close a tab tag because of formatting tags. It looks like the latter happened in your example.


Using the bbcode editor will help you ensure only the codes you intend to be there are in play.
 
Last edited by a moderator:
I've used the Image Float and Height Restriction in tandem before, and it seemed to work.

Code:
[imageFloat=right][heightrestrict=500]PICTURE HERE[/heightrestict][/imageFloat]
[/CODE]

Example:


do-ngoc-anh-that-su-yeu-em-roi.jpg


Now the Tabs are a thing I don't usually deal with, so someone else may have to help you with that. ^_^
 
Last edited by a moderator:
DamagedGlasses said:
Code:
[imageFloat=right][heightrestrict=500x450px]PICTURE HERE[/heightrestict][/imageFloat]
[/CODE]

Very wrong format. "heightrestrict=xxx" only. You can't control the width with it, only the height. Further, you exclude the px. "heightrestrict=500" it will auto do width to scale.
 
Alright. ^_^


It was my first time using the Height Restrict, so I am glad that got corrected before I got used to formatting it that way.
 
Example of the height restrict with image float:


<p><a href="<fileStore.core_Attachment>/monthly_2015_02/image.jpg.979a74b9d5e98cb38e0da5e6897d5079.jpg" class="ipsAttachLink ipsAttachLink_image"><img data-fileid="43416" src="<fileStore.core_Attachment>/monthly_2015_02/image.jpg.979a74b9d5e98cb38e0da5e6897d5079.jpg" class="ipsImage ipsImage_thumbnailed" alt=""></a></p>
Text goes here.


You can have many lines of text and it will wrap accordingly.

Code:
[imagefloat=left][heightrestrict=150][ATTACH=full]96523[/ATTACH][/heightrestrict]
[/imagefloat] Text goes here.

You can have many lines of text and it will wrap accordingly.

 

Attachments

  • image.jpg
    image.jpg
    31.2 KB · Views: 85
To add to what the others have showed you, image float must be coded outside of height restrict. You cannot move the coding variables around. These terms are not reversible. Your coding will not compute unless they are in the exact order Pineapple has given.
 

Users who are viewing this thread

Back
Top