<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1265157664406575589</id><updated>2024-10-24T05:39:50.012-07:00</updated><title type='text'>阿聪</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://handkwang.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1265157664406575589/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://handkwang.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>阿聪</name><uri>http://www.blogger.com/profile/02581200345511568839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW9l1NpN_gMkK9THX5IY-qBhU6yTzeYMaTzsZ-NWGBcjhzrf_Bfrvh4GhsoMJJ4twrlAD73cZPh-qTmCPnjweeAUveIiWmh7qrfJ9ZIPsQt5grv-BZy3q9HaFxp06s_sM/s220/mini-me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1265157664406575589.post-7365982641278933805</id><published>2011-07-26T08:27:00.002-07:00</published><updated>2011-07-26T08:33:28.066-07:00</updated><title type='text'>Joomla的Myblog组件与Jcomments集成</title><content type='html'>原方法来自俄罗斯的Joomla的爱好者的论坛：&lt;a href=&quot;http://joomlaforum.ru/index.php/topic,41316.0.html&quot;&gt;http://joomlaforum.ru/index.php/topic,41316.0.html&lt;/a&gt;&lt;br /&gt;
我在Joomla 1.5.21 +Myblog 3.0.332+Jcomments 2.2.0.2 上测试通过！&lt;br /&gt;
1、 打开 /administrator/components/com_myblog/config.myblog.php；&lt;br /&gt;
2、查找：$db-&amp;gt;setQuery(&quot;SELECT id FROM #__components WHERE `option`=&#39;com_jomcomment&#39;&quot;)；&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 替换成：$db-&amp;gt;setQuery(&quot;SELECT id FROM #__components WHERE `option`=&#39;com_jcomments&#39;&quot;)；&lt;br /&gt;
3、查找：$db-&amp;gt;setQuery(&quot;SELECT count(*) FROM #__components WHERE `option`=&#39;com_jomcomment&#39;&quot;)；&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; 替换成：$db-&amp;gt;setQuery(&quot;SELECT count(*) FROM #__components WHERE `option`=&#39;com_jcomments&#39;&quot;)；&lt;br /&gt;
4、打开 /components/com_myblog/task/show.php；&lt;br /&gt;
5、查找：&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;jimport( &lt;span class=&quot;rem&quot;&gt;&#39;joomla.filesystem.file&#39;);&lt;/span&gt;

$file    = JPATH_PLUGINS . DS . &lt;span class=&quot;rem&quot;&gt;&#39;content&#39; . DS . &#39;jom_comment_bot.php&#39;;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (JFile::exists( $file ) )
{
require_once( $file );

// Check &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; admin allows user &lt;span class=&quot;kwrd&quot;&gt;to&lt;/span&gt; enable &lt;span class=&quot;kwrd&quot;&gt;or&lt;/span&gt; disable the comment &lt;span class=&quot;kwrd&quot;&gt;on&lt;/span&gt; the blog
&lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt;($_MY_CONFIG-&amp;gt;&lt;span class=&quot;kwrd&quot;&gt;get&lt;/span&gt;(&lt;span class=&quot;rem&quot;&gt;&#39;enableJCDashboard&#39;))&lt;/span&gt;
{
&lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt;(eregi(&lt;span class=&quot;rem&quot;&gt;&#39;\{!jomcomment\}&#39;,$row-&amp;gt;text))&lt;/span&gt;
{
$row-&amp;gt;text    = str_replace(&lt;span class=&quot;rem&quot;&gt;&#39;{!jomcomment}&#39;,&#39;&#39;,$row-&amp;gt;text);&lt;/span&gt;
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt;(eregi(&lt;span class=&quot;rem&quot;&gt;&#39;\{jomcomment\}&#39;,$row-&amp;gt;text))&lt;/span&gt;
{
$row-&amp;gt;text    = str_replace(&lt;span class=&quot;rem&quot;&gt;&#39;{jomcomment}&#39;,&#39;&#39;,$row-&amp;gt;text);&lt;/span&gt;
$row-&amp;gt;comments    = &lt;span class=&quot;str&quot;&gt;&quot;&quot;&lt;/span&gt;;
$row-&amp;gt;comments     = jomcomment($row-&amp;gt;id, &lt;span class=&quot;str&quot;&gt;&quot;com_myblog&quot;&lt;/span&gt;);
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt;(eregi(&lt;span class=&quot;rem&quot;&gt;&#39;\{jomcomment lock\}&#39;, $row-&amp;gt;text) )&lt;/span&gt;
{
$row-&amp;gt;text    = str_replace(&lt;span class=&quot;rem&quot;&gt;&#39;{jomcomment lock}&#39;,&#39;&#39;,$row-&amp;gt;text);&lt;/span&gt;
$row-&amp;gt;comments    = &lt;span class=&quot;str&quot;&gt;&quot;&quot;&lt;/span&gt;;
$row-&amp;gt;comments     = jomcomment($row-&amp;gt;id, &lt;span class=&quot;str&quot;&gt;&quot;com_myblog&quot;&lt;/span&gt; , &lt;span class=&quot;rem&quot;&gt;&#39;&#39; , &#39;&#39; , true );&lt;/span&gt;
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt;
{
// &lt;span class=&quot;kwrd&quot;&gt;Default&lt;/span&gt;
// User &lt;span class=&quot;kwrd&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;not&lt;/span&gt; allowed &lt;span class=&quot;kwrd&quot;&gt;to&lt;/span&gt; enable &lt;span class=&quot;kwrd&quot;&gt;or&lt;/span&gt; disable comments
// so we use the &lt;span class=&quot;kwrd&quot;&gt;default&lt;/span&gt; value &lt;span class=&quot;kwrd&quot;&gt;to&lt;/span&gt; display
$row-&amp;gt;comments    = &lt;span class=&quot;str&quot;&gt;&quot;&quot;&lt;/span&gt;;
$row-&amp;gt;comments     = jomcomment($row-&amp;gt;id, &lt;span class=&quot;str&quot;&gt;&quot;com_myblog&quot;&lt;/span&gt;);
}
}
&lt;span class=&quot;kwrd&quot;&gt;else&lt;/span&gt;
{
// User &lt;span class=&quot;kwrd&quot;&gt;is&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;not&lt;/span&gt; allowed &lt;span class=&quot;kwrd&quot;&gt;to&lt;/span&gt; enable &lt;span class=&quot;kwrd&quot;&gt;or&lt;/span&gt; disable comments
// so we use the &lt;span class=&quot;kwrd&quot;&gt;default&lt;/span&gt; value &lt;span class=&quot;kwrd&quot;&gt;to&lt;/span&gt; display
$row-&amp;gt;comments    = &lt;span class=&quot;str&quot;&gt;&quot;&quot;&lt;/span&gt;;
$row-&amp;gt;comments     = jomcomment($row-&amp;gt;id, &lt;span class=&quot;str&quot;&gt;&quot;com_myblog&quot;&lt;/span&gt;);
}
}
&lt;/pre&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, &quot;Courier New&quot;, courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;&lt;br /&gt;
&lt;br /&gt;
替换成：&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;jimport( &lt;span class=&quot;str&quot;&gt;&#39;joomla.filesystem.file&#39;&lt;/span&gt;);
$file = JPATH_SITE . DS . &lt;span class=&quot;str&quot;&gt;&#39;components&#39;&lt;/span&gt; . DS . &lt;span class=&quot;str&quot;&gt;&#39;com_jcomments&#39;&lt;/span&gt; . DS . &lt;span class=&quot;str&quot;&gt;&#39;jcomments.php&#39;&lt;/span&gt;;
&lt;span class=&quot;kwrd&quot;&gt;if&lt;/span&gt; (JFile::exists($file)) {
require_once($file);
$row-&amp;gt;comments = JComments::showComments($row-&amp;gt;id, &lt;span class=&quot;str&quot;&gt;&#39;com_myblog&#39;&lt;/span&gt;, $row-&amp;gt;title);
}&lt;/pre&gt;&lt;br /&gt;
6、打开 /components/com_myblog/functions.myblog.php；&lt;br /&gt;
&lt;br /&gt;
7、查找：$db-&amp;gt;setQuery(&quot;SELECT COUNT(*) FROM #__jomcomment WHERE contentid=&#39;$article_Id&#39; AND (`option`=&#39;$com&#39; OR `option`=&#39;com_content&#39;) AND published=&#39;1&#39;&quot;)；&lt;br /&gt;
&lt;pre&gt;&lt;span style=&quot;font-family: Arial;&quot;&gt;替换成：&lt;/span&gt;$db-&amp;gt;setQuery(&quot;SELECT COUNT(*) FROM #__jcomments WHERE object_id=&#39;$article_Id&#39; AND (`object_group`=&#39;$com&#39; OR `object_group`=&#39;com_content&#39;) AND published=&#39;1&#39;&quot;);&lt;/pre&gt;&lt;pre&gt;8、查找：&lt;/pre&gt;&lt;pre&gt;$strSQL = &quot;SELECT COUNT(*) FROM #__jomcomment AS a &quot;
. &quot;INNER JOIN #__content AS b &quot;
. &quot;WHERE b.id=a.contentid &quot;
. &quot;AND a.option=&#39;com_myblog&#39; &quot;
. &quot;AND b.created_by=&#39;{$uid}&#39;&quot;;&lt;/pre&gt;&lt;pre&gt;替换成：&lt;/pre&gt;&lt;pre&gt;$strSQL = &quot;SELECT COUNT(*) FROM #__jcomments AS a &quot;
. &quot;INNER JOIN #__content AS b &quot;
. &quot;WHERE b.id=a.object_id &quot;
. &quot;AND a.object_group=&#39;com_myblog&#39; &quot;
. &quot;AND b.created_by=&#39;{$uid}&#39;&quot;;&lt;/pre&gt;&lt;pre&gt;9、在后台清空缓存之后，就可以在myblog的文章下面看到Jcomments的评论输入框了。&lt;/pre&gt;&lt;pre&gt;10、说明，这些修改，不确定是不是支持{jcomments on}这些参数。&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://handkwang.blogspot.com/feeds/7365982641278933805/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://handkwang.blogspot.com/2011/07/myblogjcomments.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1265157664406575589/posts/default/7365982641278933805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1265157664406575589/posts/default/7365982641278933805'/><link rel='alternate' type='text/html' href='http://handkwang.blogspot.com/2011/07/myblogjcomments.html' title='Joomla的Myblog组件与Jcomments集成'/><author><name>阿聪</name><uri>http://www.blogger.com/profile/02581200345511568839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW9l1NpN_gMkK9THX5IY-qBhU6yTzeYMaTzsZ-NWGBcjhzrf_Bfrvh4GhsoMJJ4twrlAD73cZPh-qTmCPnjweeAUveIiWmh7qrfJ9ZIPsQt5grv-BZy3q9HaFxp06s_sM/s220/mini-me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1265157664406575589.post-5819630631885913974</id><published>2011-07-05T03:21:00.001-07:00</published><updated>2011-07-05T03:21:08.201-07:00</updated><title type='text'>Livezilla升级指南</title><content type='html'>&lt;p&gt;1、备份Livezilla数据库和文件夹；  &lt;p&gt;2、安装新版本（full）；  &lt;p&gt;3、启动Livezilla Server Admin  &lt;p&gt;4、  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgKDnViKbOeAQ-E0b0TLeLoX2i7-4-JMN-J1TDSWcS7t_IS2Hb81q9WjZs55OSLPCVsdx5Juf70Rt9irs_24uzi9suvwPQNq5D0VeidenYRGpz7jQHCWC7m2-3wOHm1TbwZ0lHxH-xNXgk/s1600-h/Image%25255B3%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;Image&quot; border=&quot;0&quot; alt=&quot;Image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH2sILBu3AEMsOEYGwCeMY_-wbbLg3miRDYdpS6SjAYXMkO4W21NPdkaFy-3Y3UocP2VWiPHCDJH36Sr8fU3Y39DjCmIx2D_3NllyY38xcwj9S6eGLc8_wI48HPTn6dW8tZsdJE5i212A/?imgmax=800&quot; width=&quot;242&quot; height=&quot;244&quot;&gt;&lt;/a&gt;  &lt;p&gt;5、  &lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhV_CHIDW90Q417fdNTBycjAWUxT4ZrkCAnuMGUHD7dhK-qvMg6hajepMeUWZwi3tLkME8piA4th9P2B6l1Uoeuoiia3SO1KKfnaXKvOmFEckQHHp_-ntTr64qH1LtS6WPUNX2WBMn0gkg/s1600-h/Image%2525281%252529%25255B3%25255D.png&quot;&gt;&lt;img style=&quot;background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px&quot; title=&quot;Image(1)&quot; border=&quot;0&quot; alt=&quot;Image(1)&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi072Nq78ZvN6J0VVIHSS5zXwWfFSTJ1DgwDymYJMsd9iVyqZD2cBFwXVeetp3nsAJREoGDMAlKVVolmnRD4CwiLPju9_EoWSsVf6DXQJefKstpReVbqLEw6db0bYRbHgCDyPil-UcPNuY/?imgmax=800&quot; width=&quot;244&quot; height=&quot;184&quot;&gt;&lt;/a&gt;  &lt;p&gt;6、之后新建管理员，然后输入 正确的FTP账号密码、上传的路径、SQL的账号密码、数据库名、前缀，完成升级；  &lt;p&gt;7、重要，恢复Group和User  &lt;p&gt;将备份的Livezilla文件夹中的_groups和_internal文件夹，还原。  &lt;p&gt;PS：还原之后，新建的管理员账号将失效，还原成以前的了。    </content><link rel='replies' type='application/atom+xml' href='http://handkwang.blogspot.com/feeds/5819630631885913974/comments/default' title='博文评论'/><link rel='replies' type='text/html' href='http://handkwang.blogspot.com/2011/07/livezilla.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1265157664406575589/posts/default/5819630631885913974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1265157664406575589/posts/default/5819630631885913974'/><link rel='alternate' type='text/html' href='http://handkwang.blogspot.com/2011/07/livezilla.html' title='Livezilla升级指南'/><author><name>阿聪</name><uri>http://www.blogger.com/profile/02581200345511568839</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjW9l1NpN_gMkK9THX5IY-qBhU6yTzeYMaTzsZ-NWGBcjhzrf_Bfrvh4GhsoMJJ4twrlAD73cZPh-qTmCPnjweeAUveIiWmh7qrfJ9ZIPsQt5grv-BZy3q9HaFxp06s_sM/s220/mini-me.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH2sILBu3AEMsOEYGwCeMY_-wbbLg3miRDYdpS6SjAYXMkO4W21NPdkaFy-3Y3UocP2VWiPHCDJH36Sr8fU3Y39DjCmIx2D_3NllyY38xcwj9S6eGLc8_wI48HPTn6dW8tZsdJE5i212A/s72-c?imgmax=800" height="72" width="72"/><thr:total>1</thr:total></entry></feed>