效果演示

图片[1]-如何给魔缇Smsot添加一个底部版权框?-FancyPig's blog

修改教程

修改temp/default/topic/themebody.php,在第64行相关话题代码上方添加

<fieldset style="border:1px dashed #999;padding:5px 15px 5px 15px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;font-size:10px;color:#999;"><legend align="center"style="color:#FFFFFF;width:80px;text-align:center;background-color:#999;font-size:12px;">©版权说明</legend>
1、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予以删除并致以最深的歉意,点击获取<a href="index.php?mod=contact" rel="nofollow"><font color="$_S['cache']['colors']">联系方式</font></a>;<br>
2、<a href=$_S['setting']['siteurl'] rel="nofollow"><font color="$_S['cache']['colors']">$_S['setting']['sitename']</font></a>管理人员有权不事先通知发贴者而删除本帖。<br></fieldset>
<div class="themetalks">

Smsot2.08整段代码

如果你怕改错,版本为Smsot2.08,您可以将整个代码覆盖

相关文件temp/default/topic/themebody.php

<?exit?>
<h1 class="article_title pb10" id="themesubject_{$_GET['vid']}">{if $_S['theme']['top']>0}<span class="b_c8 c3">置顶</span>{/if}{if $_S['theme']['best']}<span class="b_c1 c3">推荐</span>{/if}$_S['theme']['subject']</h1>
<!--{template topic/theme_author}-->
<div class="weui-article">
  <!--{if $alert}-->
   <p class="notice">$alert</p>
  <!--{/if}-->
  <!--{if $_S['needpay']}-->
  <!--{if $_S['theme']['content']}-->
  $_S['theme']['content']
  <!--{else}-->
  <div class="abstract p10 b_c5 s13 c2">$_S['theme']['abstract']</div>
  <!--{/if}-->
  
  <form action="topic.php?mod=action&ac=pay" method="post" id="pay_form">
    <input name="submit" type="hidden" value="true" />
    <input name="hash" type="hidden" value="$_S['hash']" />
    <input name="vid" type="hidden" value="$_GET['vid']" />
    <input id="paytype" type="hidden" value="wxpay" />
    <input id="idtype" type="hidden" value="vid" />
    <input id="payid" type="hidden" value="$_GET['vid']" />
    <div class="needpay tc">
      <h3 class="c4 s17">付费阅读</h3>
      <p class="c4 s15">作者设置了阅读剩余内容需要支付{$_S['theme']['price']}元</p>
      <p class="paybtn"><a href="javascript:pay.callpayment($my['money'],'topicpay')" class="weui-btn weui-btn_primary">支付费用</a></p>
    </div>
  </form>
  <!--{template payment}-->
  <!--{else}-->
  <!--{hook/topic_viewtheme_1}-->
  $_S['theme']['content']
  <!--{hook/topic_viewtheme_2}-->
  <!--{eval $i=0}-->
  <!--{loop $_S['theme']['images'] $img}-->
  <!--{if PHPSCRIPT=='get'}-->
  <p><img src="$_S['atc']/$img['atc']" class="viewpic" thumb="_thumb" swiper="$img['aid']"></p>
  <!--{else}-->
  <p><img src="ui/lazy.png" data-original="$_S['atc']/$img['atc']" class="viewpic lazyload" thumb="_thumb" swiper="$img['aid']"></p>
  <!--{/if}-->
  <!--{eval $i++}-->
  <!--{/loop}-->
  <!--{/if}-->
  <!--{hook/topic_viewtheme_3}-->
</div>
<!--{if $_S['theme']['uid'] && !$_S['theme']['price'] && $_S['wxpay'] && $_S['setting']['ios_cshang']}-->
<div class="reward">
  <a href="gratuity.php?mod=topic&ac=gratuity&vid=$_GET['vid']" class="reward_btn b_c8 c3 load">打赏</a>
  <!--{if $_S['theme']['gratuity_money']}-->
  <p id="gratuity_info_$_GET['vid']"><a href="gratuity.php?mod=topic&vid=$_GET['vid']" class="load">有<span class="c1 number">$_S['theme']['gratuity_number']</span>人给作者打赏了<span class="c1 money">$_S['theme']['gratuity_money']</span>元</a></p>
  <!--{else}-->
  <p id="gratuity_text_$_GET['vid']">给作者打赏</p>
  <!--{/if}-->
  <!--{if $rewards}-->
  <ul>
    <!--{loop $rewards $i $value}-->
    <li class="u1"><a href="gratuity.php?mod=topic&vid=$_GET['vid']" class="load"><!--{avatar($value,1)}--></a></li>
    <!--{/loop}-->
  </ul>
  <!--{/if}-->
</div>
<!--{/if}-->
<!--{if $_S['theme']['lbs']}--><p class="lbs"><span class="b_c7 c8 icon icon-lbs s12">$_S['theme']['lbs']</span></p><!--{/if}-->
<!--{if $talks}-->
<fieldset style="border:1px dashed #999;padding:5px 15px 5px 15px;-moz-border-radius:8px;-webkit-border-radius:8px;border-radius:8px;font-size:10px;color:#999;"><legend align="center"style="color:#FFFFFF;width:80px;text-align:center;background-color:#999;font-size:12px;">©版权说明</legend>
1、如本帖侵犯到任何版权问题,请立即告知本站,本站将及时予以删除并致以最深的歉意,点击获取<a href="index.php?mod=contact" rel="nofollow"><font color="$_S['cache']['colors']">联系方式</font></a>;<br>
2、<a href=$_S['setting']['siteurl'] rel="nofollow"><font color="$_S['cache']['colors']">$_S['setting']['sitename']</font></a>管理人员有权不事先通知发贴者而删除本帖。<br></fieldset>
<div class="themetalks">
  <h4 class="s16">相关话题</h4>
  <ul>
    <!--{loop $talks $value}-->
    <li class="s14"><a href="talk.php?talkid={$value['talkid']}" class="load c8">#{$value['subject']}</a></li>
    <!--{/loop}-->
  </ul>
</div>
<!--{/if}-->
<!--{hook/topic_viewtheme_4}-->
© 版权声明
评论 抢沙发

请登录后发表评论