Support jOOmla! Autoit!
本站上简繁体的转换的问题 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-04-19 | View Count View: 41546 | Digg Count Digg: 97

不是用组件实现,而是用JS动态转换, 你也可以下载使用"tw_cn.js",将他上传到你的站点[这个是UTF-8编码]然后

在你要加的地方加如下代码 [共有五个参数可以设定]:

 

<a id="translateLink">繁體</a>
<script type="text/javascript" src="http://your-site/tw_cn.js"></script>
<script type="text/javascript">
var defaultEncoding = 0; //默认是否繁体,0-简体,1-繁体
var translateDelay = 0; //延迟时间,若不在</body>前, 要设定延迟翻译时间, 如100表示100ms,默认为0
var cookieDomain = "http://your-site/";    //Cookie地址, 一定要设定, 通常为你的网址
var msgToTraditionalChinese = "繁體"; //默认切换为繁体时显示的中文字符
var msgToSimplifiedChinese = "简体"; //默认切换为简体时显示的中文字符
var translateButtonId = "translateLink"; //默认互换id
translateInitilization();
</Script>

为了不影响页面下载速度,建议将<s ......> .....</script> 放在页尾位置,比如

</body>

上一行.

此文根据Mark对繁体bug修正后重新整理了.

 

 
让文章分页效果和我们习惯协调起来 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-04-17 | View Count View: 16539 | Digg Count Digg: 75
hack文件: 1. /mambots/content/mospaging.php
  • 先去除"跳转"块,将下面代码前加 // 注释掉
 if ( $hasToc ) {
    // display TOC
    createTOC( $row, $matches, $page );
   } else {
    $row->toc = '';
   }
  • 将只显示 "上一页","下一页"的效果改写 "第一页","上一页","1","2",...."下一页","最末页"的效果,将
  $hasToc = $mainframe->getCfg( 'multipage_toc' );

移动到

$row->text .= '</div><br />';

下面. 也可以把 例如 "页面5共10"形式 的显示移动到分页的上面去:将下面代码

  // page counter
   $row->text .= '<div class="pagenavcounter" align="center" >';
   $row->text .= $pageNav->writeLeafsCounter();
   $row->text .= '</div>';

移动到

  // page text
   $row->text .= $text[$page];

下面. 接着保存然后上传覆盖, 到你有分页的地方看看效果去吧

 

常有人需要那个"跳转" ,通常叫成 "内容导航"的,下面说一下hack方法:

上面的第一个步骤就不要注释了, 把她下移到本段函数结尾的

return true;

 

上面.然后将 hack文件: 2. /components/com_content/content.html.php中的

   // displays Table of Contents
    HTML_content::TOC( $row );

下移到他下面的</table>行下,然后将她改成:

<?php
    // displays Table of Contents
    HTML_content::TOC( $row );
 ?>

即可!剩下的就是去改对应的Css去吧,把我对应的提供如下:

table.contenttoc {
  margin-left: 10px;
  color: #333300;
  background-color: #F7F7F7;
  border: solid 1px #CDCDCD;
  width: 98%;
    }  
  
 table.contenttoc td {
  padding: 0 20px 3px;
  font-weight: normal;
  text-align:left;
  line-height: 21px;
     }
   
 table.contenttoc th {
  font-size: 14px;
  font-weight: bold;
  text-align:left;
  padding: 7px 0px 4px 20px;
  vertical-align: middle;
  color: #1B57B1;
 }

 
AKOGallery2.5b在j! 1.0.x[mambo4.5.x]上的应用 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2006-04-15 | View Count View: 9822 | Digg Count Digg: 52

小巧灵活的图库,图片相册,在451的时候就停止开发, 以后版本使用中会出现:

Fatal error: Call to undefined function:
 openconnectionwithreturn() 
in /www/users/lishabeila/components/com_akogallery/sub_viewdetails.php on line 37

 解决方法:

