Static Page eXtended

Major Features

Replace entire static pages
(the_content area only) with erternal files, this is done automatically (no tags required) and you may use the admin interface to manage these files.
Inline includes for external files
These file may include PHP and that PHP will be evaluated in ‘The Loop’
Inline PHP
You may include PHP directly in your article and that php will be evaluated in ‘The Loop’ too. There are however some important rules that must be followed for this to work correctly.
User Level Options
Controll what level users must be to access certain functions.
Manage most options through admin interface.
You can manage just about everything you might need to through the admin interface.
Redirect posts and articles by ID, category or title

This plugin allows you to include stand alone php pages in the place of a static page. You may write all the php you want in the stand alone file, and this script will function within the scope of The Loop. Your page title, comments, etc will also remain intact. However any Page Content will not be shown, as it is replaced by the contents of the stand alone file.

The plugin has a built in admin system for creating, editing, and deleting these stand alone files. Of course you could make the files separatley and upload them too.

You can also do inline includes on any post (blog/static page) using the syntax:
<!–#include file=”(path to your file from wp root)” –>

Downloads

Via Wordpress Plugin Directory

Commenting

Please leave only general comments and trackbacks on this page. If you want to comment on bugs and such comment on the article for the particular release you’re concerned with.

21 Comments

  1. Posted June 11, 2005 at 3:11 am | Permalink

    What would be nice is to know if this is done via the wp-admin and, if so, are there screenshots?

  2. Norm Gregory
    Posted June 11, 2005 at 1:57 pm | Permalink

    There’s a typo:

    hhttp://jp.jixor.com/files/jp-staticpagexb2.zip

  3. Posted June 11, 2005 at 1:58 pm | Permalink

    Yeah, I’m fully of typos today. I think I better stop writing scripts for a while. ;)

  4. Posted June 20, 2005 at 3:16 am | Permalink

    I get this message when I try to load the plugin page from the Admin > Plugin page after activation.
    Can t tell you more than that.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, …………….. and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

  5. Posted June 21, 2005 at 12:01 pm | Permalink

    Thats not really very helpfull. I’ll have a little look for anything obvious but otherwise I can’t do much with such an error message.

  6. Posted June 22, 2005 at 7:40 am | Permalink

    Do you make any call to non-standard php function that may not be installed on the server running my Wordpress?
    This could explain the error.

    Thanks

  7. Posted June 29, 2005 at 2:01 am | Permalink

    I’m getting the following errors when I activate the plugin and try and manage static pages… if I click on the manage link before activating, it displays without errors.

    Warning: ChDir: No such file or directory (errno 2) in /home/rishel/public_html/wp-content/plugins/jp-staticpagex.php on line 58

    Fatal error: Call to undefined function: get_admin_page_title() in /home/rishel/public_html/wp-admin/admin-header.php on line 4

    if I modify line 58 to an absolute path, I still get the second error

  8. Posted June 29, 2005 at 12:32 pm | Permalink

    Yeah I think that I’ll need to sort out a few issues with paths and error checking for the next release. I might make that version 1.

  9. J. Smith
    Posted July 28, 2005 at 1:44 pm | Permalink

    I have my blog installed in a subfolder of my root folder.

    “Create static page x” reloads the page and doesn’t do anything else. Nothing shows up in my staticpages folder. Everything else seemed to go well.

    Suggestions?

  10. Posted September 2, 2005 at 3:53 am | Permalink

    hello

    i am looking for a way to have a link on my blog and when i click the link an already made phpscript will be shown, the phpscript is a linkregister-program that i already have used standalone (www.skrattoliv.com/radlinks)
    also do you know how to skip the links in the right column and instead choice what links to have and show them in the header instead?

  11. Posted September 25, 2005 at 6:38 pm | Permalink

    This is still a fairly buggy beta, however I’ll release version 1.0 fairly soon. It features more options, proper managment and options pages, better error handeling and bugfixes.

  12. Jeff M.
    Posted November 12, 2005 at 6:13 am | Permalink

    I was searching for a long time to be able to convert a site that I do for my local SkiClub into WP and with your plugin I was finally able to get the job done. I had some CGI pages (old EditTag script) that that the guys that do the grooming call up a form and enter in the details of grooming and post the data to a page that the public can view. On the old site the pages had to be seperate pop-up windows, well now with browsers trying to stop pop-ups I had to find a better way. STP finally solved the problem with ease. I have WP include the two external pages, allowing for a nice complete look and feel and still the ease of editing.

  13. Posted October 3, 2008 at 11:02 pm | Permalink

    hi. Thanks for plugin

    perfect.

    Regards

  14. Posted October 15, 2008 at 9:19 am | Permalink

    I am using this plugin. I am using it to include php files in posts. However, I don’t want them to go through all the filters. Especially the one that places or in place of every newline.

    How do I disable that filter?

    I would really appreciate if you could reply to my email hrehus aT gmail . com

  15. Posted October 27, 2008 at 1:32 pm | Permalink

    Any screen shots?

  16. Posted November 2, 2008 at 4:43 pm | Permalink

    Please see the Wordpress plugin Directory listing for screen shots.

  17. Posted January 11, 2009 at 6:39 pm | Permalink

    Hi – just ran into a strange one. I’m working with an older wordpress – 2.1 – and the latest static page extended.

    The strangeness is this: I’ve got one page on which I’d like to include two static pages with inline includes. The *first* one works. Subsequent to that, the only thing you can include on a page is that file – you can include it again and again, but you cannot specify a different file – you just get nothing.

    This ring any bells?

  18. Posted January 11, 2009 at 7:56 pm | Permalink

    Ok – I found it.

    In function jp_staticpages and then within the conditional block with the JPSPX_INLINE_INCLUDES test, the code uses the preg_match() call to ostensibly gather a list of includes on the page. However preg_match() explicitly stops when it finds the first match – the appropriate call is preg_match_all().

    http://us2.php.net/preg_match versus http://us2.php.net/manual/en/function.preg-match-all.php

    Further, the structure returned by preg_match_all is not what the code expects – preg_match_all returns a multidimensional array, so what the code needs to do is to iterate over the elements in $inlinincludes[1][1..N] – the preg_match_all page I linked above describes the structure.

    I’ve made these changes locally and I’m able to include more than one item in a given page/post.

  19. Michale
    Posted February 2, 2009 at 10:46 am | Permalink

    can I get more info about this plugin ? i need him for my site. thank you

  20. Posted May 28, 2009 at 12:41 am | Permalink

    Sorry, I dont quite understand what you want.

  21. Posted September 7, 2009 at 7:10 pm | Permalink

    I wrote some PHP in the created file but it doesn’t seem to update, its left in blank.
    thank you

