wordpress

2010年发布imgShow的2.0版本兼容Jquery,无需插入代码

星期日, 一月 10th, 2010 | php, wordpress | 12 Comments

今天难得休假一天,也抽个时间把imgShow这个插件更新至2.0版本

新版修正了和jquery不兼容的bug,和使用者的反馈,实现了自动给文章内容的图片实现imgShow的展示功能,此版本继续兼容使用代码的方式;

启用此插件后即可,无需代码的插入,最大减少使用者的操作,完全自动化,感谢大家的意见和支持!

下载地址:imgshow2.0
1.0版本和使用更多信息见:ImgShow图片点击滚轮缩放的wordpress插件(plugins)
下图是新版展示:

图片看不清,可点击查看,支持滚轮缩放….正是本插件实现的功能

ru

Tags: , , , ,

wp版本升级至2.9.1版

星期三, 一月 6th, 2010 | wordpress | 一条评论

今天升级了wordpress,2.9.1版本的后台速度的确快了很多,升级的很顺利,上传新的文件,和语言包,登陆后台,提示升级数据库,搞定!
我看wp-content文件夹下没有什么更改的就没有上传,里面都是一些插件什么的,省的麻烦,这样以前的插件还都ok能用!
留言记忆下.

Tags: ,

修正imgShow的兼容Jquery版本

星期二, 十二月 8th, 2009 | php, wordpress | 一条评论

自己写的imgShow的图片展示插件,看反馈 zLear 说 “跟jQuery有冲突 激活插件后jQuery的特性就没有了”,看了下,果然有冲突,今天修正个版本,放去去了
具体方式见此插件页,点击这里详解

Tags: , , , ,

ImgShow图片点击滚轮缩放的wordpress插件(plugins)

星期日, 四月 5th, 2009 | php, wordpress | 70 Comments

小记前:这段时间一直忙着基于java的支付平台的设计和对接口的处理,赶在清明节有空整理下这个图片的点击,弄成个小插件吧,希望有需要的也可以直接激活使用,简单多了;
ImgShow图片点击滚轮缩放的wordpress插件(plugins)
官方访问地址:http://wordpress.org/extend/plugins/imgshow/
—-2012-04-18更新至2.1版本——————————-
屈指一算竟然时隔2年, 才再次更新版本,废话少说,此次更新如下就2点,兼容性和一个功能点:
1.支持更多 ie, firefox, chrome, opera, Safari,以前只支持ie和firefox
2.不想使特定图片启用效果该效果的,可以用下面代码阻止(系统默认对所有站点图片生效的)

<!--noimgshow--><img src="pic.jpg" /><!--noimgshow-->

EN:
1.Support for ie, firefox, chrome, opera, Safari
2. Do not want to make the corresponding picture effect is enabled,
you can use to prevent the effect of

<!--noimgshow--><img src="pic.jpg" /><!--noimgshow-->
imgshow2.1下载地址:imgshow2.1

—-2010-04-22更新至2.0.2.2版本—————————-

1.修正点击图片会弹出新窗口,造成本插件不能使用的bug; (No new windows open,the bug is not here)
下载地址:imgshow2.0.2.2

—-2010-04-05更新至2.0.2.1版本—————————-

1.优化加载处理速度
2.修正在一篇文章中多个图片的加载问题
3.增加鼠标移动到图片显示手型的样式
下载地址:imgshow2.0.2.1

== Description ==

Mouse Wheel zoom picture when you onclick it,use sample:

[imgShow:<img src="//www.pomelolee.com/imgshow/showPhoto.jpg" border="0" alt="skag"  width="560"/>]

this is ok
now start download(下载):imgshow1.0

今天难得休假一天,也抽个时间把imgShow这个插件更新至2.0版本

新版修正了和jquery不兼容的bug,和使用者的反馈,实现了自动给文章内容的图片实现imgShow的展示功能,此版本继续兼容使用代码的方式;

启用此插件后即可,无需代码的插入,最大减少使用者的操作,完全自动化,感谢大家的意见和支持!
下载地址:imgshow2.0
1.2010-02-26 modify js Compatibility ;修正由于大小写转换造成的部分js代码失效的bug
2.版本更新至2.0.1版本 version 2.0.1
版本更新至2.0.1修正bug如上:imgshow2.0.1下载

== Installation ==

