Allora, questo è il mio suggerimento per chi vuole distanziare l'immagine dal testo, ogni qual volta allinea a destra o a sinistra la stessa.
1) INCLUDES/BBCODE.PHP
Cercate:
// generate html
$html = '<img';
foreach($params as $var => $value)
{
if ($this->process_text($value) != '')
{
$html .= ' ' . $var . '="' . $this->process_text($value) . '"';
}
}
if(!isset($params['title']))
{
$html .= ' title="' . $this->process_text($params['alt']) . '"';
}
$html .= ' />';
$html = '<img';
foreach($params as $var => $value)
{
if ($this->process_text($value) != '')
{
$html .= ' ' . $var . '="' . $this->process_text($value) . '"';
}
}
if(!isset($params['title']))
{
$html .= ' title="' . $this->process_text($params['alt']) . '"';
}
$html .= ' />';
E sostituitelo con questo
// generate html
$html = '<img';
foreach($params as $var => $value)
{
if ($this->process_text($value) != '')
{
$html .= ' ' . $var . '="' . $this->process_text($value) . '"';
}
}
if(!isset($params['title']))
{
$html .= ' title="' . $this->process_text($params['alt']) . '"';
}
$html .= ' style="border:1px solid black;margin:1px 5px;" />';
$html = '<img';
foreach($params as $var => $value)
{
if ($this->process_text($value) != '')
{
$html .= ' ' . $var . '="' . $this->process_text($value) . '"';
}
}
if(!isset($params['title']))
{
$html .= ' title="' . $this->process_text($params['alt']) . '"';
}
$html .= ' style="border:1px solid black;margin:1px 5px;" />';
Ovviamente, se non volete il bordo, eliminate la stringa "border: 1px solid black", facendo attenzione a rispettare apertura e chiusura dei tags.
Infine, se poi volete variare anche la distanza dell'immagine, operate su "margin", indicando un numero di px differente da quello che ho impostato io.
Ancora, se poi volete attribuire alle immagini delle vostre news, una dimensione fissa: aggiungete dopo "margin:1px 5px", separando con un ; "width:[LA DIMENSIONE PX CHE SCEGLIETE: es. 150px]; height: auto;".
Ricordiamoci però che se scegliete una dimensione fissa delle immagini, poi ogni immagine che posterete sarà di quella dimensione.
Spero sia stato utile!
















































