Unicac's Blog
No pain, no gain! 只有经历,才感觉可贵,只有坚强,才能出众!
  • Home
  • 留言板
  • 友情链接
  • 关于unicac
  • Subscribe
Browse: Home / WordPress

WordPress

CoolCode—WordPress 插件使用方法

By unicac on 2009年12月9日

首先,下载并解压缩到您的 WordPress 插件,然后在您的 WordPress 中激活该插件就可以了。 关闭WordPress所见即所得编辑模式,使用代码编辑模式! 使用的语法是: <coolcode>代码</coolcode> 如果要加亮具体的语言,可以用 lang 属性来指定: <coolcode lang="程序设计语言">代码</coolcode> 如果不需要行号,可以使用 linenum 属性来指定: <coolcode lang="程序设计语言" linenum="off">代码</coolcode> 如果希望可以直接以文件下载代码,可以使用 download 属性来指定: <coolcode lang="程序设计语言" download="文件名.扩展名">代码</coolcode> 这三个属性可以组合使用,互不影响。 目前支持的程序设计语言有: actionscript cpp css diff dtd html java javascript mysql perl php python ruby sql xml 更多详细信息请查看作者原文!

Posted in WEB++技术 | Tagged WordPress | Leave a response

Widget Logic 插件

By unicac on 2009年10月21日

Widget Logic 插件设置一些常用的标记 is_home() 主页 is_single() 文章页 is_page() 页面 is_category() 文章分类页 is_tag() 文章标签页 is_archive() 归档页 is_404() 404页 is_search() 搜索结果页 is_feed() 订阅页 Widget Logic 插件语法 ||表示或,&&表示和,!表示非,示例语言如下: is_home() 仅主页显示 !is_home() 除主页以外的页面显示 !is_category(5) 仅在ID非5的分类显示 is_home() || is_category(’baked-goods’) 在主页或名称为baked-goods的分类显示 is_page(’about’) 仅在关于页显示

Posted in 生活、情感与见闻 | Tagged WordPress | 1 Response

WordPress 更新到了2.8.4

By unicac on 2009年08月13日

WordPress 更新到了2.8.4,这两个月没记错的话,已经更新了三次了!汗啊! http://cn.wordpress.org/

Posted in WEB++技术 | Tagged WordPress | Leave a response

WordPress侧边栏调用最新评论

By unicac on 2009年08月11日

WordPress侧边栏调用最新评论 <?php global $wpdb; $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url, SUBSTRING(comment_content,1,18) AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = ’1′ AND comment_type = ” AND post_password = ” ORDER BY comment_date_gmt DESC LIMIT 10"; $comments = $wpdb->get_results($sql); $output = $pre_HTML; foreach ($comments as [...]

Posted in WEB++技术 | Tagged WordPress | 2 Responses

MS好了,师傅辛苦了!

继续测试imagecreatefromstring() [function.imagecreatefromstring]

By unicac on 2009年06月23日

Posted in WEB++技术 | Tagged WordPress | 3 Responses

测试imagecreatefromstring() [function.imagecreatefromstring]

By unicac on 2009年06月17日

测试imagecreatefromstring() [function.imagecreatefromstring] 还是出现下面这个。。。。。 Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build in /usr/local/www/user_www/unicac/wp-admin/includes/image.php on line 147 Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build in /usr/local/www/user_www/unicac/wp-admin/includes/image.php on line 147 Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in this PHP build in /usr/local/www/user_www/unicac/wp-admin/includes/image.php on line 147 Warning: imagecreatefromstring() [function.imagecreatefromstring]: No JPEG support in [...]

Posted in WEB++技术 | Tagged WordPress | Leave a response

情非得已!换博客系统了!

情非得已!换博客系统了!

By unicac on 2009年06月7日

由于操作不当,博客数据被删除了!哭! 所有的东西都没了! 情非得已!重新建立了这个新的博客,换了大家都在用的WordPress系统,其实原来的PJBLOG真的蛮不错!等我好好整理好东西之后,我再把大家的链接重新加上!如果有漏掉了哪位的链接的话,麻烦给我留言一下,我会第一时间给您加上的! 欢迎大家交换友情链接,联系EMAIL:unicac@unicac.com

Posted in 生活、情感与见闻 | Tagged WordPress | 8 Responses

日志分类

  • JavaScript
  • WEB++技术
  • 生活、情感与见闻

Archives

  • 2010 年八月
  • 2010 年七月
  • 2010 年六月
  • 2010 年五月
  • 2010 年四月
  • 2010 年三月
  • 2010 年二月
  • 2010 年一月
  • 2009 年十二月
  • 2009 年十一月
  • 2009 年十月
  • 2009 年九月
  • 2009 年八月
  • 2009 年七月
  • 2009 年六月