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

Nibogo


Float BBCode v1.0 - NIBOGO
This mod add a new BBCode called "Float" that let you wrap text around images emulating the float: right/left.





Important Info:
o This Mod was created by SMFPacks.com - The #1 Website for the Customization of your SMF.

SMFPacks.com Provides Other Great Packages:
- Reason for Editing Mod.
- Yet Another Global Announcements Mod.
- SMF Social Groups.
- SMF Links Directory.
- SMF Downloads Directory.
- SMF Dynamic Directory.
- Advanced Topic Prefix Mod.
- Advanced Invitations System.
- Move Topic Notification.
- PM to New Members.
- Permissions Info.
- Next Post Level.
- Karma Buttons.
- SMF Multi Quote.
- Attachments in Topics.
- and much more visit us on SMFPacks.com

Author:
- NIBOGO

Features:
o Add the Float BBCode to wrap text around images.
o Add two new bbcode buttons:
&

o Pretty Useful Writing Articles with images.

Thanks To:

o Fam Fam Fam Icons: The floatright.gif and floatleft.gif icons are provided by Fam Fam Fam Icons.

Languages:
- English/English-utf8
- Spanish Latin/Spanish Latin-utf8
- Spanish Es/Spanish Es-utf8

Compatibility:
- 1.1.X
- 2.0




Changelogs:
1.0 - 03 Dic 2009
o Modification Released.

YogiBear

Is this a development from the Wrap Image With Text mod?
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33


TheListener

Yogi you old muncher this does the exact same job.

The only difference is the gifs.



TheListener

Neither the old bear nor myself were criticising Nibogo.

The mod Yogi mentioned has not been supported for a long time.


YogiBear

Brack's right, Nibogo. The original mod was by 4fit (based on a code by Unknown) updated to RC3 by bluedevil but that's not to say it'll ever be updated for future releases so to have a version which will be supported can only be a good thing.  :)



SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

Spuds

No complaint here either, however the last update to the old mod was by me when I added both the right/left floats plus made sure it worked with WYSIWYG and tweaked the BR bbc code to escape out of the float.  Actually PM'ed the old author to see if he would allow me to take it over but never heard back and then forgot  :P

Anyway some suggestions
1) The float tag should render properly in the WYSIWYG editor, wrap an IMG tag with a float tag and see what you get.  You are welcome to the changes I made in the old mod.
2) I like to have a bbc code to get out of the float, that's why I tweaked what BR did but that was just one option.  Again you are welcome to that as well.
3) Credit Unknown in the read-me

YogiBear

Quote from: Spuds on July 19, 2010, 04:13:03 PM...however the last update to the old mod was by me when I added both the right/left floats plus made sure it worked with WYSIWYG and tweaked the BR bbc code to escape out of the float.  ...


Ooops, sorry Spuds.  :-[
SMF v2.1.3  Mods : Snow & Garland v1.4,  PHP  v.7.4.33

konkarakas

cant get it on rc4 any ideas? it says not compatible with my version or corrupted...

Sledgie


konkarakas

Its perfect!! i dont know what you did but now ITS WORKING!!! thank you very much!!!

KB

I dont know what the problem was, but I got the same error as konkarakas when installing the current download file, then, downloaded the attachment version provided by sledgie, and VIOLA!!..installed cleanly and works properly in RC4 site with several other mods in play as well.
Maybe the admins here could switch out the current version in download area with the one attached to sledgies post above?
Either way..glad to see someone doing an updated version of this mod. :D

Spoogs

it would have worked with version emulate anyway ;)


Sledgie

Is there an update for 2.0.1? I can't install this version. If I do it in compatibility mode it requires FTP info, it then changes my home dir on the server to 777 (which causes the host to shut the site down (Bluehost)). Is there a reason it changes the permissions?


Apllicmz

nICE Work
when Update dont forget portuguese

<file name="$languagedir/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end"></search>
                        <add><![CDATA[
$txt['float_right'] = 'Flutuador da direita';
$txt['float_left'] = 'Flutuador da Esquerda';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end"></search>
                        <add><![CDATA[
$txt['float_right'] = 'Flutuador da direita';
$txt['float_left'] = 'Flutuador da Esquerda';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end"></search>
                        <add><![CDATA[
$txt['float_right'] = 'Flutuador da direita';
$txt['float_left'] = 'Flutuador da Esquerda';
]]></add>
        </operation>
    </file>
    <file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end"></search>
                        <add><![CDATA[
$txt['float_right'] = 'Flutuador da direita';
$txt['float_left'] = 'Flutuador da Esquerda';
]]></add>
        </operation>
    </file>




clothahump

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.

Ashdaw

Will this mode be updated for version 2.02? please :D
You are more than welcome to visit my site.
Greycastle

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: