技术论坛 - 查看所有帖子 imag1
XOOPS China 讨论区 > 查看所有帖子 (cangchen)


(1) 2 3 4 ... 32 »


如何合并两个article的内容?
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
有几个article的克隆,现在想把他们的内容合并(导入)到一个里面,怎么办?

4/3 19:03
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: 给xoops加上可爱的loading(载入中)效果!
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线

3/31 13:52
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


给xoops加上可爱的loading(载入中)效果!
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
用记事本打开theme/xxx/theme.html
第一步:在<head></head>里添加如下代码

<style type="text/css">
#loader_container {
text-align:center;
position:absolute;
top:40%;
width:100%;
left0;
}

#loader {
font-family:TahomaHelveticasans;
font-size:11.5px;
color:#000000;
background-color:#FFFFFF;
padding:10px 0 16px 0;
margin:0 auto
display:block;
width:130px;
border:1px solid #5a667b;
text-align:left
z-index:2;
}
#loader_bg {background-color:#e4e7eb;
position:relative;
top:8px;
left:8px;
height:7px;
width:113px;
font-size:1px}
#progress {
height:5px;
font-size:1px;
width:1px;
position:relative;
top:1px;
left:0px;
background-color:#70940D
}
</
style><script language="JavaScript">
//读取框
var t_id setInterval(animate,20);
var 
pos=0;
var 
dir=2;
var 
len=0;
function 
animate()
{
var 
elem document.getElementById('progress');
if(
elem != null) {
if (
pos==0len += dir;
if (
len>32 || pos>79pos += dir;
if (
pos>79len -= dir;
if (
pos>79 && len==0pos=0;
elem.style.left pos;
elem.style.width len;
}
}
function 
remove_loading() {
this.clearInterval(t_id);
var 
targelem document.getElementById('loader_container');
targelem.style.display='none';
targelem.style.visibility='hidden';
}

</script>


第二步:修改<body>为

<body onLoad="remove_loading();">


第三步:在<body>下面添加以下代码

<div id="loader_container">
<
div id="loader">
<
div align="center">页面正在加载中 ...</div>
<
div id="loader_bg"><div id="progress"> </div></div>
</
div>
</
div>

3/31 13:51
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: [非喜勿用]◆◆推荐个在线翻译插件
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
1

3/24 10:09
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: 如何在xoops加入thickbox特性
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线

3/6 17:16
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: 如何在xoops加入thickbox特性
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
不能用,一直loading
见我的网站底部测试连接

3/6 17:14
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


XOOPS_TRUST_PATH and Module Duplication
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
XOOPS_TRUST_PATH was introduced by GIJOE (based on minahito’s idea as GIJOE credited). The idea and/or concept of XOOPS_TRUST_PATH is to secure a Xoops module by moving all of the module’s PHP files out of web root or DOCUMENT_ROOT.

In doing so, modules could not be easily tempered by potential crackers, especially if the module has private files included under the document root.

(Moving MySQL username and password out of mainfile.php or the document root TIP essentially has the same idea.)

The second benefit of using XOOPS_TRUST_PATH is that module duplicating could be streamlined and become manageable, if the module developer has adopted the idea.

Anyone who had attempted to duplicate a Xoops module can attest the difficulties of doing that.

GIJOE has introduced several duplicable modules, though V2/D2 (as GIJOE named) makes duplication easier, they are still not that easy to maintain. Most importantly to some, naming your modules as “../modules/news/” and “../modules/news1/” is not a professional way of naminng modules.

With the introduction of XOOPS_TRUST_PATH and duplicable modules – or Duplicable V3/D3, you are free to name the module to whatever name you wish. You could have many instances of the same module with each own template files and MySQL table files, and all run securely from a single module outside of the web root directory. Template files will be installed with the module name appended so that you can customize them to differentiate one duplicated from another (see caution).

Of course, the module must be developed and written utilizing XOOPS_TRUST_PATH. So far there are not many modules that take advantage of the idea, a handful of Japanese developer is releasing modules based on D3. Hopefully, we will see more and more module developers adopt D3.

Bulletin (a much improved and versatile news module) developed by Suin is one of the modules that use XOOPS_TRUST_PATH
(http://suin.jp/modules/mydownloads/singlefile-cid-10-lid-12.html)

Note: Bulletin works fine under original Xoops even though Suin does not specify support for the platform.

To use XOOPS_TRUST_PATH, you must edit mainfile.php to add a constant defining XOOPS_TRUST_PATH location.

The location should be out of your document root to take advantage of the secure feature.

If your Xoops web root is
/home/yourname/public_html

Then you should create a directory under /home/yourname, parallel to public_html (NOT UNDER it, otherwise it will defeat the whole security purpose of moving files out of the web root).

We will create and name the directory as “xoops-secure”, so we add one entry into mainfile.php
define('XOOPS_TRUST_PATH','/home/yourhome/xoops-secure');

Then create a directory named “modules” under xoops-secure. Don’t forget to chmod 705 both directories for extra securities.

Unzip the Bulletin module. The Bulletin module has two directories:
html/modules/bulletin – upload contents to your web root as you would do with regular modules
xoops_trust_path/modules/bulletin – upload contents to under xoops-secure/modules/

Do the module installation as usual, you will have one module called bulletin installed with your Xoops.

Now, we will install a second instance of the same Bulletin module.

You can rename bulletin under html/modules/bulletin to whatever you want to - let us name it “xnews”. Upload the contents to modules directory under web root. Then install it, now you have two identical Bulletin modules installed – bulletin and xnews!

You could rename the Bulletin module name for the first time, even you are going to use Bulletin module only once. You are free to rename Bulletin to whatever name you have in mind if you don’t want to use the name for your modules.

The bulletin module name under XOOPS_TRUST_PATH can not be changed. If you wish to make changes to the module files, you should do that under XOOPS_TRUST_PATH/modules/bulletin, as the module files under Xoops root are all re-direct files.

To differentiate the two instance of the Bulletin module, you can customize template files (GIJOE’s tplsadmin module is a great way of modifying template files).


Words of Caution Using Bulletin
Bulletin provides an easy way of converting existing News module articles into Bulletin articles. If you have an existing site with large number of articles, you should think twice before you covert them.

Bulletin URLs are different from News URLs. Converting and Using Bulletin will totally mess up your search engine index. If you are getting a fair amount of traffic from search engines you probably should not do the conversion.

If you start anew, Bulletin modules should be seriously considered as an alternative to News module.


Words of Caution Using D3
The template files are centralized - if your UPDATE the module, the template files of all duplicated modules will be overwritten.


Other Things You Can Play with XOOPS_TRUST_PATH
"Fastest Cache per each page" hack by GIJOE.

3/6 15:27
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: article怎么从0.99换到1.0?
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
还应该:

1 下载Frameworks解压缩后把/Frameworks/上传到 XOOPS跟目录下
http://xoops.org.cn/modules/wfdownloads/singlefile.php?lid=554
2 下载xoops编辑器解压缩后把/class/editor/上传到 XOOPS/class/目录下
http://xoops.org.cn/modules/wfdownloads/singlefile.php?lid=555

3/1 13:43
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: 呵呵,发个采集的解决办法..同志们帮忙顶哈啊
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
从采集到发布,写个说明吧

2/22 12:46
工具箱 短消息 Email PDF 书签 打印 举报 回顶部


回复: xoops能用来开发wiki网站吗?
资深会员
注册日期:
2004/8/8 14:25
来自 山东
所属群组:
注册会员
帖子: 328 | 精华: 3
等级: 16; EXP: 92
HP: 0 / 398
MP: 109 / 3809
离线
wordbook

2/5 17:49
工具箱 短消息 Email PDF 书签 打印 举报 回顶部



(1) 2 3 4 ... 32 »