BBCode with style

Started by davidhs, May 02, 2010, 02:40:59 AM

Previous topic - Next topic

Boskonovic

Eheh lol yes, it's the trick i' am using right now, but in such a way is necessary to add a div not always necessary outside the table.
Not a big problem, ok, but the code could be simpler(also for the css part) declaring directly the class for the table :)

Bye


Boskonovic

Don't worry, they way you suggested is perfect and the whole work is really good!

One possible bug: I use this mod for the "spoiler" tag -> http://custom.simplemachines.org/mods/index.php?mod=2330
If I use your tags inside the [spoiler][/spoiler] it doesn't parse them correctly and it writes them like text.

Example:

I write
[spoiler][div style="color:red;"]rrrr[/div][/spoiler]

it posts, inside the [spoiler] tag
[div style="color:red;"]rrrr[/div]


Any idea?


Boskonovic


davidhs

I do not understand... in RC4 works! (at least in my empty copy for test my MODs.)

Perhaps is for other MOD installed in your forum

(in my empty copy of RC4 I have installed
1. BBCode with style 1.3
2. Content of the latest posts 1.1.1
3. Menu without limit level 1.0.3
5. Enhancements to purge inactive members 1.1.2
6. Reattribute posts with post numbers 1.2.3
7. Spoiler BBCode 1.1.3

)

Boskonovic

These are the mods installed on my test site:
1. Spoiler BBCode 1.1.3
2. Signature Area BBCode Buttons 2.0.2
3. Member Awards 2.2.3
4. WYSIWYG Quick Reply 2.1
5. SimplePortal - Italian 2.3.3
6. BBCode with style 1.3.1
7. MCLegendII RC3 3.0
8. Order Stickied Topics 1.01
9. SimplePortal 2.3.3
10. SMF 2.0 RC4 Security Patch


None of them should create conflicts...

You wirte a post with this text
[spoiler][div style="color: red;"]ciao[/div][/spoiler]

and it works?

davidhs

Quote from: Sages on April 01, 2011, 05:50:53 PM
You wirte a post with this text
[spoiler][div style="color: red;"]ciao[/div][/spoiler]

and it works?
Yes, it works. In database save this
[spoiler][div style="color: red;"]ciao[/div][/spoiler]

You can do this:

1. Install one copy of RC4 without MODs
2. Install my MOD and test.
3. Install Spoler BBCode and test tag spoiler + div with class
4. Install other of your MODs and test tag spoiler + div with class
5. Install other of your MODs and test tag spoiler + div with class
6. ...

So you know if the problem is one MOD.
Perhaps "SMF 2.0 RC4 Security Patch"? I do not know...

Boskonovic

In my DB too the message is saved as

[spoiler][div style="color: red;"]ciao[/div][/spoiler]

Mmmm... I' ll try what you suggested, thank you :)

davidhs

New version:

1.3.2   2011-04-03
------------------
+ Languages: Adds italian, italian-utf8, thanks to Sages.

Boskonovic

Ok problem solved. I don't know the reason, but there msut have been some sort of error during the installation of your mod. After testing with a fresh SMF installation and adding the mods individually, there were no problems at all. I then tried to uninstall/reinstall your mod and there I found that the "Subs.php" was impossibile to be cleaned because it wasn't able to find the lines of code it was looking for!

After that I installed the mod again and now works well :D

Bye and thank you

davidhs

Quote from: Sages on April 04, 2011, 09:35:37 AMI don't know the reason, but there msut have been some sort of error during the installation of your mod. After testing with a fresh SMF installation and adding the mods individually, there were no problems at all. I then tried to uninstall/reinstall your mod and there I found that the "Subs.php" was impossibile to be cleaned because it wasn't able to find the lines of code it was looking for!
This is normal, have not errors.
If you install one mod (like mine) and then install another that modifies an area that same file, when you uninstall the first mod, an error occur.
You must uninstall the mods in the reverse order. ie
1. install mod1
2. install mod2
3. install mod3
4. uninstall mod3
5. uninstall mod2
6. uninstall mod1

davidhs

New version:

1.4     2011-04-09
------------------
+ New optional attribute class in BBCode tags: hr, img, li, list, table, td, tr.

FireDitto

Is it possible to change the colour behind text with this? Like a "<font bgcolor="#rrggbb">" type of thing..?
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

davidhs

Quote from: FireDitto on June 07, 2011, 04:56:20 AMIs it possible to change the colour behind text with this? Like a "<font bgcolor="#rrggbb">" type of thing..?
Yes, of course :) With CSS. For example:
[span style="background-color: #rrggbb;"]text[/span]

Mikirin

Is there any way to do a div with tabs?
Like this? Where you click the tab and it goes?

davidhs

Quote from: Mikirin on June 10, 2011, 10:51:59 PM
Is there any way to do a div with tabs?
Like this? Where you click the tab and it goes?

No, only with div+style or class it is not possible :(.

You need events, for example using html BBCode, something like this (I do not know if this work):
[html]
<div class="tab1" onclick="javascript: document.content1.visibility = visible; document.content2.visibility = hidden;">Tab1</div>
<div class="tab2" onclick="javascript: document.content2.visibility = visible; document.content1.visibility = hidden;">Tab2</div>
<div class="content1" id="content1">text1</div>
<div class="content2" id="content2">text2</div>
[/html]


FireDitto

Quote from: davidhs on June 07, 2011, 07:56:29 AM
Quote from: FireDitto on June 07, 2011, 04:56:20 AMIs it possible to change the colour behind text with this? Like a "<font bgcolor="#rrggbb">" type of thing..?
Yes, of course :) With CSS. For example:
[span style="background-color: #rrggbb;"]text[/span]

WONDERFUL <3 <3 <3 :D :D :D
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Mikirin

I can't find an html bbcode mod and it does not work =<
I hope someone might make a mod for it some day.

FireDitto

html bbc will work on the site, but ONLY if the option to use it is checked, and ONLY if you are the administrator of the site; regular members cannot use it.
Second Pass Weyr<br />An AU Pernse RPG<br /><br />SMF 2.0.6 with SP 2.3.5

Advertisement: