WordPress.org

Ready to get started?Download WordPress

Forums

Announcement and vertical scroll news
Modification to allow Announcements to include short (2 posts)

  1. Texiwill
    Member
    Posted 3 years ago #

    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

  2. Texiwill
    Member
    Posted 3 years ago #

    Hello,

    This code change is to gAnnounce/gAnnounce.php

    Best regards,
    Edward

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic