jforum 添加页面
描述:在底部添加版权信息等
1.找到templates/default/bottom.htm
修改为:
</td></tr><tr><td align="center"><#if session?exists && session.isAdmin()><span href='${JForumContext.encodeURL("/admBase/login")}'>${I18n.getMessage("ForumBase.admin")}</a></span></#if></td></tr><tr><td align="center"><div id="site_nav"> <ul> <li><a href="${JForumContext.encodeURL("/forums/service")}">广告服务</a></li> <li><a href="${JForumContext.encodeURL("/forums/aboutus")}">关于我们</a></li> <li><a href="${JForumContext.encodeURL("/forums/contactus")}">联系我们</a></li> <li><a href="${JForumContext.encodeURL("/forums/friend_links")}">友情链接</a></li> </ul> </div> <div id="copyright" height="0" width="0" frameborder="0" scrolling="no"></iframe></body></html>
# hujinlongmanforums.service.0 =forums.aboutus.0 =forums.contactus.0 = forums.friend_links.0 =
# hujinlongmanforums.service = service.htmforums.aboutus = aboutus.htmforums.contactus = contactus.htmforums.friend_links = friend_links.htm
/** * 广告服务 */public void service(){this.setTemplateName(TemplateKeys.FORUMS_SERVICE);}/** * 关于我们 */public void aboutus(){this.setTemplateName(TemplateKeys.FORUMS_ABLUTUS);}/** * 联系我们 */public void contactus(){this.setTemplateName(TemplateKeys.FORUMS_CONTACTUS);}/** * 友情链接 */public void friend_links(){this.setTemplateName(TemplateKeys.FORUMS_FRIEND_LINKS);}
//******//hujinlongman//******public static final String FORUMS_SERVICE = "forums.service";public static final String FORUMS_ABLUTUS = "forums.aboutus";public static final String FORUMS_CONTACTUS = "forums.contactus";public static final String FORUMS_FRIEND_LINKS = "forums.friend_links";
<#include "header.htm"/> <div id="content" border="0"> <tr> <td width="50%" height="25"><a href="http://www.hyhr.cc" target="_blank" >建设行业人才网</a></td> <td width="50%"></td> </tr> </table></div></div> <#include "bottom.htm"/>