This post was last edited by lghyt3 from 2014-01-1223:40:53 recently on the discuz Forum. there is no html tag on its forum portal page, however, when you click it, the section is not displayed. if you do not know how to make it happen, let's see the figure above. Note that the code below is the change of the ID in the top address bar in the figure, I have read that there is no such format as "127.0. how does this address come from?
This post was last edited by lghyt3 at 23:40:53
Recently, I am working on the discuz Forum. none of its Forum Portal pages is an html tag, but a forum is not displayed after I click it. I don't know how to do this. let's see the figure above, pay attention to the change of the ID in the top-edge address bar in the figure.
Below is its code. I have read it. there is no such format in the address bar: "http: // 127.0.0.1/bbs/forum. php? Mod = forumdisplay & fid = 38 ", especially this question mark,
The code is as follows:
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: forum.php 33828 2013-08-20 02:29:32Z nemohou $
*/
define('APPTYPEID', 2);
define('CURSCRIPT', 'forum');
require './source/class/class_core.php';
require './source/function/function_forum.php';
$modarray = array('ajax','announcement','attachment','forumdisplay',
'group','image','index','medal','misc','modcp','notice','post','redirect',
'relatekw','relatethread','rss','topicadmin','trade','viewthread','tag','collection','guide'
);
$modcachelist = array(
'index'=> array('announcements', 'onlinelist', 'forumlinks',
'heats', 'historyposts', 'onlinerecord', 'userstats', 'diytemplatenameforum'),
'forumdisplay'=> array('smilies', 'announcements_forum', 'globalstick', 'forums',
'onlinelist', 'forumstick', 'threadtable_info', 'threadtableids', 'stamps', 'diytemplatenameforum'),
'viewthread'=> array('smilies', 'smileytypes', 'forums', 'usergroups',
'stamps', 'bbcodes', 'smilies','custominfo', 'groupicon', 'stamps',
'threadtableids', 'threadtable_info', 'posttable_info', 'diytemplatenameforum'),
'redirect'=> array('threadtableids', 'threadtable_info', 'posttable_info'),
'post'=> array('bbcodes_display', 'bbcodes', 'smileycodes', 'smilies', 'smileytypes',
'domainwhitelist', 'albumcategory'),
'space'=> array('fields_required', 'fields_optional', 'custominfo'),
'group'=> array('grouptype', 'diytemplatenamegroup'),
);
$mod = !in_array(C::app()->var['mod'], $modarray) ? 'index' : C::app()->var['mod'];
define('CURMODULE', $mod);
$cachelist = array();
if(isset($modcachelist[CURMODULE])) {
$cachelist = $modcachelist[CURMODULE];
$cachelist[] = 'plugin';
$cachelist[] = 'pluginlanguage_system';
}
if(C::app()->var['mod'] == 'group') {
$_G['basescript'] = 'group';
}
C::app()->cachelist = $cachelist;
C::app()->init();
loadforum();
set_rssauth();
runhooks();
$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['forum']);
$_G['setting']['threadhidethreshold'] = 1;
require DISCUZ_ROOT.'./source/module/forum/forum_'.$mod.'.php';
?>
Share: More
------ Solution --------------------
Ajax, Asynchronous call
------ Solution --------------------
The last require DISCUZ_ROOT. './source/module/forum _'. $ mod. '. php'; this should be the address of the view html.