欢迎光临
我们一直在努力

解决phpcms v9 wap手机门户中的show.html内容页面添加上一篇和下

liuying阅读(254)评论(0)

if(!$r || $r['status'] != 99) showmessage(L('info_does_not_exists'),'blank');

在phpcmsmoduleswapindex.php里面,搜索上面这句

找到后,在它的下一行添加上

 //上一页
 $previous_page = $this->db->get_one("`catid` = '$catid' AND `id`<'$id' AND `status`=99",'*','id DESC');
 //下一页
 $next_page = $this->db->get_one("`catid`= '$catid' AND `id`>'$id' AND `status`=99");

 if(empty($previous_page)) {
                            $previous_page = array('title'=>L('first_page'), 'thumb'=>IMG_PATH.'nopic_small.gif', 'url'=>'javascript:alert(''.L('first_page').'');');
                    }

                    if(empty($next_page)) {
                            $next_page = array('title'=>L('last_page'), 'thumb'=>IMG_PATH.'nopic_small.gif', 'url'=>'javascript:alert(''.L('last_page').'');');
                    }

在模板中添加
上一页:
< a href="{WAP_SITEURL}&a=show&catid={$catid}&typeid=1&id={$previous_page[id]}" >{$previous_page[title]}</a>
下一页:
<a href="{WAP_SITEURL}&a=show&catid={$catid}&typeid=1&id={$next_page[id]}" >{$next_page[title]}</a>

解决phpcms V9缩略图模糊的办法

liuying阅读(229)评论(0)

解决V9缩略图模糊问题,打开如下文件

  1. /libs/classes/image.class.php 

注释掉

  1. else 
  2. imagecopyresized($thumbimg$srcimg, 0, 0, $psrc_x$psrc_y$width$height,  $srcwidth$srcheight); 

另将102行的

  1. $imagefun($thumbimg$filename); 

修改为

  1. $imagefun($thumbimg$filename,90); 

90就是图片质量值,越大越清

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活