JTBC(CMS)

开源与免费的跨平台网站内容管理系统解决方案

腾讯交流群: 2254994
技术支持群: 27032719
首页 » 在线论坛 » ASP版本 
帖子内容
1 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
IIS安装端口为82该如何访问 
首先谢谢JTBC作者的付出,也希望早日会有回报于他,也希望作者能够坚持,早日将JTBCv发扬光大。个人认为凡事都先有人气才有财气,JTBC应该在易用性和稳定性以及多功能上下功夫,人多了自然就火了。
以下有两个问题还望赐教:
1、如果JTBC的IIS安装端口为82,安常理应该这样访问:http://127.0.0.1:82/index.asp
可分页似乎没有CSS定义,在conn.asp中已经设置
sql_localname = "http://127.0.0.1:82/"
不知该如何设置,才能系统的所有的路径都能正常。
2、如果JTBC放置在根目录下的一个分目录,如在根目录下的cms文件夹内,安常理应该这样访问:http://127.0.0.1/cms/index.asp
可无法访问,不知该如何设置,才能系统的所有的路径都能正常。

2007-05-11 06:33:31
2 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
sql_localname 是当用到sql数据库时才需要设置的变量。你的问题可能是其他设置问题。
2007-05-11 13:16:59
3 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
我用的是ACCESS版的,也不行,
不过发现一个现象:
我用的这个是以前在80端口下使用的,各版面已经添加了内容也生成过 html 和xml。这个有上面所说的现象。

如果重新使用一个新的JTBC,无论是82端口还是分目录cms都能正常显示,很正常,

