• Hello,

    I modified this plugin to allow the use of shortcodes within Announcements. In this way you make use of the php_shortcode plugin to actually added code for content sensitive announcements.

    57a58,65
    >               // Handle [php]...[/php] shortcodes^M
    >               // do not use apply_filters as it causes issues^M
    >               $gann = do_shortcode($gann);^M
    >               // Strip out What the Sociable plugin adds if at all^M
    >               // $gann=preg_replace('/<div class="sociable">.*/',"",$gann);^M
    > ^M
    >               // Strip out any newlines added by shortcode processing^M
    >               $gann=preg_replace('/\n/','',$gann);^M

    Best regards,
    Edward

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Announcement and vertical scroll news] Modification to allow Announcements to include short’ is closed to new replies.