InScript

download

Download InScript 1.7.3

151.97 KB - WP 1.5-2.5
Updated March 7, 2009.

InScript is an extensible scripting framework that provides the capability to insert and modify data without needing to modify any WordPress files.

At the simplest level, it is a generic pattern matcher - it searches for specific patterns, or tags, and replaces them with something else. However, instead of replacing these patterns with static text, you can replace them with variables, functions, and even PHP code.

Some of the features that InScript provides are:

  • Dynamic variables, which can be used in many places and are automatically updated (the version and last updated details above are dynamic variables)
  • Disable WordPress texturize functions across the whole blog, individual posts, or even individual words
  • Conversely, enable texturize, textile, markdown, or any formatting on individual posts or words
  • Embed well-defined scripts inside posts and any other part of WordPress, without modifying the theme

The embedded scripts are very powerful, and allow you to do things like:

  • Insert post & author information
  • Add HTTP meta-values and make them post-specific
  • Customise the appearance of words, paragraphs, or posts
  • Change date formats on individual sections
  • Insert highlighted code
  • Insert custom PHP code
  • Add custom stylesheets for specific posts

Because of the extensible nature of the plugin, you can add 'scriptlets' (mini-plugins) that provide extra features and yet use the same InScript framework.

Here are the current scriptlets:

  • rss-link-list.zip - embed RSS feeds in conjunction with the rssLinkList plugin (which must be installed and enabled)
  • pinyin-converter.zip - Pinyin converter allows Chinese pinyin to be inserted in the form zhong1guo2 and converted to the correct tonal version of %%lang_pinyin [text=zhong1guo2]%%

Note: install scriptlets into the /wp-content/plugins/inscript/scripts directory.

No really, what does it do?

The best way to explain what InScript does is by providing examples. Note that these examples are provided 'live' by InScript.

Example 1 - Code highlighting

Often you want to highlight some code within a post. This creates several problems:

  • Code uses special characters that interfere with HTML
  • WordPress mangles a lot of the characters
  • It's a chore to color the code by hand

We can insert an InScript tag to do all this for us.

%%format_highlight [file=/wp-feed.php] [wp=off]%%

And this produces:

%%format_highlight [file=/wp-feed.php] [wp=off]%%

Example 2 - Blog title & description

Notice anything special about the title of this page? No? Okay, go and look at it again. Yes, that's right, it's different from the rest of the blog. This is because of these two custom fields:

inscript_option_blogdescription = Now with added plugin goodness!
inscript_option_blogname = SuburbanGiraffe

More fun

Of course, all of these are simplistic examples. Separate plugins already exist to achieve many of the functions described here. The point is that InScript gives you the ability to perform these functions anywhere in your blog, using just one syntax and one plugin. Additionally, you can customise the output exactly as you want, using a wider range of functions. You can cook up all sorts of madness - now, who's for colour-highlighted code in their title?

Before I finish, here are some more live functions:

  • Word shuffle - %%str_shuffle [text=my old man is a dustman and he likes giraffes]%%
  • Reverse - %%str_reverse [text=hello world and welcome to my plugin]%%
  • Rot13 - %%str_rot13 [text=hello world and welcome to my plugin]%%
  • Leet - %%str_leet [text=hello world and welcome to my plugin]%%
  • Email obsfucator - %%str_obscure_email [email=test.email@example.com]%%
  • System info - %%system_os%% %%system_release%% %%system_version%% %%system_machine%%
  • Time since - this page was created (as opposed to %%post_date%%)
  • PHP version - %%php_version%%
  • HTTP agent - your browser is %%http_agent%%
  • WordPress version - %%blog_version%%

And here's the WordPress calendar function embedded into a post:

%%wp_getcalendar%%

Comments (page 1 of 2)

