25
08,2008
Category:视频部落 » 

WordPress Theme 评论表情(smilies)功能增强页面1,387℃

 | 23 条评论
1 分 当我没看2 分 好臭啊3 分 看上去一般4 分 我会收藏5 分 很精彩,天天来看 (1人投票,平均5.00分,总分5分)
Loading ... Loading ...

使用WordPress的很多用户都知道,alexking为WordPress写了一个表情插件wp-grin,能让你在撰写日志和评论的时候以所见即所得的方式添加WordPress自带的表情符。但是在奇趣资讯所使用的LightBreaker主题中wp-grin一只都不能被调用成功,索性我就放弃了wp-grin,自己用JavaScript写了一个smiley.php页面,在评论的textarea上面调用。

直接在主题(theme)中嵌入页面与安装wp-grin插件相比,有一些优点:

  1. 使用简单的一个JavaScript函数,基本不会影响页面速度。
  2. 出错少,不会出现像插件调用的兼容性问题。
  3. 减少插件的使用,会提高WordPress的速度。

当然在使用该功能页面上,也会稍微麻烦点。使用方法请大家看下面:

  1. 将smiley.php页面下载并放到你所使用主题(theme)的目录下。
  2. 打开comments.php页面,根据comments.php页面相关内容,修改smiley.php页面(可根据smiley.php页面内相关行的注释说明进行。

    查找comments.php中:

    <form action="<?php echo get_option(’siteurl’); ?>/wp-comments-post.php"

    <textarea name="

    记录下两行后面各自的name=“值”的值,再查找smiley.php中:

    var txtarea = document.comments_form.comment;

    caretPos.comment = caretPos.comment.charAt(caretPos.text.length – 1) ==

    将其相对应的红色、蓝色部分修改。

  3. 查找comments.php中:

<textarea name="

<?php include (TEMPLATEPATH . ‘/smiley.php’); ?>

该行代码添加到先前代码之前。这样就修改好了你的主题(theme)。

    1. smiley.rar  下载
    2. smiley.zip  下载

    相关文章

    25
    04,2008
    Category:视频部落 » 

    Authorware扩展函数下载1,394℃

     | 暂无评论
    1 分 当我没看2 分 好臭啊3 分 看上去一般4 分 我会收藏5 分 很精彩,天天来看 (2人投票,平均5.00分,总分5分)
    Loading ... Loading ...

    authorware很多功能都要通过扩展函数来实现,下面给出一些常见的authorware扩展函数下载地址:

    下载地址1:http://www.yufeng21.com/book/authorware/images/u32.zip
    u32.zip 包括a5wmme.u32、alTools.u32、anicur.u32、AnimGif.u32、budkey.u32、COVER.U32、 MIDILOOP.U32、mp3player.U32、tMsControls.u32、tMsDSN.u32

    下载地址2:http://www.yufeng21.com/down/ucd/ucd2.zip
    ucd2.zip包括 Budapi.u32、Dirdlg.u32、TMSystem.u32、MSAgent.u32

    下载地址3:http://www.yufeng21.com/down/ucd/ucd3.zip
    ucd3.zip包括 SyncSound.u32、ftp.u32、Odbc.u32、InstanceControl.u32等。

    下载地址4: http://www.yufeng21.com/down/ucd/ucd4.zip
    ucd4.zip包括HelpAucd.u32、MSAgent2.u32、tMsClipboard.u32、xjtrayicon.u32

    友情提示:请大家用迅雷下载,这样更能搜索到资源!

    相关文章

    05
    02,2008
    Category:视频部落 » 

    我使用的wordpress插件1,937℃

     | 3 条评论
    1 分 当我没看2 分 好臭啊3 分 看上去一般4 分 我会收藏5 分 很精彩,天天来看 (暂无评分)
    Loading ... Loading ...

    没事儿晒晒我使用的wordpress插件,同时也给大家推荐一些比较有价值的插件。

    Simple Tags1.3Simple Tags : Extended Tagging for WordPress 2.3. Autocompletion, Suggested Tags, Tag Cloud Widgets, Related Posts, Mass edit tags ! 作者:Amaury BALMER. 提供基于tags(标签)的一系列强大功能,并提供相关文章等功能。
    鲜果 Digg 按钮 1.0自动在文章末尾显示 鲜果 Digg 按钮 作者:Denis. Denis 同学做的插件,方便的为文章添加鲜果的Digg按钮。
    ©Feed 4.2Extends the feed! A report of copyright, a digital fingerprint and the IP of the feed reader can be added. In addition, some search engines are scanned for the digital fingerprint in order to find possible content theft. The feed can be also be supplemented with comments and topic-relevant contributions. The complete RSS feed can be delivered even if the <--more--> tag is used in WP 2.1+. It is possible to view related post using the plugin Simple Tagging or Simple Tags. 作者:Frank Bueltge. 为你的文章输出添加版权、广告、数字指纹等,同时支持feed全文输出(解决<!-more->阶段问题)。
    Akismet 2.1.3Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a WordPress.com API key to use it. You can review the spam it catches under “Comments.” To show off your Akismet stats just put <?php akismet_counter(); ?> in your template. See also: WP Stats plugin. 作者:Matt 功能强大的anti-spam(反垃圾留言)插件。
    All in One SEO Pack 1.4.5.3Out-of-the-box SEO for your Wordpress blog. 作者:uberdose. 优化你网站的SEO。
    Contact Form ][ 2.0.13Contact Form ][ is a drop-in form that allows site visitors to contact you. It can be implemented easily (via QuickTags) within any post or page. This version is *specifically* for WordPress 2.x only. 作者:Chip Cuccio. IT·资讯 那个 投稿 页面就是这个东东弄的。
    Dagon Design Sitemap Generator 3.12Generates a fully customizable sitemap 作者:Dagon Design. 为博客制作archives(归档)页面、
    Dashboard for WordPress Chinese Group 1.0把 incomming links 改成 Technorati,把 Development Blog 改成 WordPress 中文团队博客,把 Other WordPress News 改成 WordPress 中文团队成员博客 作者:Denis. Denis同学的新东东。详细说明…Dashboard Chinese 2.0
    Democracy 2.0.1This poll plugin is easy to use, install, and manage. It uses AJAX to load data, making it quick and fun to use. Add

    {democracy:*id*}

    to your posts to include polls in your posts, where *id* corresponds to the ID of your poll. 作者:Andrew Sutherland.

    投票插件,Jiang文章中介绍的。
    Democracy Widget1.0Adds a sidebar widget for use with Andrew Sutherland’s Democracy Poll widget. 作者:Andrew Sutherland. 同上
    Google XML Sitemaps
    3.0.3This plugin will generate a sitemaps.org compatible sitemap of your WordPress blog which is supported by Ask.com, Google, MSN Search and YAHOO. Configuration Page 作者:Arne Brachhold.
    提交网站Sitemaps到Google的东东。
    Gravatar2 2.7.0Implements Gravatars (global avatars: gravatar.com) with enhanced caching support, cron support, & administrative interface to control default options. Registered users can use local Gravatars (also cached). Copyright 2006 Kip Bond; Licensed under the terms of the GPL. 作者:Kip Bond. 访客头像插件。
    Gravatars2 WP-Cron1.1Refreshes the cached gravatar images using a pseudo-cron implementation — Requires WP-Cron (http://skippy.net/blog/2005/10/09/wp-cron-14/) & Gravatars2 (http://zenpax.com/gravatars2/) 作者:Kip Bond. 同上
    iMax Width1.2Set a maximum image width so large inline images don’t mess up your WordPress theme. Can automatically add height and width params to all inline IMG tags to smooth page load and physically resize large image files to save space. 作者:Erich Luedtke (Sol Design). 限制文章图片宽度的插件。
    Language Translator1.0Adds a multi-language sidebar widget which enables visitors to translate your blog in their own language. 作者:Lancelhoff. 通过Google,将网站翻译为多国语言的插件,提供Sidebar(侧边栏)支持。
    MightyAdsense4.1Keep your adsense code & output it in posts. 作者:mightyhitter. 强大的网站广告管理插件,能方便的在网站中各个位置插入公告。
    Permalink Redirect0.8.1Permalink Redirect ensures that pages and entries are always accessed via the permalink. Otherwise, a 301 redirect will be issued. 作者:Scott Yang. 能有效的更改、修正你的permalink(固定连接)。
    Share This1.4Let your visitors share a post/page with others. Supports e-mail and posting to social bookmarking sites. Thanks to Thomas McMahon for footwork on the URLs. Questions on configuration, etc.? Make sure to read the README. 作者:Alex King. 分享插件,又是Denis同学的修改作品。
    Show Top Commentators1.05Encourage more feedback and discussion from readers, by rewarding them every time they post a comment! Readers with the most comments are displayed on your Wordpress blog, with their names (linked to their website if they provided one). 作者:Nate Sanden. 显示评论者评论次数、排名。
    WP-PageNavi2.20Adds a more advanced paging navigation to your WordPress blog. 作者:Lester ‘GaMerZ’ Chan. wordpress博客分页功能。
    WP-PostViews1.20Enables you to display how many times a post/page had been viewed. It will not count registered member views, but that can be changed easily. 作者:Lester ‘GaMerZ’ Chan. 文件浏览量插件。
    WP-PostViews Widget1.20Adds a PostViews Widget to display most viewed posts and/or pages on your sidebar. You will need to activate WP-PostViews first. 作者:Lester ‘GaMerZ’ Chan. 同上,sidebar插件。
    WP-Sticky1.10Adds a sticky post feature to your WordPress’s blog. Modified from Adhesive by Owen Winkler. 作者:Lester ‘GaMerZ’ Chan. 文章 置顶 插件。
    wp slug in english or pinyin1.4set slug from title or google translate or pinyin 作者:偶爱偶家. 文章 permalink 自动添加、翻译插件。

    相关文章