Joomla 几个常见问题的解决
1,clean cache时,出现Fatal error: Only variables can be passed by reference in /home/bb/public_html/seo/administrator/components/com_cache/admin.cache.php on line 85
解决:replacing at line 77 of admin.cache.php with
$limit = $mainframe->getUserStateFromRequest( 'global.'.$option.'.limit', 'limit', $mainframe->getCfg('list_limit'));
2,批量替换文章中的特定内容:
UPDATE jos_content SET fulltext = replace(fulltext,"被替换的内容","替换成的内容");
3,出现两个标题的问题
menu-系统参数-显示页面标题-否 ,这个BUG好像在1.5.5中已经修正了。
This entry was posted on 08/08/2008, 3:39 pm and is filed under Joomla. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
No comments yet.
No trackbacks yet.
lighttpd rewrite for joomla sh404sef
I switch apache to lighttpd on my VPS with Kloxo, everything are running well except one Joomla based site. It mainly because the Joomla site has SH404SEF installed.
I find “How do i configure my lighttpd server” on FAQ of SH404SEF site, now everything of this Joomla site runs well.
Here is how to configure the Kloxo [...]
Joomla module-USGS Earthquake-抗震救灾 众志成城
14/05/2008 - 10:50 pm
Tags: Earthquake, Joomla, module
Posted in Joomla | 2 Comments
抗震救灾 众志成城 大爱无疆
北京时间5月12日下午发生在四川汶川的强地震,让我们的同胞遭受巨大的磨难,让我们的祖国经受巨大的考验,也让我们面对噩耗承受着巨大的悲痛。面对这一巨大的灾难,它考验着我们国家应对灾难的能力、它考验着我们民族面对灾难的勇气、它考验着我们每一个企业的社会责任、它也考验着我们每一为站长、每一个国人的良心。虽然他们失去了家园,失去了亲人,但是还有13亿人民支持着他们!
使用Joomla建站的站长们,快快行动起来,加入USGS Earthquake这个module,让会世界都知道China earthquake吧!
模块下载地址:http://www.flakkeeweer.nl/component/option,com_docman/task,doc_details/gid,2/Itemid,137/lang,en/
虽然是1.0的,我试了,1.5可以用的!
注意:要修改里面的经度和纬度,四川汶川县的经度和纬度大约是104.95 E 32.10 N
后台模块选项里面,Latitude是纬度,Longitude是经度,别搞错了哦。
[转]如何给每个category 以 table list 方式显示的文章列表设置默认显示条数
21/04/2008 - 7:53 pm
Tags: Category, Joomla, Layout
Posted in Joomla | 4 Comments
转自:http://www.maycode.com/index.php/hotspot/39-joomla-inspect/407-joomla-develop.html
Joomla 1.5.x的一个”BUG”吧,使用Category List Layout的格式输出分类文章的时候,默认是输出该分类的所有文章,如果文章数量很多的话,会严重影响网页打开的速度,而且页面也显得不美观,在后台一直找不到设置的地方,模版中也没找到,换了几个模版都是一样,这个问题多日困扰着我,常去的几个Joomla站点都找过了,发现很多人都有这个问题,都没有解决方法.
昨天遇到,终于在Joomla-开源天空找到了答案,谢谢这个网站的站长.
现在全文转载一下:
我们知道,Joomla!中,每个文章分类默认的显示方式以表格的方式显示,每页显示的条数可以由用户在表格顶部的地方进行设置。可是对于一个新的 到访者,默认文章列表将显示所的条数,如果文章非常多,网速又慢,对于一个用户是不会等待这个页面下载完毕的,可能会早早的就离开了你的网站,因此需要设 置在这种情况下,每个页面显示文章的数量。
我们需要修改 components/com_content/views/category/view.html.php文件 第68行,改为:
if ($layout == ‘blog’) {
if($limit == 0) $limit = $intro + $leading + $links;
}
else {
if($limit == 0) $limit = 20;
}
这段代码修改后,就是对于layout不是blog,并且又没有指定每页显示数量的情况下,设置每页显示数目为20.
提供一份我修改好了的文件,是1.5.3版本的,下载地址:
http://www.mediafire.com/?tk9cznjiyty
Joomla:export_content problem-title alias
When I transfer all my joomla 1.0’s content to 1.5,I found that the title alias was not transfered.I use the sh404SEF component to rewrite my site URL using the title alias as the SEF URL,so this is a big problem!
But fortunately,I find the way so solve this problem.
In PhpMyAdmin:
1,chose the jos_content table,copy it structure and [...]
OpenSEF配置和使用
1:GoogleSitemap扩展的一个小问题
默认的生成XML文件的位置是:/components/com_sef/google_opensef.xml
而robots.txt有这么一条:
Disallow: /components/
所以说这个设计比较不人性化,而可喜的是在设置里面是可以修改XML文件位置的。
Edit Configuration--Google Sitemap-Sitemap location: 下面一行留空,然后把/components/com_sef/google_opensef.xml这个文件移动到根目录下面重新生成就OK了,不然的话它会提示你XML文件不存在的。
今天先写到这里,以后慢慢介绍OpenSEF和它的一些问题。
2,还是GoogleSitemap的问题
我在启用了OpenSEF的404 Not Found URL功能后,把所有404页面都转向了首页,但问题也来了,和ARTIO JoomSEF一样,GoogleBot会找不到你的SiteMap验证文件,虽然它是存在的,它可以打开的,GoogleBot好笨啊。
目前我还没找到解决的方法,只能停用这个功能。
UPDATE:
3,投票(Rating)系统不能正常工作,点击投票后自动返回设定的404页面
进入OpenSEF,Configuration-Features-Enforce Canonical URLs?选择NO即可。
If an inbound request uses an internal Joomla! address directly, but a friendly URL mapping exists for that address, redirect (301 Moved Permanently) them to the friendly URL instead. This is a recommended setting for URL consistency and SEO.
Joomla! table relationships
06/09/2007 - 4:48 pm
Tags: database, Joomla
Posted in Joomla | No Comments
joomla数据库表结构与关系图解
joomla 1.0.X
joomla 1.5
Joomla:隐藏文章的简介
01/08/2007 - 2:23 pm
Tags: intro text, Joomla
Posted in Joomla | No Comments
在发布文章的时候后台有两个编辑器,一个是”文字介绍: (必须的) “,另一个是:”主介绍: (不是必须的)“。
不难理解,文字介绍是文章的一段简介,按照中国人的思维来,在这里输入一些简介文字后,就可以在标题周围显示出这段简介文字了,这是很对的。但是有个问题,当你点击这个带有简介文字的标题后,你会发现它并不像国内的CMS一样,而是显示了两次这段简介文字。这,的确是一个令头痛的问题,所以我一般都不太用这个功能,假冒偶尔用的时候还是把文章分面简单和正文两部分,正文呢就不再输入简介文字了。这个可能是我们中国人的习惯吧,总喜欢把文章的第一段的一部分当成简介文字。
现在,我们可以通过修改一个文件来实现符合我们国人习惯的操作,方法来自于Joomla之门。
打开你的“Joomla安装目录/administrator/components/com_content/content.xml”这个文件,找到大约28行的这段代码:
<param content:encoded=”Show/Hide the intro text” type=”radio” name=”introtext” label=”Intro Text” default=”1″ />
修改为:
<param content:encoded=”Show/Hide the intro text” type=”radio” name=”introtext” label=”Intro Text” default=”0″ />
其实就是把本来的显示intro text的值改为了0而已。
后来我发现,有时候这样修改还是不能隐藏, 不知道是什么原因.
还有一点,对于前台发布的文章和修改之前发布的文章是不起作用的,只对修改之后从后台发布文章起作用.
Joomla!模板制作助手–Joomla Tkit 2.0
12/07/2007 - 12:18 pm
Tags: Joomla, template
Posted in Joomla | 2 Comments
Joomla Tkit 的全名应该是 Media 65 Joomla Template Kit 2.0 for Dreamweaver MX,MX 2004,DW8。这是一个针对 DreamWeaver 的扩展插件。需要安装在DW里面才能使用。因此,下载此工具之前,请确认你已经安装了 DW 。
下载后将zip包解压,得到一个 JoomlaTKit2.0.mxp 文件。
启动DW,点击菜单上“帮助 -> 扩展管理”,在弹出的窗口中点击工具栏左侧第一个按钮“安装新扩展”,然后定位到刚刚解压得到的 .mxp 文件。就完成了安装。这时,DW的工具栏上就会多出一个按钮标签,叫做 Joomla Template Kit 2.0。制作模板过程中,点击此标签,可以找到一个插入按钮,插入各种位置函数。
具体使用很方便,在布局里面选择JoomlaTKit2.0就行了.
Download:
Joomla Tkit
VM(virtue mark)常见问题整理(不断更新中)
10/06/2007 - 11:14 am
Tags: component, Joomla, virtue mark
Posted in Joomla | No Comments
今天使用开始学习使用virtue mark这个电子商场扩展,此日志记录整理使用过程中的一些问题及解决方法.
1,VM下载
目前最新版本为1.0.10,可以到官方网站下载.下载页面,下载VirtueMart 1.0.10 COMPLETE PACKAGE.
2,VM中文包
可以到JoomlaGate下载
下载解压后上传到/administrator/components/com_virtuemart/languages/目录就可以使用了.
3,去掉powered by virtue mark版权信息.
将administratorcomponentscom_virtuemarthtmlfooter.php中的内容注释掉就ok了
4,把州名改为中文后出现乱码的修改方法
修改admin_files/classes/ps_html 中第249行的
$script .= “states[".$i++."] = new Array( ‘”.$db->f(“country_3_code”).”‘,’”.$dbs->f(“state_2_code”).”‘,’”.htmlentities($dbs->f(“state_name”), ENT_QUOTES).”‘ );n”;
修改为:
$script .= “states[".$i++."] = new Array( ‘”.$db->f(“country_3_code”).”‘,’”.$dbs->f(“state_2_code”).”‘,’”.htmlentities($dbs->f(“state_name”), ENT_QUOTES,”utf-8″).”‘ );n”;
AllVideos Plugin音像引用插件
05/06/2007 - 7:30 pm
Tags: AllVideos Plugin, component, Joomla
Posted in Joomla | No Comments
In this version, the AllVideos Plugin gives you the ability to stream video content from EVEN MORE “third-party” providers like YouTube etc. Supported video providers as of version 2.x are:
1. Google Video International
2. Google Video Australia
3. Google Video Deutchland (Germany)
4. Google Video Espana (Spain)
5. Google Video France
6. Google Video Italia (Italy)
7. Google Video Nederland (The [...]