可我查了半天还是不明白问题在哪里。
2007-05-11 20:35:45
4 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
研究了一天,有了些进展,
对于JTBC放在网站的分目录是没有问题的,原先有问题也是article和news的显示有问题,主要是因为我重新生成html和xml文件时,没有把“仅生成最新添加的”前的勾取消,取消后再生成,全部正常了。
可对于JTBC使用非80端口(比如用的是82端口),
现象是这样的,如果不生成html和xml,就非常正常,
对于article如果不使用html功能,能正常显示,一量将链接模式改为0(那个baseb也改为0),也就是不使用html功能,路径就会包含82口(路径会显示http://127.0.0.1:82/article),会很正常。一旦使用了html功能,列表页和文章页都会显示不正常:CSS和各html文件的路径都指向了127.0.0.1/article,会很不正常。
news下,也是这样,一旦生成了xml文件,xml文件中没有路径指向,但news/文件目录下出现的三个文件detail_chinese.xslt和index_chinese.html和list_chinese.xslt,三个文件里都有路径指向,但都是指向127.0.0.1/news/,自然也是不行的。
以上实验都是在一个新安装的JTBC下做出的。没有多余的设置。
结论:JTBC如果使用非80口来访问,html和xml功能无法使用,一使用就会显示不正常。 
2007-05-12 18:25:03
5 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
确实如此,是因为base链接地址内没有考虑到端口号而导致的,修改一下就可以了。
2007-05-12 23:07:33
6 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
其实寻找的就是这样一个改法,可我用了字符查找工具找了整个文件夹中的127.0.0.1确实没有找到,也找了base这个字符倒是有一大堆文件中都有,可分析不出哪个是需要修改的那个。
麻烦jetiben还能说一下,怎么个改法,谢谢了。
2007-05-13 07:43:46
7 楼
jetiben
管理员
积分 7076
注册 2006-06-28
     
最简单的办法,在后台的模板管理-头尾模板内的 base 节点修改成
<base id="base" href="{$=get_lrstr(nurlpre & ":82" & nuri, "/", "leftr")}/" />
2007-05-13 18:07:42
8 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
谢谢,我一会儿试一下,不过news模块的问题又发现一个,不知前面学习JTBC的高手是不是遇到过:
我试着改了一下模板里的头模板default_head,给导航条加了样式,其它的模块都和首页一样改过来了,只有news模块的导航条依然故我,检查配置管理中的news配置,发现它的头模块设置的是default_head,可查看网页的原文件,发现news模块的头还是老样子,并没有引用default_head,看来 news模块自有一套设置的东西,这个能修改吗?谢谢你的答复。
2007-05-13 20:13:49
9 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
原帖由 jetiben 发表于 2007-05-13 18:07:42
最简单的办法,在后台的模板管理-头尾模板内的 base 节点修改成
<base id="base" href="{$=get_lrstr(nurlpre & ":82" & nuri, "/", "leftr")}/" />


我试过了,路径端口的问题确实解决了,news模块的生成显示都正常了。
但article和download模块生成html后,html文件显示的是有很多的小方块一样的乱码,查看源文件:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html dir=ltr>

<head>
<style> a:link {font:9pt/11pt  ; color:FF0000} a:visited {font:9pt/11pt  ; color:#4e4e4e}
</style>

<META NAME="ROBOTS" CONTENT="NOINDEX">

<title>  ҳ</title>

<META HTTP-EQUIV="Content-Type" Content="text-html; charset=gb2312">
<META NAME="MS.LOCALE" CONTENT="ZH-CN">
</head>

<script>
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm

//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL = document.URL;

//this is where the http or https will be, as found by searching for :// but skipping the res://
protocolIndex=DocURL.indexOf("://",4);

//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/",protocolIndex + 3);

//for the href, we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;

urlresult=DocURL.substring(BeginURL,serverIndex);

//for display, we need to skip after http://, and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);

InsertElementAnchor(urlresult, displayresult);
}

function HtmlEncode(text)
{
    return text.replace(/&/g, '&amp').replace(/'/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
}

function TagAttrib(name, value)
{
    return ' '+name+'="'+HtmlEncode(value)+'"';
}

function PrintTag(tagName, needCloseTag, attrib, inner){
    document.write( '<' + tagName + attrib + '>' + HtmlEncode(inner) );
    if (needCloseTag) document.write( '</' + tagName +'>' );
}

function URI(href)
{
    IEVer = window.navigator.appVersion;
    IEVer = IEVer.substr( IEVer.indexOf('MSIE') + 5, 3 );

    return (IEVer.charAt(1)=='.' && IEVer >= '5.5') ?
        encodeURI(href) :
        escape(href).replace(/%3A/g, ':').replace(/%3B/g, ';');
}

function InsertElementAnchor(href, text)
{
    PrintTag('A', true, TagAttrib('HREF', URI(href)), text);
}

//-->
</script>

<body bgcolor="FFFFFF">

<table width="410" cellpadding="3" cellspacing="5">

  <tr>
    <td align="left" valign="middle" width="360">
<h1 style="COLOR:000000; FONT: 12pt/15pt  "><!--Problem-->  ҳ</h1>
    </td>
  </tr>

  <tr>
<td width="400" colspan="2"> <font style="COLOR:000000; FONT: 9pt/11pt  ">        Ѿɾ    ퟀ?</font></td>
  </tr>

  <tr>
    <td width="400" colspan="2"> <font style="COLOR:000000; FONT: 9pt/11pt  ">

<hr color="#C0C0C0" noshade>

<p>    </p>

<ul>
<li>    뮫?        ƴд  <br>
      </li>

<li> <script>
  <!--
  if (!((window.navigator.userAgent.indexOf("MSIE") > 0) && (window.navigator.appVersion.charAt(0) == "2")))
  {
  Homepage();
  }
  //-->
  </script>  ퟀ? ָ    Ϣ ӡ</li>

<li><a href="javascript:history.back(1)">  </a>ퟟ?  tӡ</li>
    </ul>

<h2 style="font:9pt/11pt  ; color:000000">HTTP 404 -    <br> Internet    <BR></h2>

<hr color="#C0C0C0" noshade>

<p>  ퟀ?ָ ퟀ?</p>

<ul>
<li> ϸ Ϣ<br><a href="http://www.microsoft.com/ContentRedirect.asp?prd=iis&sbp=&pver=5.0&pid=&ID=404&cat=web&os=&over=&hrd=&Opt1=&Opt2=&Opt3=" target="_blank">Microsoft ֧</a>
</li>
</ul>

    </font></td>
  </tr>

</table>
</body>
</html>

和80端口生成的html文件大不一样。
2007-05-14 06:17:26
10 楼
oneday
注册会员
积分 102
注册 2007-04-21
     
还是我的错,依然是生成数据时忘记了把“仅生成最新添加的”前的勾取消,取消后再生成,news模块也正常了。
但article和download模块生成html后,html文件显示的是有很多的小方块一样的乱码,这个现象还是有的。
不过好在,使用非80端口的时候不太多。
2007-05-15 06:42:11