help with wordpress bb coding

Status
Not open for further replies.

sumitims

Active Member
1,437
2010
491
0
http://freelinkz.info this is my wordpress .

example:


if i use

[URL =http://img133.imagevenue.com/img.php?image=16154_012_1308313766_122_458lo.jpg][IMG ]http://img133.imagevenue.com/loc458/th_16154_012_1308313766_122_458lo.jpg[/IMG][/URL]

code it do not display the image on thumbnail in main page .but if i just pput this
th_16146_12_122_866lo.jpg
it displays


there are bb code for and [url] in bbcodes plugin

add_shortcode( 'url' , array(&$this, 'shortcode_url') );
add_shortcode( 'img' , array(&$this, 'shortcode_image') );


which are defined as

// Italics shortcode
function shortcode_url( $atts = array(), $content = NULL ) {
$atts = $this->attributefix( $atts );

// [URL="http://www.google.com/"]Google[/URL]
if ( isset($atts[0]) ) {
$url = $atts[0];
$text = $content;
}
// [URL]http://www.google.com/[/URL]
else {
$url = $text = $content;
}

if ( empty($url) ) return '';
if ( empty($text) ) $text = $url;

return '<a href="' . $url . '">' . do_shortcode( $text ) . '</a>';
}

and

// Italics shortcode
function shortcode_image( $atts = array(), $content = NULL ) {
if ( NULL === $content ) return '';

return '<img src="' . $content . '" alt="" />';
}


if these to functions some how joined then [url][img] bb code will work. so can someone...zimg it do not display thumbnail on homepage
 
Last edited:
6 comments
i have already put the bb code plugin but this thing is not working


bz bb code plugin has no such function for [img] thats why it not working it has seperate codes for just url and img
 
Status
Not open for further replies.
Back
Top