News Plugin: p tags

boringmachine / 2009-11-09 19:41:05   

Hello, there. First-time poster.

I haven't had much trouble customising Indexhibit. More like a learning curve for me.

However the News plugin renders an opening and closing

tag that I wish to remove. They don't seem to be in the plugin's index.php file. Check the source code of news section of the following site to see what I mean:

http://echodivine.com/news/

I want to use proper header tags, but those

tags are in the way. Where are they?

boringmachine / 2009-11-09 19:44:52   

Oh dear.  I forgot to enclose the p tag in code tags.  Wherever you see the word "tag" or "tags", p 
goes afterwards.

boringmachine / 2009-11-10 20:59:26   

No ideas...?

The News section of this site has h2 tags for the title of each entry. It's what I'd like to be able to do.

schjetne / 2009-11-10 21:12:08   

I've never really worked with Indexhibit but if this is the "SimpleNews" plugin you're talking about it looks very much like you need to remove the tags in the file called "plugin.simple_news.php" in your plugins folder. Doesn't look like there's any "index.php" file for the plugin.

Vaska A / 2009-11-10 21:13:20   

Honestly, I know about this bug...and I can't remember how I ever dealt with it. Maybe I made a regex and stripped it out...but that seems kind of odd as well.

schjetne / 2009-11-10 21:14:39   

Shit, nevermind, I just saw the $page['content'] line. Have you tried playing with the preg_replace in there?

schjetne / 2009-11-10 21:15:42   

Right:

// silly bug where text processing add paragraph tags about <plug:.../>

So just download a new version of the plugin and use that?

Vaska A / 2009-11-10 21:17:59   

Turn off text processing for that page! Ahh...maybe...no...don't think that will do it either...strange...

Vaska A / 2009-11-10 21:20:45   

Yeah...aside from when I created this thing...it's the first time I can remember this complaint. You aren't using the newest version of the plugin?

  1. ¬†¬†¬†¬†// silly bug where text processing add paragraph tags about <plug:.../>
  2. ¬†¬†¬†¬†$s = preg_replace(array('/^<p>/i', '/</p>$/i'), array('', ''), trim($s));

Should take care of things.

boringmachine / 2009-11-10 21:23:16   

@schjetne: Yes, my plugin version (which I downloaded a few days ago) has that bit of code, but still... :/

@Vaska: You're right, turning text processing off doesn't do it either. Don't sweat it, it doesn't matter really. :)

Vaska A / 2009-11-10 21:25:14   

Do you know which version of PHP your server is running?

boringmachine / 2009-11-10 21:26:49   

PHP version is 5.2.11

This thread has been closed, thank you.