声明:CSS版面等均为源动力的友情链接插件的内容,我个没有这个能力,请大家感谢PHPFORCE 里面的链接和图案是范例,大家自由修改 进入管理员控制面板 新建模板:SiteFriendlyLinks 内容如下: PHP: <style type=”text/css” id=”sitelink_css”> #sitelink #sitelink_img_text{ background: rgb(255, 255, 255) url(images/gradient-greytowhite.png) repeat-x top left; border-top: 1px solid rgb(255, 255, 255); } #sitelink .sitelink_row_bit, #sitelink #sitelink_img_text { display:block; padding: 5px 0; border-bottom: 1px solid #c4c4c4; border-right: 1px solid #c4c4c4; border-left: 1px solid #c4c4c4; width: 100%; background-color: rgb(255, 255, 255); } .sitelink_row_bit h3, #sitelink_img_text h3{ padding-left: 10px; font-size: 14px; font-weight: bold; color: #3e3e3e; padding-bottom: 5px; } #sitelink .sitelink_row_img { float:right; margin:5px; } .sitelink_row_bit dl dd, #sitelink_img_text dl dd{ padding:10px; } .wgo_block{ display:block; clear:both; width:100%; margin-top:15px; -moz-border-radius-topright:5px; -moz-border-radius-topleft:5px; -webkit-border-top-right-radius:5px; -webkit-border-top-left-radius:5px; -moz-box-shadow:-2px 2px 2px #c8c8c8; -webkit-box-shadow:-2px 2px 2px #c8c8c8; margin-bottom:10px } .wgo_block div.floatcontainer{ background:rgb(255,255,255) url(images/gradient-greytowhite.png) repeat-x ; _background-image:none } .wgo_block h2{ font:bold 12px Tahoma,Calibri,Verdana,Geneva,sans-serif; color:#8f6c3f; background:#f9d9b0 url(images/newbtn_middle.png) repeat-x ; _background-image:none;border:1px solid #c4c4c4; width:100%; -moz-border-radius-topright:5px; -moz-border-radius-topleft:5px; -webkit-border-top-right-radius:5px; -webkit-border-top-left-radius:5px } .wgo_block h2 span{ display:block; padding:4px 0; padding-left:10px; -moz-border-radius-topright:5px; -moz-border-radius-topleft:5px; -webkit-border-top-right-radius:5px; -webkit-border-top-left-radius:5px } </style> <div id=”sitelink”> <div > <h2><span>友情链接</span></h2> <div id=sitelink_row> <div > <a onclick=”_gaq.push(['_trackEvent', 'Outgoing', 'www.drymt.com', '']);” rel=”nofollow” href=”http://www.drymt.com” target=”_blank” ><img src=”http://www.drymt.com/images/chinamortar.gif”/></a> <dl> <dt> <h3><a onclick=”_gaq.push(['_trackEvent', 'Outgoing', 'www.drymt.com', '']);” rel=”nofollow” href=”http://www.drymt.com” target=”_blank”>{$xenOptions.boardTitle}</a> </h3> </dt> <dd> <b>{$xenOptions.boardDescription}</b> </dd> </dl> <div style=”clear:both”> </div> </div> </div> <div id=sitelink_img_text> <dl> <dd> <a onclick=”_gaq.push(['_trackEvent', 'Outgoing', 'www.drymt.com', '']);” rel=”nofollow” href=”http://www.drymt.com” title=”中国干粉砂浆论坛” target=”_blank”><img src=”http://www.drymt.com/images/chinamortar.gif” width=”88px” height=”31px” alt=”"/></a> <hr /> <a onclick=”_gaq.push(['_trackEvent', 'Outgoing', 'www.zhcn.org', '']);” rel=”nofollow” href=”http://www.zhcn.org” title=”" target=”_blank”>树新博客</a> </dd> </dl> </div> </div> </div> 然后修改模板:forum_list,在最下面一行加入: PHP: <!–Add FriendlyLinks –> <xen:include template=”SiteFriendlyLinks”/> <!–/Add FriendlyLinks –> 我不会做插件,所以只是添加了一个模板,CSS和内容都是在SiteFriendlyLinks模板中,链接的内容自己在里面修改 风格分为两行,上面一行为图标链接,下面一行为文字链接,简单,实用 效果见 http://www.drymt.com
上传vB4Redir中的showthread.php和forumdisplay.php至XF的根目录,然后改一下REWRITE,我的vbseo用的是默认的thread/forum_id/thread_id方式,所以就添了几条rewrite就行了 基本上搜索引擎上的东西比较多的转换过来了,用户的ID没有提供转换程序,不过意义倒是不大了 PHP: # 自定义部分 RewriteCond %{HTTP_HOST} ^www\.drymt\.com$ RewriteRule ^archive/t-([0-9]+)\.html$ http://www.drymt.com/showthread.php?t=$1 [R=301,L] RewriteRule ^archive/f-([0-9]+)\.html$ http://www.drymt.com/forumdisplay.php?f=$1 [R=301,L] RewriteRule ^thread/([0-9]+)/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] RewriteRule ^thread/([0-9]+)/([0-9]+)/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] RewriteRule ^forum/([0-9]+)/$ http://www.drymt.com/forumdisplay.php?f=$1 [R=301,L] RewriteRule ^forum/([0-9]+)/([0-9]+)/$ http://www.drymt.com/forumdisplay.php?f=$1 [R=301,L] RewriteRule ^thread/([0-9]+)/new/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] RewriteRule ^thread/([0-9]+)/post/([0-9]+)/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] RewriteRule ^thread/([0-9]+)/print/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] RewriteRule ^thread/([0-9]+)/print/([0-9]+)/([0-9]+)/$ http://www.drymt.com/showthread.php?t=$2 [R=301,L] #RewriteRule ^members/([0-9]+)/$ http://www.drymt.com/space-uid-$1.html [R=301,L]