Support jOOmla! Autoit!
vm模块中显示产品图片的名称放在图下方 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-08-03 | View Count View: 9815 | Digg Count Digg: 52

修改文件:ps_product.php

方法:将2104与2105两行

$html .= "<span style=\"font-weight:bold;\">".$db->f("product_name")."</span>\n";
$html .= "<br />\n";

移动得到他下面11行左右的

if (_SHOW_PRICES == '1' && $show_price) {

的上面就可以了。

 
专业的MySql备份工具phpMyBackupPro 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-08-03 | View Count View: 24537 | Digg Count Digg: 68

phpMyBackupPro

一个专业的MySql备份工具。可以备份多服务器、多数据库,可以将数据备份到ftp或email,可以自动备份、可以设置备份的计划任务,可以还原数据库、在线执行SQL语句... 200+k , 生成UTF-8格式的文档.... !

使用方法[PHP (> version 4.3)]:

  1. 上传解压包里的phpMyBackupPro目录
  2. 设置export目录和global_conf.php文件属性为:0777
  3. 先访问http://youdomain/phpMyBackupPro/config.php填写必要的数据库选项
  4. 然后就可以使用了

如果使用,为了安全,一定要:

  1. 将phpMyBackupPro改为比较难猜的名字,自己知道或用的时候在改一下就行
  2. 更改 global_conf.php和export目录的路径,然后在definitions.php里同时进行更改

更多信息请到官方站浏览:http://www.phpMyBackupPro.net [点这里下载]

 
不装组件也让你的文章显示出关键字来--[1] 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-07-31 | View Count View: 15925 | Digg Count Digg: 64

在编辑文章的时候,meta 参数里有关键字项, 那么为什么不直接把他提取出来呢?

修改方法:

 components/com_content/content.php 1330行下面[或$params = new mosParameters( $row->attribs );上行]加

//以下加上是为了获取tags
$links = '';
$keys = explode( ',', $row->metakey );
foreach ($keys as $key) {
 $key = trim( $key );
 if ($key) { 
 $link="index.php?option=com_search&searchphrase=all&ordering=newest&searchword=";
 $link.=rawurlencode($key);
 $links.="<a href='".$link."'>".$key."</a>&nbsp;&nbsp;"; 
 }
}
if ($links!=""){
 $row->fulltext.="<div align='right'  style='background-color:#efefef';>Tags: ". $links ."</div>";
}
//结束 

在你编辑文章的时候,如果是多个关键字就用英文半角的逗号,分开就可以了。当然你有写这个的话,那么默认有的“相关文章” 模块也就有内容的了!

 
Windows里安装PHP的iconv的方法 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-07-30 | View Count View: 13056 | Digg Count Digg: 54

一般使用者可能会认为在 PHP 下想要使用 iconv 的话,只要把 php.ini 里面的分号 ; 拿掉就以了[昨天之前我也是这么认为]:

 ;extension=php_iconv.dll

一般像 GD2 之类的 Library 照这样安装是没有错,但是在 iconv 状况就不同了,马上就出现一个提示窗口:说...找不到 php_iconv.dll ...

我给个网友解决这个问题也出现了这个, 但当时手边没有 Easyphp ,所以也没找出问题来,昨天我试着将插件目录外的iconv.dll去掉后,这个问题也来了!

看来要启动 iconv 的功能,除了 php_iconv.dll 之外,还需要一个 iconv.dll,也就是需要 php_iconv.dll 和 iconv.dll 都可以让 php 找的到的状况之下。知道这个后就可以视自已电脑的环境来做修改了。

 
增加文章右上角三个小图标被点击的统计 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-07-30 | View Count View: 11576 | Digg Count Digg: 55

数据库执行:

CREATE TABLE `mos_index2` (
  `id` int(11) NOT NULL auto_increment,
  `type` tinyint(1) NOT NULL default '0',
  `contentid` int(11) NOT NULL default '0',
  `dat` timestamp(14) NOT NULL,
  UNIQUE KEY `id` (`id`)
) TYPE=MyISAM ;

 index2.php里增加:

$stattype=0;
if ($task == "emailform") $stattype=1;
if ($task == "view") $stattype=2;
if (isset($do_pdf) && $do_pdf==1) $stattype=3;
if ($stattype>0) {
   $query="insert into #__index2 (id,type,contentid) values ('',$stattype,$id)";
   $database->setQuery( $query );
   $database->query();
}

针对文章上的"PDF" 、"Print" 、"Email"三个地方被点击的简单统计, 看结果要到库里看,使用Phpmyadmin之类的...

 

 
« First « 11 12 13 14 15 16 17 18 19 20 » Last »

51 - 55 / 109