• Welcome to Simple Machines Community Forum. Please login or sign up.

Image Floating to Left or Right BBCode

Started by dougiefresh, December 01, 2014, 05:57:11 PM

Previous topic - Next topic

dougiefresh

NOTICE: In the nightly version found on GitHub, the SMF team has reworked the section of the parse_bbc function that used the permute function so that it no longer needs it, instead relying on a complete different implementation to address the issue brought up in the REPORT: Potentially "Fatal Flaw" in SMF's bbcode parser thread.....  In the next few days, I will release an update that will make that particular operation optional....

dougiefresh

Uploaded v1.17 - September 4th, 2015
o Rewrote the "fix parameter order" function to be called only when necessary.
o Operation that calls "fix parameter order" function now skipped for nightly SMF 2.1 Beta 2.

villasg

I forget !


<file name="$languagedir/index.greek-utf8.php" error="skip">
<operation>
<search position="replace"><![CDATA[// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)]]></search>
<add><![CDATA[$txt['imgleft'] = "Εικόνα στα αριστερά";
$txt['imgright'] = "Εικόνα στα δεξιά";

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)]]></add>
</operation>
</file>

dougiefresh

Uploaded v1.18 - September 4th, 2015
o Added Greek UTF8 language modification file to the mod, courtsey of villasg.  Thanks, villasg!




@villasg: I've included it in this version!  Thank you!

Steve

Quote from: dougiefresh on July 29, 2015, 07:29:27 PM[imgleft border-stye=solid border-width=3 border-color=red]{url}[/imgleft]
where {url} is the image URL you want to show.

For everyone's info - I couldn't get the border to work until I realized there's a typo above. The code should read border-style ... :)
Please do not PM me for support.

villasg

Quote from: dougiefresh on September 04, 2015, 01:23:56 PM
Uploaded v1.18 - September 4th, 2015
o Added Greek UTF8 language modification file to the mod, courtsey of villasg.  Thanks, villasg!




@villasg: I've included it in this version!  Thank you!

Need to edit "package-info.xml" for correct install Greek lang , now do not install

dougiefresh

Uploaded v1.19 - September 6th, 2015
o Added Greek UTF8 file to the package-info.xml so that it actually installs!

@villasg: Whoops!  It's been properly included for this version!  Thank you!

Védé

Hello, I encountered a small bug using your mod, as you can see on this thread.

Is there any known way to fix this ?


dougiefresh

Quote from: Védé on July 20, 2016, 11:12:22 AM
Hello, I encountered a small bug using your mod, as you can see on this thread.

Is there any known way to fix this ?
I'm not sure that this is mod related, so I wouldn't be able to "fix" the issue you brought up, at least not through my mod....

Védé

I have uninstalled every single mod on my forum but I still encounter this issue. And only when I'm using the [imgleft][/imgleft] [imgright][/imgright] bbcode

Did you try using the bbcode on a post that was more than 20 000 characters yourself ? If so could you please show me a post on one of your test forums?

If you want to try it out yourself I have made a test account on my board.

Login : testaccount
password : chocolate

Here's a post that fills the criterias

http://asobu-asso.org/forum/index.php?topic=18.msg173#msg173 [nofollow]

If you try to make the image float to the left or to the right, the error appears

dougiefresh

Uploaded v1.20 - August 31st, 2017
o Fixed undefined array element issue in Subs-BBCode-Float.php.

dougiefresh

Uploaded v1.21 - October 18th, 2018
o No functionality change.
o Updated documentation to point to new website.

-Rock Lee-

Here I bothering a while with my translations :P to Latin Spanish!


Regardas!
¡Regresando como cual Fenix! ~ Bomber Code © 2020
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

ORIONzitos

Total of translations: 10

dougiefresh

Uploaded v1.22 - October 22nd, 2018
o Added Spanish Latin translation, courtsey of Rock Lee.
o Added Portuguese Brazilian translation, courtsey of ORIONzitos.




@Rock Lee and @ORIONzitos:  Thank you both for the translations!  They've been included in this version!

User Andrey

Does not work for 2.1RC4. Leaves [imgleft] unsubstituted in posts.

Sesquipedalian

Quote from: User Andrey on November 28, 2021, 06:09:51 PMDoes not work for 2.1RC4. Leaves [imgleft] unsubstituted in posts.

For SMF 2.1, you can just wrap an img BBC in the native float BBC.

If @dougiefresh wants to add support for 2.1 to this mod for the sake of backward compatibility for upgraded forums, I would recommend using the integrate_pre_load hook to add 'imgleft' and 'imgright' to the $context['legacy_bbc'] array, and then making sure not to include any UI in the editor for them. This approach will allow existing occurrences of the custom BBC in old posts to still be parsed as they always were, but will also push users toward the native BBC for all new posts.

I promise you nothing.
Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Advertisement: