Menu

Undefined Wiki Words

2001-07-11
2012-10-11
  • John Sechrest

    John Sechrest - 2001-07-11

    I am working with a wiki and it would be valuable for me to find all the undefined wiki words and put them in a list.

    What would I have to do in order to find all of these wikiwords that have not yet been defined?

     
    • Todd L. Miller

      Todd L. Miller - 2001-07-11

          Hmmm.  If you know PHP, look at the section in portal/htdocs/wiki/InfoBody.ihtml labeled '/* print links from it which lead nowhere */'.  You can put that in a loop over all topic names to get every (the list will probably contain duplicates) undefined WikiWords.  An all-topics loop is used in portal/export.php3, under the line 'if( $response == "[all]" )'.  You'll have to do a little variable renaming, if you copy & paste.  You'll also need to fetch `linksfrom' via the wikiQuery for the $linksfrom variable used later in the InfoBody.ihtml fragment.

          If you don't know PHP, let me know; I'll try to get to it tonight.

      -jQuinn

       
      • Todd L. Miller

        Todd L. Miller - 2001-07-11

            Oh, sh!t.  I misread the email; the above advice is for sfWiki, not phpwiki.

            Sorry!!  My apologies.

        -jQuinn

         
    • Steve Wainstead

      Steve Wainstead - 2001-07-12

      This feature will be in the next version of PhpWiki (http://sourceforge.net/pm/task.php?func=detailtask&project_task_id=25840&group_id=6121&group_project_id=7691).

      thanks for asking!
      ~swain

       
    • Richard Kavanagh

      Take a look at

      http://www.benbun.co.uk/wiki/index.php?pagename=MissingPages

      is this the kind oif thing you are refering to ?.

       
      • Steve Wainstead

        Steve Wainstead - 2001-07-12

        Yes, that's exactly what we're after here.  Did you use the wikilinks table to calculate this page?

        ~swain

         
        • Richard Kavanagh

          Yes I did, if you want the code let me know.

          I would help with the PHPWiki development but I don't know anything about CVS.

           
          • Steve Wainstead

            Steve Wainstead - 2001-07-12

            You can get by with only a handful of commands with CVS. Part of the barrier is learning how a version control system works; and once you've learned one, you've pretty much learned them all since the concepts are the same. I was dismayed by this when I finished college and went to work in the real world; versioning systems are absolutely essential to *any* software project. If one is not in use, there will certainly be disaster.

            Sourceforge has a few simple documents on setting up and using CVS and there are a lot of good web sites to help out:

            http://www.csc.calpoly.edu/~dbutler/tutorials/winter96/cvs/
            http://www.delorie.com/gnu/docs/cvs/cvs_toc.html
            http://cvsbook.red-bean.com/

            In the meantime you could send me files as attachments, if you wouldn't mind.

            cheers!
            ~swain

            ~swain

             

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.