News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Float BBCode

Started by Nibogo, July 13, 2010, 03:41:11 PM

Previous topic - Next topic

TheListener

Quote from: Ashdaw on February 14, 2012, 12:01:23 AM
Will this mode be updated for version 2.02? please :D

Someone needs to start reading the posts more.

Look at the Mod Emulation link in my signature.

clothahump

Makes no difference if emulation is used, it still screws with the editor.

Someone needs to start reading the posts more.

TheListener

How does it mess with the editor?

clothahump

Quote from: clothahump on February 12, 2012, 03:00:12 PM
Screws up the editor in 2.0.2, it will not allow cut and paste in normal view but cut and paste works fine in toggle mode.

Oceander

Just a short note:  The mod works with 2.0.2 but has to be put in manually right now because the installer only goes as far as version 2.0.  I didn't try changing the installer to see if that would let it install automatically, but I would guess that the change would fix it.

Arantor

That's what the emulate version function is for - check it out in the wiki under How can I install a mod that doesn't work in my SMF version?

Oceander

Fair enough; however, with something this simple it seems to me that we shouldn't overcomplicate matters.

Arantor

Where's the complication? You can quite happily install it yourself without waiting for someone to edit the package manually... (and the same technique works for a large number of mods), all it is is that you have to spend 30 seconds more to install it than before.

lifeguard81

i try to install this on a other theme, uploaded the images, and make the changes in language/newtheme, but it doesnt work :(


Edit: Sorry, i was stupid. It works
www.doenwenu.nl
Excuse me for my english. i am from holland :)

lurkalot

Says this mod is "Compatible with 1.1.11, 1.1.17, 2.0 RC2, 2.0 RC3, 2.0, 2.0.3"

But it's not, only goes up to 2.0.

<install for="2.0"> <uninstall for="2.0">

Yes I know I can emulate, just wanted to point out the mistake.  ;)

Arantor

I don't think it's a mistake. It does work on 2.0.3 - there are no changes in 2.0 beyond 2.0 itself that would affect it, so emulation would work fine.

lurkalot

I know it works, but it says it's compatible with 2.0.3 that as far as I can see means you should be able to download it and install it with the package manager without any emulation.

The trouble is, once someone uploads the mod via package manager, they are shown a install link straight away( which in my opinion they shouldn't).  If clicked they would probably get a error message, saying it's corrupt, or not compatible.

On the other hand, if the click back to the browse packages page they would see there's no install link for it. Because it's not actually compatible with 2.0.3 or 2.0.2 but 2.0 which is why you have to install it in compatibility mode.

The  package-info XML  file needs updating or a note on the download page perhaps.   ;)

Chainy

Thank you for this mod, Nibogo. It's a really useful feature.

I just made a little alteration and I'd like to check that I've done it in the best way. In the original version of this mod, the margin around images is set as:

Quote<add><![CDATA[array(
                'tag' => 'float',
                'type' => 'unparsed_equals',
                'test' => '(left|right)\]',
                'before' => '<div style="float: $1; margin: .5ex 1ex 1ex 1ex;">',
                'after' => '</div>',
            ),

I wanted to have different margins, depending on which side the image is shown, so I changed the above to this:

Quote<add><![CDATA[array(
                'tag' => 'float',
                'type' => 'unparsed_equals',
                'test' => '(left)\]',
                'before' => '<div style="float: $1; margin: 2ex 2ex 2ex 0ex;">',
                'after' => '</div>',
            ),
            array(
                'tag' => 'float',
                'type' => 'unparsed_equals',
                'test' => '(right)\]',
                'before' => '<div style="float: $1; margin: 2ex 0ex 2ex 2ex;">',
                'after' => '</div>',
            ),

Perhaps I could have done that in a better way?

qubbah

The one pproblem is... i must click [img] bbc bofore using [float]
look like [...float=right][...img]http://r.gif[.../img][.../float]

Raffoz

Does it work for 2.0.14?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)


Raffoz

MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)


Advertisement: