|
|
有没有什么方法可以在访客登入后,就能显示我的一些sideboxes呢? |
|
问题: |
有没有什么方法可以在访客登入后,就能显示我的一些sideboxes呢?
|
回答: |
这是可以实现的,只需简单的四个步骤。
1.找到要这样的sidebox模块。你会在includes/modules/sideboxes发现他们。
2.为那些模板创建over-ride 文件并复制到
includes/modules/sideboxes/YOUR_TEMPLATE_NAME.
3.打开over-ride文件,找到类似于下面的几行:
// test if box should display
$show_featured= true;
然后改变他们,如下面所示:
// test if box should display
if (!$_SESSION['customer_id']) {
$show_featured= false;
} else {
$show_featured= true;
}
4.然后,上传到你的服务器就可以了。 |
|
当前评论: 0 | |
|
本问题添加时间是 2012年 05月 07日。 |
|
|
|
|