1. Extract the contents of the archive (zip file)
2. Upload the showphoto folder to your ‘wp-content/plugins’ folder
3. Log in to your WordPress admin and go to the ‘Plugins’ section. You should now see showphoto in the list of available plugins
4. Activate the plugin by clicking the ‘activate’ link
5. Now go to use sample:

[imgShow:<img src="//www.pomelolee.com/imgshow/showPhoto.jpg" border="0" alt="skag"  width="560"/>]

6. More please click link: //www.pomelolee.com/imgshow/
另计:支持ie6,ie7,ff等的鼠标滚轮缩放和鼠标移动功能!

此插件在wp2.8版本或其他中的可视化的编辑中不能正常显示,因插件采用的是代码的格式;请采用在HTML格式下保持的示例模式

example:

图片看不清,可点击查看,支持滚轮缩放….正是本插件实现的功能

skag

Tags: , , , , , , ,

wordpress2.7.1的admin密码重置与php文件

星期一, 三月 30th, 2009 | wordpress | 3 Comments

好久不登陆自己的blog了,今天想进下,发现密码不记得了,试验了好久也是不得其法,空间不支持邮件,吐血啊!
从网上找的根本不适合wordpress2.7.1的版本,不过看看源码,重置还是很简单的,就写了个php文件,直接上传到空间
如下访问就重置了,这里只是重置admin的访问地址是:直接访问//www.pomelolee.com/resetpw.php你的要换成你的地址哦

文件下载:resetpw.zip

Tags: , ,

添加到各大流行网摘的代码大全–可用修正版

星期一, 一月 19th, 2009 | pagemaker, wordpress | 没有评论

想给自己的blog填上网摘,以便收录,在网上找了好久也不行,就自己收录汇总下了可以直接使用
直接把下列代码放到你要收藏的单页即可,具体样式可以参考本文章的单页的下面:

1
2
3
4
5
<div align="center"><b>收藏本文到</b><!-- Start of add bookmark buttons created by wp_addbookmarks. Plugin by //www.pomelolee.com/ -->
<a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'delicious','toolbar=no,width=700,height=400 '); return false;"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/delicious.gif" alt="Del.icio.us" title="添加到Delicious" border="0" /></a> <a href="javascript:location.href='http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images//google.png" alt="Google书签" title="添加到Google书签" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://digg.com/submit?phase=2&amp;url='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Digg'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/digg.gif" alt="Digg" title="添加到Digg" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('https://favorites.live.com/quickadd.aspx?url='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Live'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/live.gif" alt="Live Bookmark" title="添加到Live Bookmark" border="0"/></a> <a href="http://slashdot.org/" onclick="window.open('http://slashdot.org/bookmark.pl?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title), 'slashdot','toolbar=no,width=700,height=400 '); return false;"><img src="http://images.slashdot.org/favicon.ico" alt="Slashdot" height="16" width="16" title="添加到Slashdot" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.technorati.com/faves?add='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Technorati'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/technorati.gif" alt="Technorati" title="添加到Technorati" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://furl.net/storeIt.jsp?u='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'Furl'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/furl.gif" alt="Furl" title="添加到Furl" border="0"/></a> <a href="javascript:location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/yahoo.gif" alt="Yahoo书签" title="添加到Yahoo书签" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://www.facebook.com/share.php?u='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','facebook','scrollbars=no,width=800,height=600,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/facebook.gif" alt="Facebook" title="添加到Facebook" border="0"/></a> <a href="javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/baidu.gif"  alt="百度搜藏" title="添加到百度搜藏" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/vivi.gif" alt="新浪ViVi" title="添加到新浪ViVi" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/365key.gif"  alt="365Key网摘" title="添加到365网摘" border="0" /></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/yesky.gif" alt="天极网摘" title="添加到天极网摘" border="0"/></a> <a href="javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&amp;url='+escape(u)+'&amp;excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/hexun.gif" alt="和讯网摘" title="添加到和讯网摘" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www5.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/bolaa.gif" alt="博拉网" title="添加到博拉网" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/poco.gif" alt="POCO网摘" title="添加到POCO网摘" border="0"/></a> <a href="javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&amp;t='+e(d.title)+'&amp;d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&amp;s=bm';a=function(){if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=400'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/fanfou.gif" alt="添加到饭否"  title="添加到饭否" border="0"/></a> <a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(zhai=window.open('http://shuqian.qq.com/post?from=3&amp;title='+encodeURIComponent(document.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'zhai','scrollbars=no,width=480,height=420,left=75,top=50,status=no,resizable=yes'));zhai.focus();"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/qq.gif" alt="QQ书签" title="添加到QQ书签" border="0"/></a> <a href="javascript:q=(document.location.href);void(open('http://www.digbuzz.com/submit.php?url='+escape(q),'','resizable,location,menubar,toolbar,scrollbars,status'));"><img src="//www.pomelolee.com/wp-content/plugins/wp_addbookmarks/images/digbuzz.gif" border="0" alt="Digbuzz我挖网" title="添加到Digbuzz我挖网" /></a> 
<!-- End of add bookmark buttons created by wp_addbookmarks. Plugin by http://www.i5a6.cn/ -->
</div>

