在大多数情况下,为Invision Community 4.3创建的主题不需狗万最低限额要修改就可以在Invision Community 4.4上运行。然而,对于具有更严格定制主题的站点,可能需要进行一些手动更新以确保兼容性。 下面的文档概述了您应该检查的领域。当我们确定可能导致升级问题的特定区域时,我们将更新文档。 全球 includeJS 如果你修改了includeJS.phtml,则需要向主键添加两个新键ipsSettings为了使延迟加载媒体正确工作,设置块: lazyLoadEnabled< / span ><跨类="pun">:< / span ><跨类="pln">{{< / span ><跨类="kwd">如果< / span ><跨类="pln">\ IPS \设置< / span ><跨类="pun">::< / span ><跨类="pln">我< / span ><跨类="pun">()- >< / span ><跨类="pln">惰性加载已启用< / span ><跨类="pun">}}< / span ><跨类="kwd">真正的< / span ><跨类="pun">{{< / span ><跨类="kwd">其他的< / span ><跨类="pun">}}< / span ><跨类="kwd">假< / span ><跨类="pun">{{< / span ><跨类="pln">endif< / span ><跨类="pun">}},< / span ><跨类="pln">blankImg< / span ><跨类="pun">:< / span ><跨类="pln">“{表达式=”< / span ><跨类="pln">\ \ IPS \文本解析器< / span ><跨类="pun">::< / span ><跨类="pln">blankImage< / span ><跨类="pun">()< / span ><跨类="str">“}”< / span ><跨类="pun">,< / span > 页记录模板 下一个未读的链接 如果您在Pages中修改了任何记录视图模板,那么升级后可能会遇到模板错误。为生成下一个未读记录链接而传递的数据格式已更改。 在您的数据库记录模板更改: < div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">'ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top'< / span ><跨类="tag">>< / span ><跨类="pln">< div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsGrid_span6 ipsType_left ipsPager_prev”< / span ><跨类="tag">>< / span ><跨类="pln">{{if$record::database()->use_categories}< / span ><跨类="tag"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{记录- >< / span ><跨类="pln">容器()- > url()} "标题= " {lang =“cms_back_to_category_with_title sprintf = " $记录- >容器()- > _title "} " rel = " " >< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_back_to_category" sprintf="$record::database()->recordWord(2)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">"ipsPager_title ipsType_light ipsTruncate ipsTruncate_line"< / span ><跨类="tag">>< / span ><跨类="pln">{lang = " $记录- >容器()——> _title "}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">{{其他}}{{$页面= \ \ IPS \ cms \页面页面::$ currentPage;}}< / span ><跨类="tag"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{$页面- >< / span ><跨类="pln">url()} "标题= " {lang =“cms_back_to_category_with_title sprintf = " $页面- > _title "} " rel = " " >< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_back_to_category" sprintf="$record::database()->recordWord(2)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">"ipsPager_title ipsType_light ipsTruncate ipsTruncate_line"< / span ><跨类="tag">>< / span ><跨类="pln">{$page->_title}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">{{endif}}< / span ><跨类="tag">< / div >< / span ><跨类="pln">{{if $nextUnread !== NULL}}< / span ><跨类="tag">< div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsGrid_span6 ipsType_right ipsPager_next”< / span ><跨类="tag">>< / span ><跨类="pln"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{nextUnread - >< / span ><跨类="pln">url()->setQueryString(array('do' => 'getNewComment'))}" title='{lang="cms_view_next_unread_title" sprintf="$record::database()->recordWord(1)"}'> . getNewComment'< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_next_unread_title" sprintf="$record::database()->recordWord(1)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">"ipsPager_title ipsType_light ipsTruncate ipsTruncate_line"< / span ><跨类="tag">>< / span ><跨类="pln">{$ nextUnread - >映射(“标题”)}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">< / div >< / span ><跨类="pln">{{endif}}< / span ><跨类="tag">< / div >< / span > : < div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">'ipsGrid ipsGrid_collapsePhone ipsPager ipsClearfix ipsSpacer_top'< / span ><跨类="tag">>< / span ><跨类="pln">< div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">ipsGrid_span6 ipsType_left ipsPager_prev ipsPager_noDesc< / span ><跨类="tag">>< / span ><跨类="pln">{{if$record::database()->use_categories}< / span ><跨类="tag"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{记录- >< / span ><跨类="pln">容器()- > url()} "标题= " {lang =“cms_back_to_category_with_title sprintf = " $记录- >容器()- > _title "} " rel = " " >< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_back_to_category" sprintf="$record::database()->recordWord(2)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">{{其他}}{{$页面= \ \ IPS \ cms \页面页面::$ currentPage;}}< / span ><跨类="tag"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{$页面- >< / span ><跨类="pln">url()} "标题= " {lang =“cms_back_to_category_with_title sprintf = " $页面- > _title "} " rel = " " >< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_back_to_category" sprintf="$record::database()->recordWord(2)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">{{endif}}< / span ><跨类="tag">< / div >< / span ><跨类="pln">{{if $nextUnread !== NULL}}< / span ><跨类="tag">< div< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">'ipsGrid_span6 ipsType_right ipsPager_next ipsPager_noDesc'< / span ><跨类="tag">>< / span ><跨类="pln"><跨类="pln">href< / span ><跨类="pun">=< / span ><跨类="atv">“{记录- >< / span ><跨类="pln">url()->setQueryString(array('do' => 'nextUnread'))}" title='{lang="cms_view_next_unread_title" sprintf="$record::database()->recordWord(1)"}'> . log (< / span ><跨类="tag"><跨< / span ><跨类="pln">类< / span ><跨类="pun">=< / span ><跨类="atv">“ipsPager_type”< / span ><跨类="tag">>< / span ><跨类="pln">{lang="cms_next_unread_title" sprintf="$record::database()->recordWord(1)"}< / span ><跨类="tag">< / span >< / span ><跨类="pln">< / >< / span ><跨类="pln">< / div >< / span ><跨类="pln">{{endif}}< / span ><跨类="tag">< / div >< / span > 此更改还会影响主题视图,但是您应该使用内置的模板编辑器工具来比较和更新自定义模板。 遵循按钮 如果访问使用自定义模板的记录(或在系统日志中)时发现错误,例如“未使用SQL\u CALC\u FOUND\u ROWS运行的查询中尝试的总计数”,则需要对模板进行一些更改,以使其与4.4兼容。 更改(2个实例)的 {template="follow" app="core" group="global" params="'cms', 'records'。$record::$customDatabaseId, $record->primary_id_field, $record->followers()->count(TRUE)"}< / span > 来 {template="follow" app="core" group="global" params="'cms', 'records'。记录:美元:$ customDatabaseId记录- > primary_id_field,记录- > followersCount ()"}< / span > 报告指南< / >