Variables del subs.php

Started by distante, August 21, 2010, 12:09:00 PM

Previous topic - Next topic

distante

Estoy tratando de agregar el título de la pagina y url de imagen a las imágenes creadas con los tags [ img ] como lo hace el mod Seo Image Tag. En Teoria debo agregar esto:
alt="' . $context['page_title_html_safe'] . '-$1"


El asunto es que page_title_html_safe no es un index definido y por consiguiente no lo esta mostrando; también trate con page_title_html_safe pero tampoco esta definido. Alguien sabe cual es la variable que carga o muestra el título de la pagina en el subs.php?

::) una manito..


distante

Por alguna extraña razón se puso (o puse) el texto dentro de unos [img ] xD

ya esta arreglado el post u.u

zutzu

Pro pruebo con la misma variable, y yo no tengo problemas?
mira el adjunto...

Titulo de pagina + dirección de imagen ( no encontrada, lógico)

distante

desde el subs?

a mi no me muestra el título (solo la dirección de la imagen) y el log me bota error de indefined index.

Esto estoy usando


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} border="0" onload="NcodeImageResizer.createOn(this);" class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="' . $context['page_title_html_safe'] . '-$1" border="0" onload="NcodeImageResizer.createOn(this);" class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),


u.u

zutzu

Claro desde el subs.php

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 resized" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',
),
array(
'tag' => 'img',
'type' => 'unparsed_content',
'content' => '<img src="$1" alt="' . $context['page_title_html_safe'] . '-$1" class="bbc_img" />',
'validate' => create_function('&$tag, &$data, $disabled', '
$data = strtr($data, array(\'<br />\' => \'\'));
if (strpos($data, \'http://\') !== 0 && strpos($data, \'https://\') !== 0)
$data = \'http://\' . $data;
'),
'disabled_content' => '($1)',



que extraño que no te funcione  :-\

se lo dejo para los que saben  ;D

distante

Será un conflicto con el nCode de Nibogin?

Advertisement: