Menu

Plugin Possibility?

Help
ben wirth
2006-04-15
2012-10-11
  • ben wirth

    ben wirth - 2006-04-15

    I'm wondering whether or not a plugin I need to make for my wiki is even feasible. I want to have pages whose name is a date (ie http://blah.com/wiki/1999-04-05/) query another table that I've created, grab data from it, and display it alongside the Wiki article. Are these things possible to do?

    The way I was thinking that this could be done would be to do a regexp function on the date to see if it is a valid date for checking against my other table, then just have a plugin like <?plugin OtherTable date=$date ?> then make my run() function do all the work.

    Good idea/bad idea? Is it possible? Any other suggestions?

     
    • ben wirth

      ben wirth - 2006-04-16

      Also, I'm getting this error from my plugin:

      lib/plugin/Setlist.php (In template 'body' < 'html'):75: Notice: Undefined offset: 9 (...repeated 3 times)

      What does this mean?

       
    • Reini Urban

      Reini Urban - 2006-04-15

      Sure, very easy to do.

       
    • ben wirth

      ben wirth - 2006-04-16

      Hey, I got the plugin basically working, but I want my plugin to return html tags. Instead, it returns it in the blog post with unformatted text with the html tags appearing, but not being parsed.

      How can I have it display that as formatted html and not text-based html tags?

      In my config.ini, I have ENABLE_RAW_HTML = true, ENABLE_RAW_HTML_LOCKEDONLY = false, and ENABLE_RAW_HTML_SAFE = true, but still no luck.

      Also, can you define which html tags are "safe" ? Thanks in advance.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.