includes/database.php中的function getErrorNum() 的前面加上下面的两个函数:

/**
* Execute a database query and returns the result
* @param string The SQL query
* @return resource Database resource identifier. Refer to the PHP manual for more information.
* @deprecated This function is included for tempoary backward compatibility
*/
function openConnectionWithReturn($query){
$result=mysql_query($query) or die("Query failed with error: ".mysql_error());
return $result;
}
/**
* Execute a database query
* @param string The SQL query
* @deprecated This function is included for temporary backward compatibility
*/
function openConnectionNoReturn($query){
mysql_query($query) or die("Query failed with error: ".mysql_error());
}

也适用于joomla!

AkoGally 2.5b 可以在本站点下载栏目里下载.

 
开源或免费虚拟主机管理系统 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2005-05-07 | View Count View: 12140 | Digg Count Digg: 52

常常用到的...
1. ZPanel - 在Windows下的免费Hosting Panel
http://sourceforge.net/projects/zpanel/
http://www.thezpanel.com/
中文讨论:
http://www.twftp.org/phpbb/viewtopic.php?t=3104
2. web-cp - *nix的虚拟主机管理
http://sourceforge.net/projects/webcp/
http://www.web-cp.net/
中文讨论:
http://www.twftp.org/phpbb/viewtopic.php?t=5095
3. VHCS - Virtual Hosting Control System一样是*nix系统的,不过比ZPanel还热门
http://sourceforge.net/projects/vhcs/
http://www.vhcs.net/
4、webmin的虚拟主机管理模块virtualmin

webmin是一个可运行于Linux/freebsd的web界面的主机管理系统,本身自带以及有人贡献了不少模块而virtualmin则是它的一个虚拟主机管理模块
webmin官方站: http://www.webmin.com/
virtaulmin站点: http://www.swelltech.com/virtualmin/


5、基于php/mysql的虚拟主机控制程序PHPMyWebHosting

PHPMyWebHosting是个开源的,基于php/mysql的虚拟主机控制面板程序,你可以用它建立带有邮箱,mysql支持的多域名虚拟主机,它须建立在Linux/freebsd之上,不支持windows。
安装phpmywebhosting你必须拥有系统管理员(root)权限,并依次安装以下套件:
MySQL
Apache and PHP
Postfix
Maildrop
Courier
ProFTPd
PHPMyWebHosting

官方站上有基于各平台详细的安装说明 http://www.ladse.de

phpmywebhosting下载:http://www.ladse.de/index.php/Files


6、SysCP虚拟主机管理系统[全php版]
1.有中文包
2.admin,reseller,client 三级管理
3.全部为php代码构成
4.有不少模块(modules)供选择安装
5.开源,免费(基于GPL)
6.Linux/bsd环境,特别是debian(最初是专为它开发的)是德国人写的,有简体中文,英文,法文,德文语言包,是多语言的
具有以下特性:
Customer Interface
* managing email accounts
* managing email forwarders
* managing subdomains
* managing mysql databases
* managing additional ftp account
* managing .htaccess password protections for directories
* managing path options for example directorylisting

Admin Interface:

* managing of customers: you can define exactly what kind of resources your customers get (e.g. amount of pop accounts, amount of mysql databases etc.)
* manage domains: you can individualy edit zone files and directory index per domain

支持以下配套服务器或引擎:
# webserver: [Apache 1.3] with [PHP4] (apache2.0.x也可以)
# mail transfer agent: [Postfix]
# pop/imap server: [Courier]
# ftp server: [ProFTPd]
# database server: [MySQL]
# nameserver: [Bind9]
# traffic accounting and statistics: [Webalizer]

官方站:http://www.syscp.de/ 
下载:http://www.syscp.de/wiki/EnDownloads
模块下载:http://modules.syscp.de/
在线演示:http://www.syscp.de/onlinedemo/index.php

 
« First « 21 22 » Last »

106 - 109 / 109