1
aaaa007cn 2014-12-21 16:56:25 +08:00 1
点击 View More 后只有 POST 请求
返回的是 json 应该有相关处理 比如填充内容或者继续请求页面内容或者 30x 到 GET 但是没有? 刷新的话则是 GET 所以有内容 不了解 Esotalk 不知道这是本来就有的问题还是你的设置、修改有问题 |
2
xiaolvmu OP @aaaa007cn 这个应该不是原有的问题。官方搭建的技术支持论坛就没有这个问题~
谢谢你,我继续研究下 |
3
aaaa007cn 2014-12-21 20:22:03 +08:00 1
对比了一下官方支持论坛和这个论坛
这个论坛的 /?p=conversations/index.ajax/all 看起来是返回了空白的内容,只有 600 字节 而在官方论坛 POST 这个地址后会返回包含帖子列表的 json,有 200k+ |
6
xiaolvmu OP 实在不会弄了,求解答~
/core/views/conversations/results.php: <?php // Copyright 2011 Toby Zerner, Simon Zerner // This file is part of esoTalk. Please see the included license file for usage information. if (!defined("IN_ESOTALK")) exit; /** * Conversation results. Displays a message if there are no results, or a conversation list and * footer if there are. * * @package esoTalk */ // If there are no conversations, show a message. if (!$data["results"]): ?> <div class='area noResults help'> <h4><?php echo T("message.noSearchResults"); ?></h4> <ul> <li><?php echo T("message.reduceNumberOfGambits"); ?></li> <?php if (!ET::$session->user): ?><li><?php echo T("message.logInToSeeAllConversations"); ?></li><?php endif; ?> <li><?php echo T("message.fulltextKeywordWarning"); ?></li> </ul> </div> <?php // If there are conversations, however, show them! else: ?> <?php $this->renderView("conversations/list", $data); ?> <?php endif; ?> /core/views/conversations/results.php: <?php // Copyright 2011 Toby Zerner, Simon Zerner // This file is part of esoTalk. Please see the included license file for usage information. if (!defined("IN_ESOTALK")) exit; /** * Displays the conversation list - a table with each conversation as a row. * * @package esoTalk */ ?> <ul class='list conversationList'> <?php // Loop through the conversations and output a table row for each one. foreach ($data["results"] as $conversation): $this->renderView("conversations/conversation", $data + array("conversation" => $conversation)); endforeach; ?> <?php if ($data["showViewMoreLink"]): ?> <li class='viewMore'> <a href='<?php $searchWithoutLimit = ET::searchModel()->removeGambit($data["searchString"], 'return strpos($term, strtolower(T("gambit.limit:"))) === 0;'); echo URL("conversations/".$data["channelSlug"]."?search=".urlencode($searchWithoutLimit.($searchWithoutLimit ? " + " : "")."#".T("gambit.limit:").($data["limit"] + C("esoTalk.search.limitIncrement")))); ?>'><?php echo T("View more"); ?></a> </li> <?php endif; ?> </ul> 貌似没什么错...... |