Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 如何做到自动在文章的末尾出现这篇文章的标题与地址链接?

[复制链接]
ㄣ简单 发表于 2012-12-26 19:03:18 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2.5
浏览器: 其他(帖子中请注明浏览器) 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://www.chenjiaming.cn/
我的站 http://www.chenjiaming.cn/ 用的是discuz门户,怎样能够实现,我发表一片文章,自动在文章的末尾出现这篇文章的标题与地址链接?怎样调用代码?
yulei525 发表于 2013-1-10 21:46:17 | 显示全部楼层
支持楼主,我的网站(www.91525.net)也是,求解
回复

使用道具 举报

yulei525 发表于 2013-1-10 21:47:19 | 显示全部楼层
帮楼主顶上去,525书友会
回复

使用道具 举报

panking299 发表于 2013-1-12 16:18:19 | 显示全部楼层
  1. <!--{subtemplate common/header}-->
  2. <!--[name]{lang portalcategory_viewtplname}[/name]-->

  3. <script type="text/javascript" src="{$_G['setting']['jspath']}forum_viewthread.js?{VERHASH}"></script>
  4. <script type="text/javascript">zoomstatus = parseInt($_G['setting']['zoomstatus']), imagemaxwidth = '{$_G['setting']['imagemaxwidth']}', aimgcount = new Array();</script>
  5. <div id="pt" class="bm cl">
  6.         <div class="z">
  7.                 <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
  8.                 <a href="$_G[setting][navs][1][filename]">{lang nav_index}</a> <em>&rsaquo;</em>
  9.                 <!--{loop $cat[ups] $value}-->
  10.                         <a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a><em>&rsaquo;</em>
  11.                 <!--{/loop}-->
  12.                 <a href="{echo getportalcategoryurl($cat[catid])}">$cat[catname]</a> <em>&rsaquo;</em>
  13.                 {lang view_content}
  14.         </div>
  15. </div>

  16. <!--{hook/view_article_top}-->
  17. <!--{ad/text/wp a_t}-->
  18. <style id="diy_style" type="text/css"></style>
  19. <div class="wp">
  20.         <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  21. </div>
  22. <div id="ct" class="ct2 wp cl">
  23.         <div class="mn">
  24.                 <div class="bm vw">
  25.                         <div class="h hm">
  26.                                 <h1 class="ph">$article[title] <!--{if $article['status'] == 1}-->({lang moderate_need})<!--{elseif $article['status'] == 2}-->({lang ignored})<!--{/if}--></h1>
  27.                                 <p class="xg1">
  28.                                         $article[dateline]<span class="pipe">|</span>
  29.                                         {lang view_publisher}: <a href="home.php?mod=space&uid=$article[uid]">$article[username]</a><span class="pipe">|</span>
  30.                                         {lang view_views}: <!--{if $article[viewnum] > 0}-->$article[viewnum]<!--{else}-->0<!--{/if}--><span class="pipe">|</span>
  31.                                         {lang view_comments}: <!--{if $article[commentnum] > 0}--><a href="$common_url" title="{lang view_all_comments}">$article[commentnum]</a><!--{else}-->0<!--{/if}-->
  32.                                         <!--{if $article[author]}--><span class="pipe">|</span>{lang view_author_original}: $article[author]<!--{/if}-->
  33.                                         <!--{if $article[from]}--><span class="pipe">|</span>{lang from}: <!--{if $article[fromurl]}--><a href="$article[fromurl]" target="_blank">$article[from]</a><!--{else}-->$article[from]<!--{/if}--><!--{/if}-->

  34.                                         <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
  35.                                                 <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a>
  36.                                                 <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
  37.                                                         <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
  38.                                                 <!--{else}-->
  39.                                                         <span class="pipe">|</span><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
  40.                                                 <!--{/if}-->
  41.                                         <!--{/if}-->
  42.                                         <!--{hook/view_article_subtitle}-->
  43.                                 </p>
  44.                         </div>

  45.                         <!--[diy=diysummarytop]--><div id="diysummarytop" class="area"></div><!--[/diy]-->

  46.                         <!--{if $article[summary] && empty($cat[notshowarticlesummay])}--><div class="s"><div><strong>{lang article_description}</strong>: $article[summary]</div><!--{hook/view_article_summary}--></div><!--{/if}-->

  47.                         <!--[diy=diysummarybottom]--><div id="diysummarybottom" class="area"></div><!--[/diy]-->

  48.                         <div class="d">

  49.                                 <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->

  50.                                 <table cellpadding="0" cellspacing="0" class="vwtb"><tr><td id="article_content">
  51.                                         <!--{ad/article/a_af/1}-->
  52.                                         <!--{if $content[title]}-->
  53.                                         <div class="vm_pagetitle xw1">$content[title]</div>
  54.                                         <!--{/if}-->
  55.                                         $content[content]
  56.                                 &nbsp;&nbsp;&nbsp;&nbsp;转载请注明来源开心盘古网(<A >www.kxpangu.com)</A>
  57.                                 </td></tr></table>
  58.                                 <!--{hook/view_article_content}-->
  59.                                 <!--{if $multi}--><div class="ptw pbw cl">$multi</div><!--{/if}-->

  60.                                 <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->

  61.                                 <script type="text/javascript" src="{$_G[setting][jspath]}home.js?{VERHASH}"></script>
  62.                                 <div id="click_div">
  63.                                         <!--{template home/space_click}-->
  64.                                 </div>

  65.                                 <!--{if !empty($contents)}-->
  66.                                 <div id="inner_nav" class="ptn xs1">
  67.                                         <h3>{lang article_inner_navigation}</h3>
  68.                                         <ul class="xl xl2 cl">
  69.                                                 <!--{loop $contents $key $value}-->
  70.                                                 <!--{eval $curpage = $key+1;}-->
  71.                                                 <li>&bull; <a href="portal.php?mod=view&aid=$aid&page=$curpage"{if $key === $start} class="xi1"{/if}>{lang article_inner_page_pre} {$curpage} {lang article_inner_page} $value[title]</a></li>
  72.                                                 <!--{/loop}-->
  73.                                         </ul>
  74.                                 </div>
  75.                                 <!--{/if}-->

  76.                                 <!--[diy=diycontentclickbottom]--><div id="diycontentclickbottom" class="area"></div><!--[/diy]-->

  77.                         </div>
  78.                         <!--{if !empty($aimgs[$content[pid]])}-->
  79.                                 <script type="text/javascript" reload="1">aimgcount[{$content[pid]}] = [<!--{echo implode(',', $aimgs[$content[pid]]);}-->];attachimgshow($content[pid]);</script>
  80.                         <!--{/if}-->

  81.                         <!--{if !empty($_G['setting']['pluginhooks']['view_share_method'])}-->
  82.                                 <div class="tshare cl">
  83.                                         <strong>{lang viewthread_share_to}:</strong>
  84.                                         <!--{hook/view_share_method}-->
  85.                                 </div>
  86.                         <!--{/if}-->

  87.                         <div class="o cl ptm pbm">
  88.                                 <!--{hook/view_article_op_extra}-->
  89.                                 <a href="home.php?mod=spacecp&ac=favorite&type=article&id=$article[aid]&handlekey=favoritearticlehk_{$article[aid]}" id="a_favorite" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr ofav">{lang favorite}</a>
  90.                                 <!--{if helper_access::check_module('share')}-->
  91.                                 <a href="home.php?mod=spacecp&ac=share&type=article&id=$article[aid]&handlekey=sharearticlehk_{$article[aid]}" id="a_share" onclick="showWindow(this.id, this.href, 'get', 0);" class="oshr">{lang share}</a>
  92.                                 <!--{/if}-->
  93.                                 <a href="misc.php?mod=invite&action=article&id=$article[aid]" id="a_invite" onclick="showWindow('invite', this.href, 'get', 0);" class="oshr oivt">{lang invite}</a>
  94.                                 <!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $article['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $article['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
  95.                                         <a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$article[aid]">{lang edit}</a><span class="pipe">|</span>
  96.                                         <a  id="related_article" href="portal.php?mod=portalcp&ac=related&aid=$article[aid]&catid=$article[catid]&update=1" onclick="showWindow(this.id, this.href, 'get', 0);return false;">{lang article_related}</a><span class="pipe">|</span>
  97.                                         <!--{if $article[status]>0 && ($_G['group']['allowmanagearticle'] || $categoryperm[$value['catid']]['allowmanage'])}-->
  98.                                                 <a href="portal.php?mod=portalcp&ac=article&op=verify&aid=$article[aid]" id="article_verify_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang moderate}</a>
  99.                                         <!--{else}-->
  100.                                                 <a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$article[aid]" id="article_delete_$article[aid]" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a>
  101.                                         <!--{/if}-->
  102.                                         <span class="pipe">|</span>
  103.                                 <!--{/if}-->
  104.                                 <!--{if $article[status]==0 && ($_G['group']['allowdiy']  || getstatus($_G['member']['allowadmincp'], 4) || getstatus($_G['member']['allowadmincp'], 5) || getstatus($_G['member']['allowadmincp'], 6))}-->
  105.                                 <a href="portal.php?mod=portalcp&ac=portalblock&op=recommend&idtype=aid&id=$article[aid]" onclick="showWindow('recommend', this.href, 'get', 0)">{lang blockdata_recommend}</a><span class="pipe">|</span>
  106.                                 <!--{/if}-->
  107.                         </div>

  108.                 </div>

  109.                 <!--[diy=diycontentrelatetop]--><div id="diycontentrelatetop" class="area"></div><!--[/diy]-->

  110.                 <!--{ad/article/mbm hm/2}--><!--{ad/article/mbm hm/3}-->

  111.                 <!--{if $article['related']}-->
  112.                 <div id="related_article" class="bm">
  113.                         <div class="bm_h cl">
  114.                                 <h3>{lang view_related}</h3>
  115.                         </div>
  116.                         <div class="bm_c">
  117.                                 <ul class="xl xl2 cl" id="raid_div">
  118.                                 <!--{loop $article['related'] $raid $rtitle}-->
  119.                                         <input type="hidden" value="$raid" />
  120.                                         <li>&bull; <a href="portal.php?mod=view&aid=$raid">$rtitle</a></li>
  121.                                 <!--{/loop}-->
  122.                                 </ul>
  123.                         </div>
  124.                 </div>
  125.                 <!--{/if}-->

  126.                 <!--[diy=diycontentrelate]--><div id="diycontentrelate" class="area"></div><!--[/diy]-->

  127.                 <!--{if $article['allowcomment']==1}-->
  128.                         <!--{eval $data = &$article}-->
  129.                         <!--{subtemplate portal/portal_comment}-->
  130.                 <!--{/if}-->

  131.                 <!--[diy=diycontentcomment]--><div id="diycontentcomment" class="area"></div><!--[/diy]-->


  132.         </div>
  133.         <div class="sd pph">

  134.                 <!--{hook/view_article_side_top}-->

  135.                 <div class="drag">
  136.                         <!--[diy=diyrighttop]--><div id="diyrighttop" class="area"></div><!--[/diy]-->
  137.                 </div>

  138.                 <!--{if $cat[others]}-->
  139.                 <div class="bm">
  140.                         <div class="bm_h cl">
  141.                                 <h2>{lang category_related}</h2>
  142.                         </div>
  143.                         <div class="bm_c">
  144.                                 <ul class="xl xl2 cl">
  145.                                         <!--{loop $cat[others] $value}-->
  146.                                         <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
  147.                                         <!--{/loop}-->
  148.                                 </ul>
  149.                         </div>
  150.                 </div>
  151.                 <!--{/if}-->

  152.                 <!--{if $cat[subs]}-->
  153.                 <div class="bm">
  154.                         <div class="bm_h cl">
  155.                                 <h2>{lang sub_category}</h2>
  156.                         </div>
  157.                         <div class="bm_c">
  158.                                 <ul class="xl xl2 cl">
  159.                                 <!--{loop $cat[subs] $value}-->
  160.                                         <li><a href="{echo getportalcategoryurl($value[catid])}">$value[catname]</a></li>
  161.                                 <!--{/loop}-->
  162.                                 </ul>
  163.                         </div>
  164.                 </div>
  165.                 <!--{/if}-->

  166.                 <div class="drag">
  167.                         <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  168.                 </div>

  169.                 <!--{hook/view_article_side_bottom}-->

  170.         </div>
  171. </div>

  172. <!--{if $_G['relatedlinks']}-->
  173.         <script type="text/javascript">
  174.                 var relatedlink = [];
  175.                 <!--{loop $_G['relatedlinks'] $key $link}-->
  176.                 relatedlink[$key] = {'sname':'$link[name]', 'surl':'$link[url]'};
  177.                 <!--{/loop}-->
  178.                 relatedlinks('article_content');
  179.         </script>
  180. <!--{/if}-->

  181. <div class="wp mtn">
  182.         <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  183. </div>
  184. <input type="hidden" id="portalview" value="1">

  185. <!--{subtemplate common/footer}-->[b][/b]
复制代码
回复

使用道具 举报

panking299 发表于 2013-1-12 16:19:50 | 显示全部楼层
替换中文字和后面的链接   在view.htm里
回复

使用道具 举报

pplloo 发表于 2014-11-3 09:00:34 | 显示全部楼层
这个问题有解决吗?我的站www.jing1314.com也需要啊!
过去这么久了都!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 05:42 , Processed in 0.176074 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表