| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| [ C ] [Request] CSS BBcode | |
|---|---|
| Tweet Topic Started: Jun 22 2011, 10:42 PM (1,231 Views) | |
| Mouvelian | Jun 22 2011, 10:42 PM Post #1 |
|
Skinner
![]() ![]() ![]()
|
Board Address: RMS Board Software: Zetaboards Description: A CSS BB Code. As in E.G [css-div=background:url('http://www.website.com/image.jpg'); background:url('http://www.website.com/image.jpg') ]TEXT HERE[/css-div] Basically, i've found a css code but i wanted to add more than one css per paragraph. The current code im using won't allow me to add more than one CSS per paragraph. *By Alam of Outlineforum
Currently, his current code can only do this.[css=<properties>; value]text[/css] What im requesting for is this.[css=<properties>; value][css=<properties>; value]text[/css][/css] Multiple css bbcodes per paragraph. Or to make it easier, a code that allows HTML-CSS to be used in posts. Thank you for reading my requests. Edited by Mouvelian, Jun 22 2011, 10:46 PM.
|
![]() |
|
| Cory | Jun 22 2011, 10:49 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
That one does allow you to use multiple properties, for example:
|
![]() |
|
| Mouvelian | Jun 22 2011, 10:54 PM Post #3 |
|
Skinner
![]() ![]() ![]()
|
No no. I know that but sometimes, i wish to add some tables/borders in between the css. The current css bbcode doesn't allow any bbcodes in between. :/ E.g [css=properties: values; properties: values; properties: values;]Now i want to add another css e.g like a border. [css= border: 2px dashed;]Text inside border[/css][/css] But i can't add another bbcode. When i add the [css] or another bbcode in between the first [css] code, it won't let me. Edited by Mouvelian, Jun 22 2011, 11:00 PM.
|
![]() |
|
| Cory | Jun 23 2011, 12:40 AM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Sorry, I don't know how to fix that, I bet one of the experts do though.There's a slightly shorter version, however. If you're just wanting the inner CSS tag to deposit background, border, and color for example, that can already be accomplished with default BBCode tags. There's also a table BBCode. |
![]() |
|
| Mouvelian | Jun 23 2011, 03:48 AM Post #5 |
|
Skinner
![]() ![]() ![]()
|
I wanted the css bbcode cause there's much much more i can do. Like alpha: opacity and much more. |
![]() |
|
| Quozzo | Jun 23 2011, 12:08 PM Post #6 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
using Regular Expressions (the thing that finds the BBCode) and nested elements (putting one inside the other) is not possible as it doesn't have a memory and will either look for the nearest match (ungreedy, with a ? ) or look for the longest match (greedy, without a ? ) allow me to demonstrate: Ungreedy is best for nested elements as it will get the largest match and the resulting text will be the 'next level', able to repeat the process and find all the nested tags. [bbc_code][css=color:red;]red text[css=font-weight:700;]red text and bold[/css][/css][/bbc_code] but if the same process is used on tags which are not nested, then it will match the first tag with the last. [bbc_code][css=color:red;]red text[/css]lorem ipsum dolor sit amet lorem ipsum dolor sit amet [css=color:blue]blue text[/css][/bbc_code] So what about ungreedy matches? well that will work for multiple tags but not nested tags [bbc_code][css=color:red;]red text[css=font-weight:700;]red text and bold[/css][/css] [css=color:red;]red text[/css]lorem ipsum dolor sit amet lorem ipsum dolor sit amet [css=color:blue]blue text[/css][/bbc_code] Edited by Quozzo, Jun 23 2011, 12:14 PM.
|
![]() |
|
| Mouvelian | Jun 24 2011, 12:35 PM Post #7 |
|
Skinner
![]() ![]() ![]()
|
Hmm, okay thanks for the tip. |
![]() |
|
| RedBldSandman | Jun 26 2011, 09:34 PM Post #8 |
![]()
Asante sana Squash banana
![]() ![]() ![]() ![]() ![]() ![]()
|
Try this in the Below the Board section of your Board Template:That should work
|
![]() |
|
| Mouvelian | Jun 29 2011, 09:45 AM Post #9 |
|
Skinner
![]() ![]() ![]()
|
Thanks! It works (: |
![]() |
|
| Minato | Jun 29 2011, 11:31 AM Post #10 |
|
Let Me Be With You
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
8:30 PM Jul 10
|


![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)



8:30 PM Jul 10