News:

Wondering if this will always be free?  See why free is better.

Main Menu

wrap text around images

Started by bojzi, January 01, 2005, 08:14:28 AM

Previous topic - Next topic

MultiformeIngegno

Quote from: Arantor on December 06, 2009, 11:04:55 AM
parse_bbc is one of the heaviest functions in SMF. It's called every post, called every message listing (for the first post in every thread), amongst others. Every line added slows that down - IMO we need to cut back not add more there.
I agree, we can remove a lot of useless BBC! But now, that more than ever are growing portal/wiki/blog MODs, this tag is really useful! Yes, you can say that authors can add the tag in their MODs, but it's useful also for "normal" forum: long posts need some images floatting/text wrapping! I agree that performance is important, but there are a lot of useless tags that can be removed (and added, if admins want, with MODs), for example shadow/glow! float=left/right is - I think - a basic tag, not "stylish", it's important, not only "cool" (and useless) like shadow/glow!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Arantor

Oh, I agree shadow, glow should go. I also think move and some of the others should go, but I cannot seriously see adding it.

I'm almost certain it *won't* be in 2.0. I strongly doubt it will be in 2.1 but I'll push for it.

The problem with removing features is that there are folk who will expect it to be there.

L'AltroWeb

Hi :)
Actually i use this code to post my articles with float image

[html]
<img style="float: left;" src="h**p://mysite.*/imagename.jpg" alt="alt-text" title="title-text" />
[/html]

is there any way to add alt and title attribute to this mod?
i think a bbcode like this:
[img float=left alt="alternative text" title="images title"]h**p://mysite.*/imagename.jpg[/img]
(smf media gallery style) :)

zarej

#43
Thanx for great mod.

Quick Tip for SMF 2 versions:
FIrst 2 steps are the same as in Instalation instructons for 1.1.6 but in 3rd step instead of editing  ./Themes/default/Post.template.php you must edit ./Sources/Subs-Editor:

Find:
array(
'image' => 'img',
'code' => 'img',
'before' => '[img]http://',
'after' => '[/img]',
'description' => $txt['image']
),

and Add Before:
array(
'image' => 'float',
'code' => 'float',
'before' => '[float=left][img]http://',
'after' => '[/img][/float]',
'description' => $txt['float']
),

Arantor

Please use [code] instead of [quote], it will help people to understand what you're saying - right now it's broken.

zarej


Advertisement: