WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN-FlashViewer
Changes to not strip HTML tags for Autoviewer (1 post)

  1. webleo
    Member
    Posted 3 years ago #

    Hi,
    First thanks for an awesome plug-in.

    I have a change to the plug-in to suggest - I wanted to use HTML tags in the captions, as Autoviewer allows, but NextGEN-FlashViewer strips those.

    I made the following change in autoviewer.php, line 52:

    echo '<caption><![CDATA['.strip_tags(nggflash::internationalize($picture->description)).']]></caption>';

    Changed to:

    echo "<caption><![CDATA[".stripslashes(nggflash::internationalize($picture->description))."]]></caption>";

    I removed "strip_tags", (curious to know why you put it there originally) and since the tags are saved by NGG in the database as escaped strings (<a href=\"demo.php\">) I needed to add "stripslashes".

    Why not make it a permanent change in the plug-in?

    Thanks again!

    http://wordpress.org/extend/plugins/nextgen-flashviewer/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by webleo
  • This topic is not a support question
  • WordPress version: 3.0.4