inline-js —— wordpress plugin
Table of content
Description
本插件可在文章或页面中插入javascript的内容。
Plugin Name: Inline Javascript Plugin
Plugin URI: http://www.ooso.net/index.php/inline-js/
Feed URI: http://www.ooso.net/index.php/feed/
Description: Plugin that insert inline javascript in Posts/Pages
Version: 0.4
Author: Volcano
Author URI: http://www.ooso.net
Usage
中文版本:
- 解压
- 复制inline-js.php到wp-contents/plugin目录并激活插件.
- 设置
- 在设置 / 撰写中关闭这个选项"WordPress 应当自动修正无效的 XHTML 嵌套"(‘WordPress should correct invalidly nested XHTML automatically)
- 在用户 / 您的个人资料中关闭Use the visual editor when writing
- 给你的帐号添加 ‘unfiltered_html’ 权限. 可以通过安装role-manager插件来搞定。
- 在写博客的时候使用[inline],[/inline]包住javascript,并发表
English version:
- Unzip
- Copy inline-js.php to direcotry wp-contents/plugin and activate the plugin.
- Setup
- Disable tag balancing ‘WordPress should correct invalidly nested XHTML automatically’ through the ‘Options / Write’ menu in WordPress
- Disable the WYSIWYG rich editor in the user’s settings through the ‘Users / Your Profile’ menu
- Assign the ‘unfiltered_html’ capability to the user. Assigning capabilities to roles or users is out of the scope of this plugin. Because WordPress has no built-in configuration menu in the admin menu to assign roles/capabilities, you need to install the role/capability manager plugins role-manager.
- Use [inline] and [/inline] tag around the javascript,and post it
- Ok
Example
CODE:
-
[inline]
-
<script type="text/javascript">
-
document.write("hello world!");
-
</script>
-
[/inline]
mark 于 2006-09-14 @ 16:31:24 留言 :
激活后怎样使用。
volcano 于 2006-09-14 @ 20:56:51 留言 :
用<inline>和</inline>包含你要用的javascript,提交就可以了
Alexander Lazarev 于 2007-01-23 @ 22:59:02 留言 :
hello, nice plugin, did it works with new wordpress 2.1 series? Possible updates?
volcano 于 2007-01-25 @ 21:20:17 留言 :
I will update the plugin when I have time.
前~博客 于 2007-04-07 @ 15:42:37 留言 :
好棒的插件!
如果能跟上2.1就更好了:0
issen1 于 2007-04-22 @ 20:31:52 留言 :
Well, is there an update yet? Mmh, if i use the code, no other plugins will work such as Smileys aren’t displayed, spoilers don’t work. Any fix there yet?
volcano 于 2007-04-23 @ 09:49:11 留言 :
Sorry…I will update the plugin this week and fix some bug.
vanBetty 于 2007-04-25 @ 00:02:18 留言 :
I would like to use the plugin on wordpress mu. But I can’t get it to work! can you help me out?
icyfeng 于 2007-04-26 @ 03:57:26 留言 :
update it!
treadmill 于 2007-05-03 @ 22:50:42 留言 :
我喜欢这种blog,在哪下
gestroud 于 2007-05-12 @ 00:51:24 留言 :
download not working. :(
Luca 于 2007-05-12 @ 05:48:18 留言 :
DOWNLOAD NOT WORKING!!!
volcano 于 2007-05-12 @ 07:13:15 留言 :
download fixed :p
JAVASCRIPT NEI TUOI ARTICOLI at 于 2007-05-13 @ 06:53:28 留言 :
[…] Plugin Home | Download […]
wordpress是什么 » Blog Archive » wordpress插件 - 更新于05/11 于 2007-05-17 @ 08:05:57 留言 :
[…] Inline Javascript Pluginenable you plug javascript in blog directly.使你可以在博客内直接插入javascript. […]
Naveen 于 2007-07-18 @ 14:53:07 留言 :
Hi,
Thanks a lot for this wonderful work. I was looking for this kind of plugin for more than 2 weeks.
I am using wordpress-mu1.2.1 and it worked like charm… :)
Few things to ask.
—————————-
We have a line of code that says “document.write(’ tag and other part of code nice. Once it reaches “
volcano 于 2007-07-18 @ 21:41:40 留言 :
Hi Naveen:
I hope you can finish your question so that I answer it.
Naveen 于 2007-07-19 @ 13:33:04 留言 :
Hi,
Thanks a lot for this wonderful work. I was looking for this kind of plugin for more than 2 weeks.
I am using wordpress-mu1.2.1 and it worked like charm… :)
One thing to ask.
—————————-
We are porting hml source into post. In html source we have (javascript adscript) a line of code that says “document.write(’
Naveen 于 2007-07-19 @ 13:36:35 留言 :
i cannot post the content completely, text gets stripped off by wordpress formatting i guess.
Probably, it removes the text after the “less than symbol”. Please look into it.
Naveen 于 2007-07-19 @ 13:42:18 留言 :
Hi,
Sorry to bother with lot of posts. Below is what i want clarify..
Thanks a lot for this wonderful work. I was looking for this kind of plugin for more than 2 weeks.
I am using wordpress-mu1.2.1 and it worked like charm… :)
One thing to ask.
—————————-
We are porting hml source into post. In html source we have (javascript adscript) a line of code that says “document.write(’less than symbol SCR’);”. Once i submit the post, the lines of code after “less than symbol ” tag gets removed. We cannot alter the javascript because its an adscript. I am using the [inline] tags before and after the javascript tag.
Since the text gets removed from this comment area by wordpress, i have used “less than symbol” instead of it corresponding tag.
Thanks,
Naveen
volcano 于 2007-07-19 @ 13:46:45 留言 :
Did you mean “<”?
I will look into this problem.
Martino 于 2007-08-28 @ 23:04:01 留言 :
Cool plugin!
I’ve been searching for this.
Thanks a lot!
MARTINO :)
GoogleGoogle 于 2007-10-12 @ 01:31:31 留言 :
Great plugin thanks
心想事成的秘密 于 2007-10-13 @ 12:42:14 留言 :
请教一下,我在用wp2.3,js不是可以直接调用的吗?我好像没有安装任何插件,也可以在我的文章里插入js而没有问题啊……难道是我的错觉?
(建议安装 Subscribe to Comments 插件哦,人们才能够在第一时间知道你已经回复了!)
volcano 于 2007-10-15 @ 11:44:33 留言 :
之前的版本是不可以的,至于2.3,我还没来得及试验:)
..::DeUCeD::.. 于 2007-11-16 @ 14:43:22 留言 :
great plugin my friend!
thx a lot!
turnip 于 2007-11-20 @ 02:22:28 留言 :
Plugin works great except for one small promlem. Using JS in a post, I see the words “[inline] and [/inline] appearing as test before and after the javascript. Any ideas how to fix this behavior?
Random Woman 于 2008-01-25 @ 16:38:42 留言 :
This is a GREAT plugin thank you so much for developing and updating it!
goldendragon 于 2008-02-14 @ 10:20:31 留言 :
I added two Javascripts to my Jan. 17th post “What are the Best Ad Networks to Monetize Your Websites or Blogs”.
The first script is suppose to put a referral link at the end of second paragraph. But it shown at the beginning of the post. The second script is suppose to put another link at the end of third paragraph. But it does not exist.
Volcano, do you know what is the problem?
blog tools 于 2008-02-18 @ 06:48:49 留言 :
hello. this plugin completely mess up my design.
Font size change, line breaks dissapear, and more stuff like that.
I tried bidvertiser referral banner.
JimmY2K. 于 2008-03-10 @ 06:53:13 留言 :
Hi, inline-js makes exec-php stop working.
http://bluesome.net/post/2005/08/18/50/
The author says “The issue lies in the way Inline-JS applies wpautop() to the content”.
Check it out. Bye
volcano 于 2008-03-11 @ 00:13:14 留言 :
Hi JimmY2K. I had update inline-js plugin and it now work fine with exec-php. just try it:)
http://customcode.googlecode.com/files/inline-js.latest.zip
inline-js 0.4发布 - wordpress是什么 于 2008-03-16 @ 09:20:48 留言 :
[…] plugin inline-js 0.4发布。这个插件可以在文章中直接插入javascript。 Inline-js plugin minor update. It […]
zhang 于 2008-04-10 @ 14:45:28 留言 :
I don’t know ,what’s ‘inline ‘ mean in c++?
阿草哥 于 2008-04-18 @ 10:27:40 留言 :
这个插件是可以在写文章的时候在文章编辑器中就可以写js脚本吗
如果这样 那非常好啊
volcano 于 2008-04-18 @ 14:43:28 留言 :
对
Matti 于 2008-04-22 @ 04:01:26 留言 :
great plugin !!!!!!!!!!!!!!!!!