WordPress.org

Ready to get started?Download WordPress

Forums

Wiki-Links Hack, version 1.1 (7 posts)

  1. snej
    Member
    Posted 10 years ago #

    I've improved my wiki-links hack by implementing the other half of standard wiki-link functionality: if there isn't already a post/page with the given name, the name will be displayed as normal text (not a link), but there will be a "[?]" marker after it. Clicking the marker takes you to the new-post form. The marker will only be displayed if the user has permission to post, so casual viewers won't see any clutter; they won't even know the potential wiki-link.
    I also fixed a bug in the main regular expression, and added the necessary boilerplate to make this work as a plug-in in WordPress 1.2.

  2. anatman
    Member
    Posted 10 years ago #

    Hi snej,
    I went to your site to copy the code, but the .txt file you linked to shows up in the browser without line breaks (and of course i wouldn't know where to put them all). Maybe if you save it as a .phps it would show up ok?
    Thanks,
    Eduardo

  3. OperaManiac
    Member
    Posted 10 years ago #

    anatman, using IE?

  4. snej
    Member
    Posted 10 years ago #

    anatman: Funny, same thing happens to me now, while it didn't before with the old version -- I think the server has decided it's a different MIME type now.
    In any case, view the page and then use the View Source command to see the raw form. I'll try .phps soon; is that a standard extension for representing PHP source?

  5. carthik
    Member
    Posted 10 years ago #

    snej: It's not a standard, but one gets to know that it's the source of a php file, and it prevents the file from being processed as a php file.

  6. anatman
    Member
    Posted 10 years ago #

    Thank you, "view source" did it. Sushubh, i am using Safari 1.2 (v 125).

  7. OperaManiac
    Member
    Posted 10 years ago #

    it showed me fine in opera and firefox... ie showed it like a mess :O(

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.