又一个在新窗口打开链接的插件
前两天才介绍了一个“在新窗口打开链接”的hack,现在又有人做了一个插件来达到同样的效果!external links in new windows
这个插件使用javascript,在后台激活插件后,要在template中加上下面这行代码:
<?php showexternabox(); ?>
这时模板上就有一个选项,让用户选择是否在新窗口打开链接,如:
所以,必须保证你的浏览者的浏览器是支持js,和在你想让他们打开链接的页面上都有这个选项!!
前两天才介绍了一个“在新窗口打开链接”的hack,现在又有人做了一个插件来达到同样的效果!external links in new windows
这个插件使用javascript,在后台激活插件后,要在template中加上下面这行代码:
<?php showexternabox(); ?>
这时模板上就有一个选项,让用户选择是否在新窗口打开链接,如:
所以,必须保证你的浏览者的浏览器是支持js,和在你想让他们打开链接的页面上都有这个选项!!
blogsome和freewordpress提供免费的wordpress服务。如果你想拥有wordpress,而又不想去申请一个空间,这两个地方还是很适合你的。
我申请了一个freewordptess帐号,过程很简单,就只需填上ID号后就进入安装程序了。填上你想要的blog名和email后就完成了安装程序,这时千万要记住他随机给出的密码,要不就进入不了后台了!!进入后台使用admin和他随机给出的密码就行了(记住,这是马上换个密码吧,容易记。在users中换)。
freewordpress提供了十套模板和为数不少的plugin,除了不能上传东西以外,基本跟自己买个空间装上wordpress一个样的(甚至比自己装的更强,因为后台他修改了,比自己装的更强大了。他的空间可以使用rewrite,我的不能~)!!
查看更多精彩内容»
前不久,Alex的wp theme竞赛刚刚结束,现在weblogtoolscollection.com又开始了plugin and mod竞赛。虽然,我还不能做一个像样的插件,但这个比赛一定会给我们这些wp用户带来不少的好插件了!!我还是很期待的~~ ![]()
WP PLugin(s): GaMerZ Prolific Wordpress hacker Gamerz has updated all of his plugins to work with Wordpress 1.5. Lots of fun and useful plugins including WordPress 1.5 Stats, WordPress 1.5 WAP, WordPress 1.5 Poll, WordPress 1.5 Page Navigation, WordPress 1.5 Print, WordPress 1.5 E-Mail and WordPress 1.5 Users Online
» WordPress 1.5 Stats //流量统计[update:统计blog的一些信息,不是统计流量的:oops:]
Display your WordPress statistics.
» WordPress 1.5 WAP //手机wap上网浏览blog,记得狗兄也做了这个plugin
Browse your WordPress weblog entries on a WAP enabled mobile phone.
» WordPress 1.5 Poll //投票系统,这个是我想要的!!
Adds an integrated poll system to your WordPress.
» WordPress 1.5 Page Navigation //页面导航条,就是:Pages (7) : « 1 [2]3 4 » … Last »
Adds a page navigation with paging elements to your WordPress.
» WordPress 1.5 Print //打印版本
Displays a printable version of your WordPress weblog post.
» WordPress 1.5 E-Mail //通过email推荐blog给好友
Enable you to send your webblog entry to a friend.
» WordPress 1.5 User Online //在线人数,Search Bots??还统计了搜索蜘蛛??好像很不错耶
Enable you to display how many users are online on your Wordpress with detailed statistics of where they are and who there are(Members/Guests/Search Bots).
每次写blog时总要在加上链接的时候自己写上target="_blank",而使链接在新窗口打开呢?
这里有个方法,可以解决:Open Links in New Window, WP Tutorial
1. Global Change for links to open new window
File: index.php
Find: <head> tag
Add: <base target="_blank">2. Article Titles
File: index.php
Find: <a> tag with “storytitle” class
Add: target="_self" inside </a><a> tag3. Category Links
File: /wp-includes/template-functions-category.php
Find: function the_category
Add in 3 spots: target="_self" inside </a><a> tags4. Comments Link
File: /wp-includes/template-functions-comment.php
Find: function comments_popup_link
Add: target="_self" inside </a><a> tag5. Calendar (sidebar)
File: /wp-includes/template-functions-general.php
Find: function get_calendar
Add in 3 spots: target= inside </a><a> tags6. Category Links (sidebar)
File: /wp-includes/template-functions-category.php
Find: function list_cats
Add: target="_self" inside </a><a> tag (near bottom inside Foreach loop)7. Archive Links (sidebar)
File: /wp-includes/template-functions-general.php
Find: function get_archives_link
Add in 2 spots: target="_self" inside </a><a> tags8. Search Form (sidebar)
File: index.php
Find: <form> tag
Add: target="_self" inside </form><form> tag9. Misc. Links (sidebar) i.e. About Me
File: /index.php
Find: any instances
Add: target=”_self” inside <a> tags10. Comments Form submit
File: /wp-comments.php
Find: <form> tag
Add: add target="_self" attribute</form></a></form></a></base></head></blockquote>