Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/jackbor/public_html/blog/wp-content/plugins/headmeta.php on line 52

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/jackbor/public_html/blog/wp-content/plugins/headmeta.php on line 52

Static Jack Plugin Just Updated

With the recent release of Word Press 2.0 I decided it was high time to revisit my first plugin: Static Jack.

Not only did I rewrite and update the code for Static Jack, and fix a few bugs, but I came up with an idea for an all-new plugin that I call “Safe Include”.

I also discovered that, unlike WP version 1.5+, WP 2.0+ plays VERY nice with Static Jack. It’s practically tailor made for it. I’ve tested it with several themes and haven’t seen any breakage yet.

If you enjoy any of my plugins, please

  1. Link back to my site with a short blurb or post
  2. Signup for my mailing list where I’ll notify you of several projects I have in the pipeline, and keep you up to speed with any of the plugins I have for Word Press

Your Name:

Your E-mail Address:

Download “Static Jack” plugin here

11 Responses to “ Static Jack Plugin Just Updated”

  1. win says:

    i’m using ur brilliant plugin,

    what if i want to send a value from a single post to the static page.

    eg:
    i want to past the post_id value from a post, so in single post page (in the loop), i write:

    $pid = $post->ID;

    then i make a link to the static page and retrieve that value in it..

    i write my hyperlink like this:

    href=”/

  2. win says:

    cont..

    (home)/staticpage.php?pid=$pid”

  3. Administrator says:

    I haven’t tried this, but you might be able to access the variable through just $pid in the static file. If not, then I’d try $post->ID.

    < ?php
    //static file
    echo $pid .' is pid
    ‘;
    echo $post->ID.’ is post id
    ‘;
    ?>

    Play around with it.

  4. win says:

    so, i don’t have to put the ?pid=$pid in the hyperlink, right?

    coz earlier, when i did that, the static page could not be found.

    the page can only be found if it is (home)/static/ or (home)/static

  5. Arne says:

    Hi,

    did you notice that all static pages will return a 404 Not Found header? Maybe thats because you’re using the 404_template hook.

    Arne

  6. Dave says:

    Using your plugin and this syntax works for providing GET variables on the URL:
    http://www.site.com/staticpage.php?var=2

    But I can’t get this to work and it seems like it should given I use similar syntax for my wordpress index.php to get categories:
    http://www.site.com/staticpage/?var=2

  7. Dave says:

    Looks like $_SERVER[’PHP_SELF’] returns index.php not my static page. Any help on this?

  8. Administrator says:

    Dave,
    It appears you’re trying to use the plugin without .htaccess on or without using SEF urls. Please see the documentation for instructions on how to use this.

  9. alby says:

    I insert my page1.htm inner folder static;
    but if I want create a link in the site what are the solutions?

    I have create a blogroll link:
    with all the url http://localhost/mysite/pag1.htm,
    is the only solution?

    other:
    if the page have image I not see.

  10. Administrator says:

    alby,
    This is an error in your html, not the code.
    Try src=”/dir/path/to/image.gif”

    Emphasis on leading slash.

  11. Marty says:

    Would I be able to use this plugin to include a shopping cart inside my blog?

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Calendar

January 2006
M T W T F S S
« Jun   Mar »
 1
2345678
9101112131415
16171819202122
23242526272829
3031