9 Trackbacks

  1. [...] June 10th, 2005 WordPress Plugin: Static Page eXtended Static Page eXtended allows you to include stand alone php pages in the place of a static page. [...]

  2. [...] lugin WordPress: Multiply Plugin WordPress: Static Page eXtended Static Page eXtended ti permette di includere pagine php stand-alone, invece delle solite pagin [...]

  3. [...] n the place of a static page. You may write all the PHP you want in the stand alone file. Jixor.com – WordPress Plugins » Static Page eXtended

    posted by Stan Shinn on [...]

  4. [...] ltimate Tag Warrior WordPress Plugin: Static Page eXtended   Static Page eXtended可以使独立的php页面输出为静态页面。 [...]

  5. By rishel.org » Blog Archive » So Far, So Good on June 29, 2005 at 2:25 am

    [...] /eatwatch/calendar.html is the current URL, but that might be changing if I can figure out the static page plugin I’m experimenting with. It’s a bit of a pain to get the dat [...]

  6. [...] Static Page eXtended

    Author Stephen Ingram Version 1.1 Plugin Home Visit Author Homepage Visit Download Visit Plugin License N/A Description : Ability [...]

  7. By Thanks for this. on October 31, 2008 at 4:03 pm

    Thanks for this….

    Just what the doctor ordered….

  8. By 4webmasters » Top 1000 WordPress Plugin Authors on December 31, 2008 at 12:05 pm

    [...] Static Page eXtended [...]

  9. [...] Static Page eXtended [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>