Support » Plugins » NextGen-Gallery: Remove <p> from singlepic

  • Resolved mariostella

    (@mariostella)


    Hello

    Version 0.96 of Next Gen had solved this issue, but version 0.91.1 has it again

    I have identified the problem in the nggfunction.php file in the following string from version 0.96:

    $search = "@(?:)*\s*\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]\s*(?:
    )*@i"

    While version 0.91.1 is :
    $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]@i";

    I of course tried switching one with th eother but I get an error. What should I do??

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mariostella

    (@mariostella)

    Sorry, made a mistake..in version 0.91.1 the string is

    $search = "@(?:<p>)*\s*\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]\s*(?:</p>)*@i";

    Sorry version 0.99.1 did not remove the p tag

    $search = "@\[singlepic=(\d+)(|,\d+|,)(|,\d+|,)(|,watermark|,web20|,)(|,right|,center|,left|,)\]@i";
    Thread Starter mariostella

    (@mariostella)

    Yes, sorry I mixed up the strings (and the version name) again…
    Do you mean there is no way of removing the p tag from version 0.99.1 ?
    Can I customize the string from 0.96 to work for version 0.99.1?
    Thanks

    You can add the string from 0.96, normally no problem. Why do you need to remove the P tags ?

    Thread Starter mariostella

    (@mariostella)

    This is very weird. I did try substituting it previously and it gave me error (maybe I put an unneeded space) but now it works! Great!
    I need to eliminate the <p> because it screws up all my template
    Thanks!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘NextGen-Gallery: Remove <p> from singlepic’ is closed to new replies.