News:

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

Main Menu

Image Align

Started by TraderJake, October 07, 2006, 09:26:28 AM

Previous topic - Next topic

TraderJake

Link to Mod
Rate this Mod

This mod adds an align parameter to the img BBC tag. The align parameter functions identical to the HTML <img src="Path" align="parameter" /> tag. The tag works as follows:

[img align=parameter]image path[/img],
where parameter can be one of the following values: left, right, middle, top, bottom.

Version History
Version 0.1: Initial Release, tested on SMF 1.1 RC2 and 1.1 RC3 installs.
RF Generation. [nofollow] The Classic and Modern Videogames Database

Lemming

Hey...

thx - nice mod  ;)

Maybe you could add a bbc-code like html: "vspace="X" hspace="X"" ?

-Tommy  :)


denislici

Quote from: Lemming on October 15, 2006, 08:15:51 AM
Hey...

thx - nice mod  ;)

Maybe you could add a bbc-code like html: "vspace="X" hspace="X"" ?

-Tommy  :)


it will be cool...
Love the Creature for Creator's sake. (English)
Duje Krijesen per hire te Krijuesit. (Albanian)
Yaradılan'ı sev Yaradan'dan ötürü. (Turkish)
Ami la Creatura per ce la creato il Creatore. (Italian)

TrueSatan

A simple compatibility update for SMF 1.1.3

lookang

try resize images, say default is "width = 320, height = 240"

[img][/img] concurrently does not allow resizing! :D

MissyNL

Hai.. great mod! could it be possible to make a button for it.. so that my member can use it.. they do not memorize codes very well.. :D
Sorry for my poor English, but i think it's probably better then your Dutch :)

MissyNL

Is it also possible to create more room between the text and the image?
Sorry for my poor English, but i think it's probably better then your Dutch :)

Apllicmz




Hoochie Coochie Man

mod is not working with 1.1.5 :S
İnadına SMF 1.1.X

MissyNL

I have 1.1.5 ;) and it's working great :D
Sorry for my poor English, but i think it's probably better then your Dutch :)

Coroner

Quote from: Lafemme on June 08, 2008, 10:55:14 AM
I have 1.1.5 ;) and it's working great :D

Could you please show us a screen shot and possible use instructions?

MissyNL

why do you need a screenshot and use instructions from me? it is written in the mod explenation...
Sorry for my poor English, but i think it's probably better then your Dutch :)

Hoochie Coochie Man

Cause it's not working.. !!
İnadına SMF 1.1.X

Coroner


HistoryHunter

Works perfectly for me - many thanks - this is a valuable addition to smf.

MissyNL

Hi..is it possible to make buttons for it that i can add, so that it is easier for my members?
Sorry for my poor English, but i think it's probably better then your Dutch :)

Rocks-HD

this mod work very well in smf 2.0

thanks man

zach21uk

How can I make this work with 2.0 beta 4?   I put the package in the folder but the install button isnt available in my admin panel....

realnc

I've extended this mod to also allow "hspace" and "vspace". If anyone wants it:

http://foss.math.aegean.gr/~realnc/ExtendedImageAlign_0.1.tar.gz

Mr. Jinx

This is very handy.
For SMF 2.0 RC1.2 open Subs.php
Find:

array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height} class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),


Replace with:

array(
'tag' => 'img',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
'width' => array('optional' => true, 'value' => ' width="$1"', 'match' => '(\d+)'),
'height' => array('optional' => true, 'value' => ' height="$1"', 'match' => '(\d+)'),
'align' => array('optional' => true, 'value' => ' align="$1"', 'match' => '(left|right|middle|top|bottom)'),
),
'content' => '<img src="$1" alt="{alt}"{width}{height}{align} class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),

Advertisement: