存档在 2010 年 8 月

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1282 post type-post status-publish format-standard hentry category-grass-roots-webmaster tag-mail-to-commenter tag-wordpress tag-164 tag-302">

Mail To Commenter插件使用中的两个问题

2010年8月31日

Mail To Commenter插件在人在岱北博客已经用了好久好久了,但是由于SunQ本身就是一个圡人,并不懂后台,所以之前用的主题都是集成了Mail To Commenter插件的主题,我也就没有做过什么设置的工作,但是最近换了个主题,却发现主题并没有集成Mail To Commenter插件,最直接的问题是,没有回复按钮,让回复评论变得很累。

前一段时间一直都懒,也就没在意这件事情,昨天ryan同学在评论我的博文《可怜之人必有可恨之处》时,建议我加上回复评论按钮,这时我才想起来,这个按钮已经空缺了好久了……

如何加入回复评论的按钮

在Mail To commenter插件的设置界面,有这么一句说明:

自定义按钮显示:
这部分用来设定mailtocommenter_button()函数的输出内容和格式。请在模板文件中插入<?php if(function_exists(‘mailtocommenter_button’)) mailtocommenter_button();?>代码用于生成按钮。

也就是说,只要在想要的地方插入想要出现的地方,就可以在那个地方显示你所设置的回复按钮……

可是,应该在哪里插入这段代码呢?

研究了半天我现在所使用的这个GenkiTheme主题,感觉要么是在single.php中修改,要么是在comments.php中修改。虽然不懂php,英语也是弱智级别,但是简单的词语还是懂一些的。

眼对眼研究了好久,觉得还是应该在comments.php中添加这个代码……

在comments.php中发现了这么一段代码:

<?php foreach ($comments as $comment) : ?>

        <li class="<?php echo $oddcomment; ?>" id="comment-<?php comment_ID() ?>">
            <?php if (function_exists(‘avatar_display_comments’)){ avatar_display_comments(get_comment_author_email(),’48’,”); } ?>&nbsp;&nbsp;<strong><?php comment_author_link() ?></strong> | <a href="#comment-<?php comment_ID() ?>" title=""><?php comment_date(‘F jS, Y’) ?> <?php _e(‘at’);?> <?php comment_time() ?></a> <?php edit_comment_link(‘e’,”,”); ?>

我想,这应该是评论的上方所出现的评论者信息栏吧,因为我看到了ID、date、time这样的字眼,而且重要的是,如果我用管理员登录后,会在这些信息的后面显示“e”,以用于编辑评论,而最后面那句“<?php edit_comment_link(‘e’,”,”); ?>”不正是编辑评论链接的表述嘛……

这正是我想放上回复评论按钮的地方,于是把那句代码粘贴在这段代码之后,更新文件。到前台刷新了一下,果然,评论按钮出现了!

解决邮件无发件人的现象

由于真的不懂代码,为了让自己的修改更保险一下,用Google搜了一下,虽然没有找到准确的答案,但是却找到了之前发现的一个问题的解决办法。

一年多以前了,2009年6月,自从wordpress升级到2.8以后,Mail To Commenter插件所发送的邮件就出现了问题:发送的邮件没有发件人,虽然基本功能还是能实现的,但是却真的有碍观瞻,说不定还会被人当作成垃圾邮件了……

在一个叫做Derek’s Blog的wordpress上,我找到了问题的解决办法:(以下内容转自:Mail To Commenter的未知发件人问题

修改Mail To Commenter插件目录下的文件mailtocommenter_functions.php,路径为****/wp-content/plugins/mailtocommenter,找到function mailtocommenter_send_email此行,照着修改(我是CP的),然后测试成功,收工。

function mailtocommenter_send_email($to,$subject,$message){
	$hostname = get_option('home');
	preg_match("/^(http:\/\/)?([^\/]+)/i",$hostname, $matches);
	$blogname = get_option('blogname');
	$blognameO = $blogname;
	$blogname .= " <no-reply@";
	$blogname .= $matches[2];
	$blogname .= ">";

	$charset = get_option('blog_charset');
	$headers  = "From: $blognameO <no-reply@$matches[2]> \n" ;
	$headers .= "MIME-Version: 1.0\n";
	$headers .= "Content-Type: text/html;charset=\"$charset\"\n";
	$to = strtolower($to);
	return @wp_mail($to, $subject, $message, $headers);
}
果然,按照Derek的方法修改之后,现在回复的邮件已经显示发件人了……
“困扰”了一年多的问题在偶然中找到了解决办法,正所谓“无心插柳柳成荫”呀……

启示

对网站做一些简单的修改,并不一定非要懂后台,懂代码,仔细分析一下代码内容,必要时借助一下Google,小问题也是可以轻松解决的!

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1281 post type-post status-publish format-standard hentry category-photo tag-46 tag-136">

奔腾的趵突泉

2010年8月29日

最近一段时间,济南的雨水比较丰盈,趵突泉的地下水位也是节节攀升,观察了一下,今天的水位是29.71米,据说如果再下几场雨的话,应该能突破30米大关,这可是几十年没有过的事情啦。

由于是晚上才赶到趵突泉公园,因此只能拍夜景了,说实在话,佳能小5毕竟不是专业的相机,想拍好夜景也不是那么容易……不过,幸好,小5还是有手动模式的,在手动模式下,尽量把光圈调大,快门调慢,还是可以能拍好的。

只可惜,因为没考虑到这一点,没有带三脚架,只能是靠在趵突泉边的护栏上,把相机固定一下,避免晃动。即便如此,最后拍出的照片中,真正可用的也就那么几张。

下面是我从所有的照片中挑出来的一张还看得过去的……说实在的,真没有排除趵突泉的美~

不过,小5的视频功能也还是不错的,看看吧,现在的趵突泉是最美的时候!

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1280 post type-post status-publish format-standard hentry category-hr tag-866 tag-867 tag-868 tag-785 tag-869">

女职工“三期”权益保护案例分析(济南市政策适用)

2010年8月27日

在劳动关系中,处于孕、产、哺乳期(俗称“三期”)的员工是受到特殊保护的,但是由于很多的劳动者对劳动法律法规的不了解或者不知情,造成了自己的利益受到了损害而不自知。

案情介绍

前几天有个朋友偶然之间告诉我了他老婆的遭遇:

他老婆小丽在2009年初到了一家单位信息管理方面的工作(没有签劳动合同、没有缴纳保险),之后发现怀孕了,在怀孕九个月的时候,单位告诉小丽让她先回家休息,等生完孩子再来上班。于是小丽把工作交接了一下,工作服等物品也交会公司后回家待产,在这期间,小丽的工资全部都停发了。不去上班不发工资,小丽也认为是理所应当的,于是在家的时候也没有考虑工资的问题。现在孩子已经出生六七个月了,单位也没有通知小丽去上班,小丽因为要照顾孩子也没有去单位报到。

后来,朋友把事情无意中告诉我之后,我给他做了一下分析,他才知道,原来他们的利益受到了侵害。

再后来,朋友去找了小丽单位的人力资源部,人力资源部的答复竟然是:

1、济南市规定,交满一年的生育保险之后,才能享受生育保险待遇。而小丽到公司不满一年就生孩子了,所以单位不管。

2、小丽在生孩子之前都没有过“实习期”,所以,单位也不会给她交保险。

3、小丽已经办完了离职手续,跟单位没有任何关系了,现在小丽的任何事情都不能再找单位了。

» 阅读更多: 女职工“三期”权益保护案例分析(济南市政策适用)

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1267 post type-post status-publish format-standard hentry category-memory category-photo tag-634 tag-865">

联想Z460……

2010年8月25日

上个周末,两天的时间基本上全部泡在了赛博数码广场,一直想买个笔记本电脑,趁着学生暑期结束,电子产品都在搞促销,我也趁此机会买一台。

先后看了多个品牌的笔记本,发现符合我要求的并不多,而且很多性价比并不高,唯有联想的几款倒是挺合我心意。

一个需要注意的问题是:济南的赛博数码广场,除了联想之外,鲜有500G以上的硬盘……这是我无情抛弃他们的主要原因。

据我估计,应该是这些品牌的旧货都还没有清掉,所以500G硬盘的电脑还没有大量的上货。

先后看了联想的Y460、V460的500G硬盘的配置,后来相中了V460,V460是一款商务机,i5-450,500G

硬盘/2G内存/GF310显卡512M显存/指纹识别,相对Y460来讲,cpu由i3-350升级到i5-450,显卡从GF330的1G显存降到GF310显卡512M显存,价格Y460做到5280,而周六的时候V460报价是5300。对于我不怎么玩游戏的人来说,V460的I5处理器还是更有吸引力一些……于是我决定要买V460了。

结果,周日再去赛博的时候,竟然被告知:V460涨价了,而且涨了150块钱……实在无法忍受!于是放弃!

又是在赛博里面逛,逛了足足一个下午,后来在另外一家联想的店里发现了这款Z460:

» 阅读更多: 联想Z460……

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1258 post type-post status-publish format-standard hentry category-hr tag-hr tag-531">

可怜之人必有可恨之处

2010年8月24日

今天,在济南本地的一个人力资源管理的QQ群里面,不知道怎么就聊起了HR在企业中地位的问题。HR们不约而同的抱怨,在企业里面人力资源部的地位太低下,老板根本就没有重视。

貌似,这是一个普遍的问题,在《杜拉拉升职记》中,有两次提到了“核心业务部门”和“支持部门”,往往“支持部门”总是得不到老板的重视,当然也无法拿到最优势的资源,即使是DB这样的跨国公司,HR们遇到市场销售部门也只能是低声下气的。

DB还是好的,起码HR虽然不是核心业务部门,但是也还是能拿到自己想要的资源的。但是在目前中国的很多企业当中,HR有的时候都无法得到自己想要的资源,甚至工作的开展都困难重重。

诚然,目前老板们不怎么重视HR部门,这是一个普遍现象。看到了群里面各位HR们的抱怨,我忽然想到了最近一两年一直在我脑海中盘旋的一句话:

可怜之人,必有可恨之处!

貌似这句话是佛教关于因果的理论。今生的一切包括快乐和痛苦都是前世行善、作恶的结果,前世干了什么样的事情,今生就要受什么样的报应。所以今世受苦、可怜的人前生一定做过坏事,是受到报应,所以说可怜之人必有可恨之处!

而如果我们抛开前世今生不说,仅看此生,那可怜之人是不是也有可恨之处呢?

我们不被老板重视,可以说是我们可怜。但是不被老板重视,仅仅是老板的问题吗?我们是不是也应该想想,我们给了老板什么,老板为什么、凭什么要重视我们?

我们是不是应该考虑这样一个问题,作为HR,我们为企业创造了哪些效益?直接效益肯定是没有,那间接的效益有没有可以让人看得见的?

大部分HR们的工作现状是:我们80%的时间都被事务型的工作所占用,另外20%的时间也不一定能做出什么可以提升企业效益的事情来,无法创造效益的部门,老板凭什么会重视?

同时,作为一个“支持部门”,对“核心业务部门”的支持能有多少呢?每天人力资源部都成了公司各种矛盾的集散地,一会有部门火烧眉毛的来找你要人了,HR开始张罗着去招聘;马上又有部门来说,新招来的人不合适啦……一搞绩效考核,弄得怨声载道;发个工资,还会有一些员工因为不知道什么的原因扣了的五块钱来找人力资源部的麻烦……

我们一直在做消防队,时时刻刻在忙碌着救火,天天忙得焦头烂额的,业务部门也没有领情;而我们也从未实现对业务部门真正的支持和帮助……

想想自己,确实,HR的工作得不到老板的重视是必然的……

那如果想要让老板重视起来,只能是尽快改进我们的工作。

PS:在分析问题的时候,如果问题的原因都是别人,那我们永远都没办法把问题解决或改善。所以,遇到问题,先从自身找原因,这样才能尽快的解决问题。

Warning: Use of undefined constant archives - assumed 'archives' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: Use of undefined constant page - assumed 'page' (this will throw an Error in a future version of PHP) in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32

Warning: A non-numeric value encountered in /www/wwwroot/daibei.info/wp-content/themes/cordobo-green-park-2/archive.php on line 32
class="post-1254 post type-post status-publish format-standard hentry category-memory">

七夕情人节

2010年8月16日

Google:

百度:

» 阅读更多: 七夕情人节