|
Akocomment 出现验证码错误的修正方法
|
|
|
|
Author: Autoit | Date:2006-09-10 | View: 11435 | Digg: 59 |
|
标题不知道怎么写了,这个情况只适用与 当你的 globals.php里 define( 'RG_EMULATION', 1 ); 改为 :define( 'RG_EMULATION', 0 ); 后, Akocomment [带验证码的 ver<= (2.0) 1.1.3] 将总是出现 验证码错误的修正方法: 修改 akocomment.php 里,将 # Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 替换为: # Don't allow direct linking
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); //BBTEMPFIX:
$acitemid = (int) mosGetParam( $_POST, "acitemid" );
$contentid = (int) mosGetParam( $_POST, "contentid" );
$title = mosGetParam( $_POST, "title" );
$comment = mosGetParam( $_POST, "comment" );
$acname = mosGetParam( $_POST, "acname" );
# Added one extra line to make the security images solution by DPaulus to work - Reind Dooyeweerd
$akocode = mosGetParam( $_POST, "akocode" );
//end of BBTEMPFIX 在 admin.akocomment.php 14行左右的 switch 语句前面增加: //BBTEMPFIX
$task = mosGetParam( $_REQUEST, 'task', null );
$cid = mosGetParam( $_REQUEST, 'cid', array( 0 ) );
$uid = mosGetParam( $_REQUEST, 'uid', array( 0 ) );
if (!is_array( $cid )) {
$ocid=$cid;
$cid = array ();
$cid[]=$ocid;
mosArrayToInts($cid);
}
//END OF BBTEMPFIX 摘录自: forum.joomla.org
|
|
|
最新文章模块增加发布时间的hack
|
|
|
|
Author: Autoit | Date:2006-09-09 | View: 11779 | Digg: 63 |
|
最新文章 mod 默认是没有时间显示的.. 方法 mod_latestnews.php: 搜索: SELECT a.id, a.title 全部替换为: SELECT a.id, a.title, a.created 最后末尾的地方: <?php echo $row->title; ?></a> 后面增加: <small><?php echo $row->created; ?></small> 而这句可以换为: <?php echo mosFormatDate( $row->created ); ?> 或 <?php echo substr(mosFormatDate( $row->created ),2); ?> 其实直接把 $row->created 替换为: substr( $row->created,0,10 ) 或 substr( $row->created,6,4 ) 或 substr( $row->created,12,4 ) 都是可行的,只是里面的数字可能要改下而已. 这也只是现实时间格式不同而已. End. Autoit |
|
|
去除后台页脚 1.0.11 里新增的安全及版本检查显示
|
|
|
|
Author: Autoit | Date:2006-08-30 | View: 10196 | Digg: 52 |
|
涉及到很多地方调用他, 所以简单的方法就是把这两个函数 内容去除掉就可以了. 修改: /administrator/includes/admin.php 最下两部分 /*
* Added 1.0.11
*/
...... /*
* Added 1.0.11
*/
....
?> 改为: /*
* Added 1.0.11
*/
function josSecurityCheck($width='95%') {
}/*
* Added 1.0.11
*/
function josVersionCheck($width='95%',$always=1) {
}
?> |
|
|
mambo 4.5.2+ 转到 joomla 的方法
|
|
|
|
Author: Autoit | Date:2006-08-29 | View: 13023 | Digg: 60 |
|
mambo 4.5.2以上版本 转换到 joomla 的方法: 如果是mambo4.5.2以前的请先用mambo的方法升级来, 然后在 phpmyadmin的 SQL 里执行下面程式, 这样就库就转为了Joomla 1.0.0 [当然, 在joomla 1.0.0到 joomla 1.0.12期间,数据库是相同的!],然后把 joomla 1.0.12 的程序上传到一目录. 主要是库的升级, 文件基本来覆盖就可以了, 当然还要参考 joomla 的 configuration.php-dist 来改写一份mambo 里的configuration.php 并放在joomla 目录里. INSERT INTO `mos_components` VALUES (0, 'Mass Mail', '', 0, 0, 'option=com_massmail', 'Send Mass Mail', 'com_massmail', 7, 'js/ThemeOffice/mass_email.png', 0, ''); DELETE FROM `mos_modules` WHERE `title` = 'Mamboforge' AND `position` = 'cpanel'; UPDATE `mos_templates_menu` SET `template` = 'joomla_admin' WHERE `template` = 'mambo_admin_blue' AND `client_id` = '1' LIMIT 1;
UPDATE `mos_templates_menu` SET `template` = 'joomla_admin' WHERE `template` = 'mambo_admin' AND `client_id` = '1' LIMIT 1; UPDATE `mos_mambots` SET `published` = '1' WHERE `element` = 'tinymce' AND `folder` = 'editors' AND `published` = '0' LIMIT 1;
UPDATE `mos_mambots` SET `published` = '1' WHERE `element` = 'none' AND `folder` = 'editors' AND `published` = '0' LIMIT 1; |
|
|
让后台的:内容--所有内容项目以日期来排序
|
|
|
|
Author: Autoit | Date:2006-08-22 | View: 11971 | Digg: 55 |
|
让后台的:内容--所有内容项目以日期来排序 他默认是先按单元来拍的,可能用的不习惯,虽然后台也有最新文章模块。但按时间来找起也是有点别扭,那么就来hack一下吧: /administrator/components/com_content/admin.content.php 149行左右: $order = "\n ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering"; 改为: //$order = "\n ORDER BY s.title, c.catid, cc.ordering, cc.title, c.ordering";
$order = "\n ORDER BY c.created DESC"; 保存,覆盖即可。 |
|
|