Page: 1 2
  1. David Collantes :

    Jun 9, 2005 10:23 am |

    Amazing! Pretty powerful and useful. Will use. Thanks so much for creating it.

  2. Chris :

    Jun 14, 2005 10:26 am |

    Could this plugin be used to display an RSS feed on a post or page?

  3. Chad :

    Jun 14, 2005 3:00 pm |

    How does this play with WP-Cache (or does it)? Most other dynamic-inline plugins I've seen don't play nicely with it.

  4. John( author ) :

    Jun 15, 2005 8:23 am |

    Chris: Yes it could. I was intending to include a little scriptlet to do just that, with the intention of being able to display RSS/Flickr feeds. I didn't have the time to include it previously, but it is next on the list of things to do - watch this space!

    Chad: I've not tried it with WP-Cache as I couldn't get it to work on my install. However, I see no reason why it shouldn't work. The only problem is that the results of InScript will be frozen at the moment the cache is taken. This may or may not be useful.

  5. Chris :

    Jun 15, 2005 11:17 am |

    John,

    I was wanting to execute this plugin: http://rawlinson.us/blog/?p=212

    On certain posts and pages. Your plugin seems very powerful and I wasn't sure if this would be something that your plugin could execute or not.

  6. John( author ) :

    Jun 16, 2005 3:23 pm |

    I've added the RSS Link List scriptlet to allow the use of the rssLinkList plugin with InScript - put it in the 'wp-content/plugins/inscript/scripts' directory. Note that the rssLinkList plugin must be installed and enabled, and the arguments are exactly the same as for the plugin. For example,

    %%rsslinklist [rss_feed_url=http://someplace.com/feed.xml] [num_items=3]%%

  7. Johan :

    Jun 17, 2005 1:34 pm |

    I don't quite get how this replaces the HeadSpace Plugin. I have inserted the metatags for all my posts and pages using head_description and head_keywords and I am a little bit afraid of losing all this work...

    Because I already am using another plugin to enable the use of PHP in posts, I am very interested in subsituting this plugin and the headspace plugin with the Inscript plugin.

    Can I safely disable the headspace plugin and install the Inscript plugin without losing the metatags I created?

  8. Chris :

    Jun 19, 2005 11:17 am |

    John,

    Sweet work on the scriptlet. Unfortunatley though, I get this error when trying to incorporated it into a page:

    http://www.thespiderbox.com/test/

    Your scriptlet is installed as you noted and the rssLinkList plugin (0.8.x) is installed and activated. Any thoughts?

  9. Chris :

    Jun 19, 2005 8:20 pm |

    John,

    I think I have found the problem. Your scriptlet calls the function "rssLink", not "rssLinkList". Therefore, this should read:

    '%%rsslinklist [rss_feed_url=http://someplace.com/feed.xml] [num_items=3]%%'

    Excellent plugin though! :) Thanks for being part of the community!

  10. Chris :

    Jun 19, 2005 8:21 pm |

    Oops...

    I meant: "Therefore, this should read:

    %%rsslink [rss_feed_url=http://someplace.com/feed.xml] [num_items=3]%%"

  11. Alderete :

    Jun 22, 2005 12:53 am |

    I'm having a small problem with global keywords. It seems that when I add them, they get escaped. This is mostly happening on quotation marks. And, when I Update Options again, it gets escaped again, leading to stuff like: \\\" in the fields.

    Once escaped, it seems to be fouling up the evaluation of the commands. So instead of being able to add e.g. meta keywords to my wp_head, it is just dumping the raw text of the global keyword field.

    This would be OK, I could just put the raw meta tag there, but *that* gets escaped, too, so it's invalid.

    I am using WordPress 1.5.1.2 with MySQL 3.23.49 and PHP 4.3.10.

    Anything else I should include to track this down, e.g., php.ini settings and such?

    Thanks!

  12. John( author ) :

    Jun 23, 2005 3:31 am |

    Ok, found that the problem was caused by the PHP configuration setting 'magic_quotes_gpc' - if this was set then PHP would automatically escape all quotes, and InScript would then escape them again. This has been fixed and version 1.1 released.

  13. John( author ) :

    Jun 17, 2005 3:02 pm |

    Johan: Yes, absolutley - InScript will not delete or change any other custom fields. You can disable HeadSpace, play around with InScript, and then re-enable HeadSpace and still have all your HeadSpace meta data.

  14. Andreas :

    Jun 27, 2005 4:04 pm |

    This is amazing... Great work! =)

  15. Geoff :

    Jul 1, 2005 2:07 pm |

    An incredible plugin, John. Great work.

  16. Rob :

    Jul 3, 2005 5:51 am |

    I get the following error when I enable Inscript, ([full path] removed for brevity)

    Fatal error: Call to undefined function: get_filters() in [full path]/wp-content/plugins/inscript.php on line 384

    This happens on every page, I have to rename the inscript plugin file to get my site back. I've chmodded the inscript directory to 777 but no luck so far.

    Any ideas what's going on?

  17. John( author ) :

    Jul 3, 2005 6:15 am |

    Hmm, very strange - a stupid typing error that should have broken it on my own website, but somehow slipped through.

    Anyway, version 1.4 fixes the problem. Thanks for the info, Rob!

  18. Rob :

    Jul 5, 2005 11:52 am |

    Worked for me! Great stuff!

  19. Another John :

    Jul 8, 2005 2:28 pm |

    Ok, I'm stumped. I still don't understand how "Example 1." is generated rvrn after reading through all the documentation. Please enlighten me. Step by step if possible, since I have limited brain capacity. Thanks!

  20. N. Mallory :

    Jul 8, 2005 7:04 pm |

    Hi!

    This looks fabu and it looks like just what I was looking for, I think... ;)

    I want to drop my adsense code placed in a div into the_content() of every post. I think that means I would use a global variable, but I'm not sure what it would be and I'm not even sure that's really possible. Please help. :)

    TIA!

  21. John( author ) :

    Jul 9, 2005 6:25 am |

    John:

    Think of the Inscript tags just like any other HTML tags. For example, if you wanted to make some text bold in HTML, you would wrap the text inside the <strong> tag: <strong>text</strong>

    The same applies for Inscript. In the case of example 1, the text is wrapped inside an inscript tag, with the function changing from Textile to Markdown.

    This calls the function 'echo' and turns off the default WordPress texturizing:
    <inscript func="echo" text="%1" wp="off">
    text
    </inscript>

    This applies the function 'format_textile' to the text, while also turning off the default texturizing:

    <inscript func="format_textile" text="%1" wp="off">
    text
    </inscript>

    This applies Markdown to the text, while also turning of the texturizing:

    <inscript func="format_markdown" text="%1" wp="off">
    text
    </inscript>

    Note the use of the special %1. This is replaced by whatever is inside the body of the inscript tag. In the examples above, that would be 'text'.

    Hope that helps.

  22. John( author ) :

    Jul 9, 2005 6:36 am |

    N. Mallory:

    Yes, you should be able to do that using a global keyword. From the Inscript options page, create a new global keyword called 'the_content' and set it to something like this:

    %%echo [text=%2]%%<div>the code for adsense</div>

    The first part is a little bit of inscript to 'echo' the content (very important!), and then the rest is your adsense code.

    Let me know if that does the trick. It may actually make an interesting candidate for an inscript function

  23. N. Mallory :

    Jul 9, 2005 8:17 am |

    OK Well, that does not work very well with the_excerpt_reloaded() which is what I use on my main page...and it didn't appear to do anything on the actual post pages. The code is showing up outside of the_content formatting and I'd like it to appear just inside the first ''.

    So, I guess what I'm trying to do is prepend the code to the beginning of the post before the format filters have their way...but I still want the formatting too.

  24. Another John :

    Jul 24, 2005 6:31 am |

    John, thanks for the info, but right after I posted the comment my brain kicked in and I managed to work things out.

    Thanks for the great plugin!

  25. Chris :

    Aug 17, 2005 10:57 am |

    John,

    I have downloaded your InScript plugin with the rssLinkList scriptlet and I cannot seem to get it to work. I have installed the seperate rssLinkList plugin from rawlinson.us, but as you can see, it doesn't work:

    http://www.uberwerks.org/test/

    Any thoughts? Thank you.

  26. John( author ) :

    Aug 17, 2005 12:30 pm |

    Hi Chris,

    It doesn't look like InScript is enabled for that page. Check that the plugin is activated and that in the InScript options you have hooked the filter 'the_content'. If these are both ok then try a really simple InScript command like:

    %%php_version%%

    If you get a version number then InScript is enabled and there's some problem with the rsslinklist command in the post. If you just see %%php_version%% then InScript isn't enabled.

    Let me know how it goes.

  27. Chris :

    Aug 17, 2005 8:11 pm |

    Okay, I enabled the "hook" and how, I get this:

    http://www.uberwerks.org/test/

    I'm using this as the code:

    '%%_rssLinkList [rss_feed_url=http://news.com.com/2547-1_3-0-5.xml] [num_items=3]%%'

    I've also tried this:

    '%%rssLinkList [rss_feed_url=http://news.com.com/2547-1_3-0-5.xml] [num_items=3]%%'

    I'm not sure what else to do. The rssLinkList plugin is activated?! He has version 0.9 out, do you think your scriptlet needs updating or am I just doing something wrong?

  28. John( author ) :

    Aug 18, 2005 11:24 am |

    Try %%rsslink [rss_feed_url=http://news.com.com/2547-1_3-0-5.xml] [num_items=3]%%

    I hadn't realized there are no docs for the function!

  29. Chris :

    Aug 18, 2005 12:19 pm |

    Works like a champ!!! Thanks John.

  30. emilio :

    Aug 23, 2005 7:25 pm |

    Hello. First of all I should say that your plugin is great!! Thank you for creating it. I am starting to use it in my weblog. It's a powerful tool.
    In second instance, I think I have found one typing error in the post.php file, line 134 in the function "post_coment"
    this is:

    return inscript_post_helpoer ("content", $args);

    I tried to use that function, then I found the error and I "fixed" it. But my blog crashes with message:

    Fatal error: Cannot redeclare inscript_post_get() (previously declared in /home/emilio/public_html/wordpress/wp-content/plugins/inscript/post.php.ori:3) in /home/emilio/public_html/wordpress/wp-content/plugins/inscript/post.php~ on line 3
    Fortunately I had a recent backup, and reinstalled inscript. Everything is right now.
    It is a little error, but the consequences ... :-)
    Thank you again
    PD: My english is not good. Well you saw it!

  31. emilio :

    Aug 23, 2005 8:42 pm |

    Sorry, but the problem persist. I can't use post_coment function. When I fixed the wrong word "helpoer" for "helper" my weblog crashes again whit the same message:
    Fatal error: Cannot redeclare inscript_post_get() (previously declared in /home/emilio/public_html/wordpress/wp-content/plugins/inscript/post.php:3) in /home/emilio/public_html/wordpress/wp-content/plugins/inscript/post.php~ on line 3
    I have had than replace inscript directory with the new one from the zip.
    Then my blog comes to live again. The anothers tags from inscript that I have used work good. How can I fix the problem?
    Thank you

  32. John( author ) :

    Aug 24, 2005 10:52 am |

    Now fixed in 1.6! You solution was correct, and the error was just caused because you had a backup file in the directory which redefined the same functions as the original.

  33. Ismaelj :

    Aug 31, 2005 4:49 pm |

    When using formating declared like

    ...

    it worls OK... as long as you don't declare it again! I mean you can't format_geshi more than once, at least in my installation. I looked at your code and found a solution: in formatting.php, line 43, replace

    include (dirname (__FILE__).DIRECTORY_SEPARATOR."geshi/geshi.php");

    for

    include_once (dirname (__FILE__).DIRECTORY_SEPARATOR."geshi/geshi.php");

    and everithing works right now!

    Keep on making it better!

  34. damselfly :

    Sep 24, 2005 3:19 am |

    Hi John, sorry to contact you when you're enjoying Oslo. Just wanted to let you know InScript doesn't seem to play nice with a couple of my other plugins -- in particular it seems to have a strange effect on Miniblog - it seems to interfere with the way the miniblog entries are called. Also (more worryingly), my blog started sending comment notifications to the wrong email address. So I've uninstalled for the time being. Any ideas on what might be going wrong (when you have time)?

  35. John( author ) :

    Oct 3, 2005 11:24 am |

    Could you send me an example of the strange effect?

    It may sound a stupid question, but did you hook the comment notification message? There's no way for Inscript to hook things unless told to do so, and so it shouldnt be possible for it to be causing wierd things like sending emails to random people.

  36. jon :

    Oct 24, 2005 9:26 am |

    hi john,

    inscript looks pretty powerful! i'm not sure if it will help me do what i initially looked into it for though? i'd like to take my vbulletin forum login and insert it onto my wordpress page (which i think is possible even without inscript) and then if the vb user is logged in use inscript to automatically insert their vb username into the comment form's name field (as a hidden value); if a vb user is not logged in then it would just show "guest" in the comment form's name field. this way if they log into the forums they are simultaneously logged into the wordpress commenting system as well. hope that makes sense! (and moreso, hope it's possible!)

    thanks

  37. Martin Ralya :

    Oct 25, 2005 11:15 am |

    I've been trying to show AdSense blocks in my posts, and I'd like to do so without shutting off autop and texturize for the whole site. So far, no other plugin has worked for me (including adsense.php and Adsense Deluze) -- InScript looks like what I need.

    Except that it doesn't work for me either. ;) I think I must be doing something wrong. Here's what I'm doing:

    1. I've turned on "hook to post content."
    2. Where I want an ad, I've inserted a short function for google_adsense, and plugged in my code.

    When I save the post, the ad doesn't display. If I view the source, I find it in there -- but it still has the br tags that WP has automatically inserted, even though the google_adsense function should be skipping those. Even if I manually add a 'wp="off"' to the function, it still doesn't work.

    What am I missing? (And thanks in advance for your help!)

  38. John( author ) :

    Oct 25, 2005 11:46 am |

    Jon: I'm not sure I understand you correctly - you want it so that when you log into vbulletin, you are also logged into WordPress? If this is the case then you'll need to do it from within vbulletin itself, and 'chain' the login to WordPress. You should never trust the data being sent back to you as it is very easy to fake, and this includes any hidden values.

  39. John( author ) :

    Oct 25, 2005 11:52 am |

    Martin: Are other Inscript functions working correctly? For example, if you enter %%system%% into the post does it display some details about your webhost, or %%system%%? If that is working correctly then can you send me the text from your post? (the text stored inside WordPress, not the text that is displayed)

  40. jon :

    Oct 25, 2005 12:13 pm |

    john: thanks for the response, and the advice!

  41. Martin Ralya :

    Oct 25, 2005 12:28 pm |

    John: %%system%% worked just fine. It sounded like you'd prefer an email to another comment, so I've gone that route. Thanks for getting back to me so quickly! :)

  42. Martin Ralya :

    Oct 26, 2005 1:04 pm |

    Did you get my email, John? (I sent it via your contact form.)

  43. Asagai :

    Oct 31, 2005 6:33 am |

    Been looking for somthing like this for a while, going to go fire up my blog and give it a test run immediately..

    Thanks

  44. Jeena Paradies :

    Nov 1, 2005 5:12 am |

    Hi,

    I'm trying to install your plugin on my WordPress installation because it seems the perfect way to turn off WordPress' textuize functions in a single page, where I want to post some Google Maps sourcecode within WordPress.

    I've downloaded it, unzipped and uploaded into my plugin directory on the server. I've activated it in the plugins section within the admin interface on my WordPress blog. I've made a new page and postet %%php_version%% on it. I opened this page in my browser and see a page with the text %%php_version%% and not the PHP versionnumber. What did I wrong? Can you help me? I've read the manual three times but couldn't find a solution.

  45. Jeena Paradies :

    Nov 1, 2005 1:08 pm |

    Yea I got it working. My PHP was compiled with --disable-ctype so I had to workaround this. I added this two functions on the top of the plugin (after the licence text):


    // enable the ctype_al$something() functions if they are disabled
    if(!function_exists('ctype_alpha')){ function ctype_alpha($sring){ return !preg_match('([^a-zA-Z])', $string); } }
    if(!function_exists('ctype_alnum')){ function ctype_alnum($sring){ return !preg_match('([^a-zA-Z0-9])', $string); } }

    And now it works perfectly! Thanks for this great plugin!

  46. John( author ) :

    Nov 1, 2005 1:41 pm |

    Martin: The best way to use google_adsense is to create an InScript variable that contains all of your AdSense code. So, for example, you could create a variable called 'google_code'. Then in your post you can insert: %%google_adsense [code=!!google_code!!]%% (the !! indicates it is an InScript variable).

    This menthod ensures that WordPress does not try to reformat your code before it is saved, and before InScript even has chance to look at it.

  47. John( author ) :

    Nov 1, 2005 1:45 pm |

    Thanks for the tip Jeena, I'll include that in the next version so no one else experiences the problem. It's bizarre that someone would purposefully disable ctype functions on a webhost!

  48. Martin Ralya :

    Nov 1, 2005 2:07 pm |

    John: Thanks for getting back to me -- I'll give that a shot. :)

  49. Jeena Paradies :

    Nov 2, 2005 2:50 am |

    John, it seems to be the default setting on gentoos PHP >= 4.4 duno why. I've changed a little bit the behaviour, I think this version makes more sense:


    // enable the ctype_al[somethin]() functions if they are disabled
    if(!function_exists('ctype_alpha')){
    function ctype_alpha($string){
    return preg_match('/^[a-z]*$/i', $string);
    }
    }
    if(!function_exists('ctype_alnum')){
    function ctype_alnum($string){
    return preg_match('/^[a-z0-9]*$/i', $string);
    }
    }

  50. John( author ) :

    Nov 3, 2005 7:28 am |

    I've included your changes into InScript 1.7. Thanks!

  51. Alex :

    Nov 10, 2005 1:33 pm |

    I am a big fan of your headspace plug-in not only for its functionality but also it's ease of use. I have installed the InScript plug-in and am having a very hard time getting the headspace equivalents of "head_keywords" and "head_description" to work. I've tested the InScript plug-in and made sure it works. I was able to implement Example 4 of the documentation after adding more Hooks. Is there a hook that I'm missing that isn't listed in the codex? I think a lot of people who would like to shift from HeadSpace to InScript could use an example of how to make a smooth transition.

  52. John( author ) :

    Nov 11, 2005 1:56 am |

    Hi Alex, there's an example of setting keywords and description on page 19 of the PDF. You'll need to hook 'wp_head', so make sure that is enabled.

  53. Chris :

    Nov 19, 2005 12:01 pm |

    Hi,

    I am looking for a wp-plugin to have meta tags like title and description on each post not having the title and description of the homepage but those from each post.
    I put your inscript to my wp plugin-folder and activated it.

    In options-inscript I do not know what to do, what to activate? What code to put on what place?

    Sorry about my bad English. I am not a developer. Do I have to put code in the index.php?

    Can you help me? With words a non-developer can understand.

  54. John( author ) :

    Nov 22, 2005 1:51 am |

    Hi Chris,

    To get meta tags you will need to enable 'Header data (wp_head)' in Hooked Actions. Then follow the instructions at the bottom of page 19 of the guide. You could also look at another plugin I wrote called HeadSpace, which does the same thing but is only targetted at meta tags and so is much easier to use.

  55. Another John :

    Nov 23, 2005 1:00 am |

    Hi,

    Is there anyway to echo %% (from within a function block) without InScript parsing it? Eg. I want to echo %%bloginfo%%, but InScript parses it and I end up getting:

    -- no func bloginfo --

    Thanks.

  56. Chris :

    Dec 1, 2005 12:40 am |

    Hi John,

    when I wrote my first post here on November 19th, 2005 at 12:01 pm I just gave up with your Inscript plugin and installed Headspace. It works and I can add meta tags like description and keywords to each new of my posts and pages, but not to my homepage as the opening page of my site. How can I do this only for the homepage, not to overwrite the posts and pages?

    If I "update" to Inscript would the meta-tags I set with HeadSpace stay on the posts and pages I have created before with HeadSpace? I would like to go on trying to install Inscript, but I am afraid that all my "old" posts and pages have to be rebuild again.

    Thank you!

  57. Lois :

    Jan 8, 2006 8:31 pm |

    Is there supposed to be an inscript.php in the zip? I dropped the inscript folder into my plugins directory and it doesn't show up in my plugins manager. But there was no inscript.php in the downloaded package.

  58. Michael Maggard :

    Jan 20, 2006 7:06 pm |

    OK, I'm missing something.

    I'm trying to get InScript to embed a html fragment from another site into a page on my WP. The idea is that my WP page supplies:

    The dates of the tournament are:

    and then the ouside html fragment file supplies:

    Boise, June 10th
    Boston, June 11th
    Butte, June 12

    all nicely inlined html, then on to the next entry with it's inlined html fragment from a different site, etc.

    However, there is some basic "ah-ha" I'm missing on getting this to work, in all the features I'm not putting together func & url together conceptually. Any pointers to get me on the right page?

  59. Jens :

    Jan 25, 2006 7:19 am |

    Hi! I just installed InScript and I am happy about the flexibility of this plugin. I just started with reading the manual and tried to insert meta-tags to my blog, but it did not work.

    I installed the plugin, left all in default. Then I went to "Create new global keyword".
    I added to "Filter/Action": "wp_head"
    And to "Data": ""

    But nothing appeared in my blog-head. :-(
    Does anyone know, where to problem is?

    Regards!
    Jens

  60. John( author ) :

    Nov 25, 2005 5:57 pm |

    Not just yet, but hopefully in a new release I'll correct this slip!

  61. John( author ) :

    Jan 9, 2006 6:00 pm |

    Lois: The zip you downloaded should contain an inscript.php and an inscript directory. Both of these need to be uploaded into the plugins directory

  62. John( author ) :

    Jan 25, 2006 6:10 pm |

    Michael: It sounds like you'll need to create your own Inscript function to capture the HTML fragment. The best place to start is by copying an existing function, and changing the function name to be inscript_func_yourfunctionname. After that you'll have to insert the code to extract the HTML.

    Jens: I think something may have been cut from your comment. To insert an HTML keyword you should take a look at page 19 of the guide. In the data section of your global keyword you should then insert something like is shown on the bottom of page 19.

  63. Jens :

    Jan 26, 2006 12:39 am |

    Hi John!
    Yip, my code has been killed. ;-)
    But I have read the manual before I posted... and I wonder if I have done something wrong... can you please send me a mail, so I can send a screenshot of my options to you? I dont know to debug otherwise... :-(
    Regards!

    Jens

  64. Dang :

    Jan 26, 2006 3:34 pm |

    Jens: Could it be that you haven't selected "Header Data" in the "Hooked Actions" section of the options page?

    John: Great and useful plugin!

  65. bearded :

    Mar 4, 2006 8:18 am |

    I read the complete manual, above replies and installed INSCRIPT. I wish this is a substitution of a number of plugins. But.. I am a novice wordpress user. I tried to use inscript for replacing the head_title (title of the page) for specific page. But I couldnot succeed. In the above Replies you refered Page 19 of instruction. I went there (manual p 19) but there is no example for my need. Will you please write the example here for novice people like me! I would be really thankful. (but pls don't direct me to HeadSpace. Because I want to change some more items for specific posts. like keywords, description, etc. which would help me for search engines. )

  66. Africa Zen :

    Mar 5, 2006 2:56 am |

    Neat script, just installed in on wp2..

  67. Another John :

    Mar 18, 2006 10:39 pm |

    Whenever I try inserting this (using php_eval or echo):

    //

    it comes out like this:

    //

  68. Another John :

    Mar 18, 2006 10:47 pm |

    Oops..try again:

    I want this:

    //

    but this is echoed:

    //

    (The last great than sign has been converted to it's entity reference)

  69. John( author ) :

    Mar 20, 2006 12:56 am |

    You'll have to post that again (escaping any HTML entities), or email it to me, as WordPress has stripped out whatever it is you wrote!

  70. John( author ) :

    Mar 20, 2006 2:09 am |

    Bearded: To change meta data in a specific post/page, make sure you have hooked 'wp_head' and then add a new custom field to the post (see page 10 of the doc) that looks something like:

    inscript_wp_head = %%head_keywords [keywords=somekeywords]%%

  71. Joe :

    Mar 30, 2006 3:50 pm |

    Hi,
    InScript does not seem to work for me. I'm using WP 2.02
    I put this in a post, I just put it in the post after installing
    br /> !!log!!
    !!rss!! !!123!!
    %%function [param1=!!changelog!!]%%
    This is an example sentence.
    None of them worked. I went and added the variables where you said, in the name box I put "rss" and left out the !!, isn't this what I am supposed to do? After that I tried an example in the manual and it still didn't work it just shows the text and like !!123!! and on the it left out the

  72. Richard :

    Apr 24, 2006 1:09 pm |

    It's very nice when putting title tags onto individual pages, but on category pages you get two title tags - the category title tag and some way below it the title tag of the top post.

    I would like to be able to get rid of the title tag of that top post, but can't figure it out. Global fields seem too sweeping, unless there's a way of doing it that applies to each separate category.

  73. John( author ) :

    May 16, 2006 5:57 am |

    Joe: Are you 100% that you hooked into the appropriate filter? If you did then the values you entered, even if wrong, will be replaced by an InScript error message. If you haven't then they will just appear exactly as you enter.

    Richard: That sounds like it may be aspect of the theme. It's impossible for me to say anymore here. If you have the problem available online then I can take a look

  74. Blake :

    Jun 5, 2006 8:46 am |

    Okay, thank God. :) I need this script for similar reasons to other people: adsense deluxe doesn't work with the TextControl plugin, but it was the only way I could figure out how to turn off default WP formatting for my custom php hacks.

    Now I'm trying your plugin but I'm not using it right. (This is awful ... prepare yourself ...)

    The gratuitious line breaks are still there. I know I'm not combining my function and inscript the right way. Any tips? Sorry to ask such a dumb question.

  75. Blake :

    Jun 5, 2006 8:47 am |

    My code got stripped out. Let me try again ....

    <inscript text="%1" wp="off">
    <?
    $query = "patriotic or liberty or american and not (checkers or baby or tooth)";
    doadbpull('patriotic',$query,'24','8');
    ?> </inscript>

  76. Cornell :

    Jun 12, 2006 8:27 pm |

    I have all hooks enabled, but can't seem to get inscript to work. For example, inputting %%system%% into a post only returns %%system%%---that is, no inscript error message.

    Based on previously-answered rsponses, it's something in the Theme.

    I'm a WP newbie---any suggestions on where to start troubleshooting?

    Cornell

  77. Cornell :

    Jun 12, 2006 8:31 pm |

    Please disregard my previous post--inscript is now working.

    Cornell

  78. John( author ) :

    Jun 13, 2006 10:36 pm |

    Blake, you will need to 'escape' the text. All special HTML characters (such as the <) need to be turned into HTML entities (such as &lt;) otherwise they will not appear or get stripped out by WordPress before InScript has a change to look at it.

  79. Eric :

    Jun 14, 2006 9:13 pm |

    John,
    This plugin looks like it should do 3 or 4 things that I could really ue. Except, I'm just not getting how to get it up and running.

    I'm on Wordpress 2.0.2 using the giraffe2 theme (which is fantastic!)

    The plugin is installed and activated. The inscript directory permissions are 777 and auto.php is in there.

    The hooks for the_content the_excerpt wp_head wp_footer wp_meta are all check marked..

    The suggested tests using %%system%% and %%php_info%% render with the post contents and no system or php_info information. Viewing source shows no sign of the functions, either.

    If I use inscript function tags, those show up when I view the source for the rendered page, but nothing is displayed except the content.

    I appologize if I'm missing something obvious here but this is driving me nuts. I'm sure I've read every word on this web site and in the manual. (Except the ones addressing whatever I'm missing. :-)

    Thanks,
    Eric

  80. Wilson :

    Jun 26, 2006 7:22 pm |

    It worked for me. I used it to insert post specific meta tags and adsense code. Inscript is remarkable.

    The problem is though, I am not entirely sure how to use Inscript for main index only meta tags without resorting to using the global tags. Let alone doing category specific meta tags. Although it seems Headspace 2 can do category specific tags now.

    If Headspace 2 can do it, I am wondering if Inscript can. Since Inscript is so powerful.

  81. John( author ) :

    Jul 12, 2006 10:08 pm |

    Eric, when you view the source does %%system%% appear in the text, or is that missing?

    Wilson, you probably could do something like that by creating your own pieces of code, but it may be easier to use HeadSpace2 as it's more specific for that purpose.

  82. Eric :

    Aug 22, 2006 7:31 am |

    John, sorry for the long delay. Busy summer and complete overhaul of all my compter systems sucked up a bunch of time.

    %%system%% does not appear in the source text.

    I don't know if there's hosts with known issues. I'm hosting at Hostgator.

    Thanks,
    Eric

  83. John( author ) :

    Sep 27, 2006 4:54 am |

    Eric, if you're still trying to get InScript to work then drop me a line and point me at a non-working page and I'll take a look.

  84. Ahmad :

    Oct 31, 2006 6:45 am |

    Hello,
    Just wondering if anyone could help. I did something stupid and started my blog using a numerical archive system, and now I'd like to change it so that the post title is part of the URL for SEO reasons. Is there any Wordpress plugins that anyone knows of that could switch it without sending Googlers to invalid pages? Maybe some sort of redirector to the correct page?

    Thanks.

  85. Dirk :

    Jan 15, 2007 11:22 am |

    John, with inscript WP becomes a Porsche CMS, great job!
    Questions:
    1/ %%random_line is a great function. I there an inscript function that allows me to show content within a page or post only for a certain period of time and then shows default content instead or other content with a *timer* (I know there is a way to do that with a php function)
    2/ Is there an inscript function that allows to disable a post at a certain point of time?
    3/ Can I use headspace and inscript at the same time?
    4/ (Probably stupid...) How do I use inscript to specify a head_title for a certain page or post? In the "Custom field" section within the "write post/page" page, and if yes do I have to use a variable like !!something!! as the value or can I use plain text or whatever in the value field? (I would like to see all meta values on the "write post/page" page instead of jumpimg to the "Options>Inscript" Page ...)
    Thanks for your help! And thank you for inscript!

  86. Dirk :

    Jan 15, 2007 6:13 pm |

    Hi John, forget about question 3/ and /4. Just found the solution ...

  87. Dirk :

    Feb 1, 2007 8:52 am |

    Hi John,
    I just installed WP 2.1, activated Inscript, defined hooks and (as a test) !!anything!! under Options>Inscript, inserted !!anything!! in a post and the value of !!anything!! is shown but with the following warning above:

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/www/web12/html/wp-content/plugins/inscript.php on line 708

    Can you please help me?

  88. John( author ) :

    Feb 28, 2007 9:37 pm |

    New version 1.7.1 should fix any WordPress 2.1 problems

  89. Dirk :

    Mar 1, 2007 6:07 pm |

    Thank you for the 1.7.1 fix for WP 2.1. You made my day!

  90. Neil :

    Mar 2, 2007 12:15 pm |

    I'm very interested in this plugin, but I'm getting an error message I don't understand...

    Anytime I try to do anything on the InScript options page, I get the following error:

    WARNING!
    Could not update the auto.php file - check write permissions on the inscript directory

    I've uploaded the inscript directory and given it CHMOD 777 permissions, but I can't even find an auto.php file...what am I missing?

    I'm running WP2.0.7 with InScript 1.7.1.

    Thanks in advance for the help...

  91. Scott Pasinski :

    Mar 4, 2007 5:53 am |

    I cannot download any scriptys you have they all goto 'page not found'

    Please advise...

  92. John( author ) :

    Mar 16, 2007 3:42 am |

    Nell, did you give permissions to all the subdirectories? auto.php is created for you, and if it doesnt have permissions then it cant create it.

  93. stephen :

    Mar 27, 2007 9:20 am |

    Same issue - permissions are set as 644 files and 755 directories (with phpsuexec), and auto.php won't auto create. Wont' work with 777. Is there a workaround? Thanks...

  94. Dirk :

    Apr 24, 2007 12:48 pm |

    Hi John,

    with WP 2.1 it works fine!
    But with WP 2.1.3. (different project) I have same problem as Neil and stephen ..
    Best regards
    Dirk

  95. John( author ) :

    Apr 27, 2007 1:19 am |

    Dirk & Stephen: Try version 1.7.2. I've removed the need to create a file, thus removing any problems with file permissions.

  96. Dirk :

    Apr 27, 2007 12:07 pm |

    Perfect! Thank you again, John!

  97. stephen :

    Apr 28, 2007 2:07 am |

    Thanks John - works like a dream. Have made a small donation.

  98. Dirk :

    Apr 28, 2007 5:02 pm |

    Hi John,
    how can I integrate different post excerpts within a post and let them rotate by random?
    Can I call a function with a function for this purpose?
    The following solution doesn't work with the %%post_excerpt%% variable:

    but it works with e.g. %%post_title%%.

    What can I do?

  99. John( author ) :

    May 3, 2007 4:15 am |

    Thanks Stephen, very appreciated!

    Dirk, can you repost the code with escaped HTML, or send it in an email? WordPress ate most of it!

  100. Dirk :

    May 11, 2007 9:09 am |

    Hi John,
    how can I integrate different post excerpts within a post and let them rotate by random or with a timer which changes the displayed excerpts e.g. every hour?
    This function does not work, I dont know why ...
    %%post_excerpt [url=/index.php/!!randomexcerpts!!/]%%

    Best regards

    Dirk

Page: 1 2

Pings & Trackbacks

bloggingpro.com, nowsell.com, puppetism.com, download.lacaterinca.com,

Home | Main content | Software | Terms & Conditions | Sitemap | John Godley © 2010