Tags: , ,

启用作者信息插件WordPress Plugin – Author Exposed的使用

星期一, 十二月 29th, 2008 | wordpress | 2 Comments

介绍就不想说了,直接复制了下

用于显示作者的具体信息。点击作者的链接时,会弹出显示框,包含作者的姓名、Email、简介等。作者的姓名、Email、简介都来调用于WordPress后台的设置,

注:头像图片来自于Gravatar—这个很另我恼火,还要跑去注册很烦闷中,就直接修改了源文件调取自己本地的头像图片,做个80X80的图片就OK了,至于各人显示各人的图片,我就直接判断email了,作者也都是自己的朋友,以后人多了,在考虑自己也弄个上传吧

官方地址:(不知道是不是官方) http://colorlightstudio.com/2008/03/14/wordpress-plugin-author-exposed/
Installation(安装说明)

下载此插件:Plugin: AuthorExposed (4kb). Download

1.上传文件Upload “author_exposed” folder to the”/wp-conten/plugins/” directory.
2.后台激活Activate the plugin and place this code (inside the loop)
where you want your author link to appear:

3.在需要的地方加此代码code:

1
<?php if (function_exists('author_exposed')){author_exposed();} ?>

Tags: , ,

wordpress虚拟空间搬家转移,插件全转移小记

星期四, 十一月 27th, 2008 | wordpress | 没有评论

小记:自己用了wp一段时间后感觉都很不错的,也装了七七八八几款插件,一直用的是国外的一个
免费空间,给我的感觉很不安全,说不定哪天就突然不能访问了,就自己在国内弄了个空间,
面临着空间转移的难题,废话不多说了,开始记录注意事项;

本人的是从Linux转移到Windows平台下,期间又想重新改表名,一个字烦

以下是表前缀不修改版的,要修改的话,见话外
1.先把Linux平台下的文件全部copy到新的平台上,删除wp-config.php文件,重新访问时候,
就开始重新安装

注:之所以重新安装是为了取上传地址的路径的

2.用phpMyAdmin打开数据库,分别导出新旧两个平台下的对应表的sql语句,建表和插入的

3.找新的平台下表wp_options 下字段为upload_path 可以看到对应的路径,然后替换旧平台下的路径

根据你的文章和附件的多少,可能替换的次数很多

4.接下来就是全部替换已经的url,全部换成新的地址(很多的哈)

5.接下来就删除原来的10张表,把你更改后的重新执行就ok了

——————————————————————————————–
话外:本人是也想连表的前缀也换掉的,数据全部导入后,前台一切正常,
可是后台怎么也上不去,报个500错误, 通过查看说是无权限访问,郁闷了好久,不得其法,
无奈之下简单对照了下新旧sql和源码,发现是新的表
前缀引起的,实在不想在去折腾再去查找更改,就继续用原来的表前缀,一切OK

dlight模板修改小记

星期二, 十一月 18th, 2008 | wordpress | 2 Comments

感觉这个模板的简约风格很喜欢,就是没有文章分类什么的,感觉不是很舒服,自己增加新功能,添加右侧的文章分类代码

1
2
<?php wp_list_cats('sort_column=name&#038;
optioncount=1&#038;hierarchical=0'); ?>

wp的code显示插件WP-Syntax的使用说明和more

星期一, 十一月 17th, 2008 | wordpress | 没有评论

自己装的是wp-syntax.0.8版本,现贴出使用,供自己方便查找

先展示一个<.!--more--.>

Wrap code blocks with <.pre lang="LANGUAGE" line="1" .> and `<./pre.>

where `LANGUAGE` is a [GeSHi](http://qbnz.com/highlighter/) supported language
syntax. See below for a full list of supported languages. The `line`
attribute is optional.

**Example 1: PHP, no line numbers**

› Continue reading

Search

相关文章

文章分类

Links

Meta