[buddypress-trac] [BuddyPress] #1951: Bug: Shortcodes doesn't work

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Feb 15 10:37:09 UTC 2010


#1951: Bug: Shortcodes doesn't work
--------------------------------+-------------------------------------------
Reporter:  _DorsVenabili        |       Owner:     
    Type:  defect               |      Status:  new
Priority:  major                |   Milestone:  1.2
Keywords:  shortcode code post  |  
--------------------------------+-------------------------------------------
 I have the last trunk version of BP and I have a function in functions.php
 like this:

 //Google Maps Shortcode
 function fn_googleMaps($atts, $content = null) {
    extract(shortcode_atts(array(
           "width" => '640',
           "height" => '480',
           "src" => ''
    ), $atts));
    return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0"
 scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'"></iframe>';
 }
 add_shortcode("googlemap", "fn_googleMaps");

 The problem is that using the last trunk version my googlemaps shortcodes
 worked, but not now with the last BP trunk version of today, in other
 words, it must to show a google map when somebody write: [googlemap
 src="http://www.example.com"]. It's very important to use the shortcodes
 when you don't want your BP users can write code in their posts.

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1951>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list