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
- Link back to my site with a short blurb or post
- 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
11 Responses to “ Static Jack Plugin Just Updated”
Leave a Reply
Syndicate
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jun | Mar » | |||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | |||||
Categories
- Customer Service (1)
- Entrepreneurs (1)
- Marketing (3)
- Programming (9)
- Web Design (1)
- WordPress (5)




win says:
February 15th, 2006 at 11:50 pm
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=”/
win says:
February 16th, 2006 at 12:08 am
cont..
(home)/staticpage.php?pid=$pid”
Administrator says:
February 16th, 2006 at 11:44 pm
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.
win says:
February 17th, 2006 at 6:39 am
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
Arne says:
May 7th, 2006 at 2:14 pm
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
Dave says:
May 31st, 2006 at 12:20 pm
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
Dave says:
May 31st, 2006 at 12:37 pm
Looks like $_SERVER[’PHP_SELF’] returns index.php not my static page. Any help on this?
Administrator says:
June 5th, 2006 at 9:28 am
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.
alby says:
June 7th, 2006 at 11:21 am
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.
Administrator says:
June 8th, 2006 at 7:59 am
alby,
This is an error in your html, not the code.
Try src=”/dir/path/to/image.gif”
Emphasis on leading slash.
Marty says:
June 16th, 2006 at 4:41 pm
Would I be able to use this plugin to include a shopping cart inside my blog?