朱纯树博客
VPS测评推荐网站
cloudacead cloudacead

给Spimes主题加上评论者链接功能

前言

Spimes是一款typecho主题,本站用的就是spimes
但是spimes主题默认功能没那么完整,比如评论的时候没有填写网址的表单框
那么本文来讲述修改几行代码,加上这个网址框
原版:
截图20200711121018.png
修改后:
截图20200711121112.png

教程

打开主题comments.PHP文件,找到75行左右,代码

 <ul class="ident" id="comm_off">
                    <li>
                        <input type="text" name="author" placeholder="昵称*" value="<?php $this->remember('author'); ?>">
                    </li>
                    <li>
                        <input type="email" name="mail" placeholder="邮件*" value="<?php $this->remember('mail'); ?>">
                    </li>                               
                </ul>
               <?php else : ?>
                <ul class="ident">
                    <li>
                        <input type="text" name="author" placeholder="昵称*" value="<?php $this->remember('author'); ?>">
                    </li>
                    <li>
                        <input type="email" name="mail" placeholder="邮件*" value="<?php $this->remember('mail'); ?>">
                    </li>                               
                </ul>

修改成:

 <ul class="ident" id="comm_off">
                    <li>
                        <input type="text" name="author" placeholder="昵称*" value="<?php $this->remember('author'); ?>">
                    </li>
                    <li>
                        <input type="email" name="mail" placeholder="邮件*" value="<?php $this->remember('mail'); ?>">
                    </li>       
                    <li>
                        <input type="url" name="url" placeholder="网址*" value="<?php $this->remember('url'); ?>">
                    </li>                         
                </ul>
               <?php else : ?>
                <ul class="ident">
                    <li>
                        <input type="text" name="author" placeholder="昵称*" value="<?php $this->remember('author'); ?>">
                    </li>
                    <li>
                        <input type="email" name="mail" placeholder="邮件*" value="<?php $this->remember('mail'); ?>">
                    </li>        
                    <li>
                        <input type="url" name="url" placeholder="网址*" value="<?php $this->remember('url'); ?>">
                    </li>                        
                </ul>

再打开主题目录下style.css文件,找到1584行左右,把

.respond #new_comment_form .input_body li { display: block; float: left; width: 50%; line-height: 0; }

改成

.respond #new_comment_form .input_body li { display: block; float: left; width: 33.3%; line-height: 0; }

保存刷新后即可看到效果

赞(0) 打赏
未经允许不得转载:VPS测评推荐网站 - 朱纯树博客 » 给Spimes主题加上评论者链接功能

评论 64

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #60

    If you want more bulk, then you can stack Andarine cheapest propecia

    ariflette22小时前回复
  2. #59

    azithromycin price Patients were classified initially to the following risk groups high risk, which included patients whose tumors measured 2 cm or were HR negative; low risk, which included patients whose tumors were too small generally 1 cm in diameter for biochemical HR assay; or uncertain risk, which included patients whose tumors measured less than 2 cm and who were HR positive

  3. #58

    Cells were washed with PBS and blocked with 5mg ml BSA in PBS for 1 h, then incubated with rat anti rabbit Оі H2AX primary antibody in a 1 100 dilution overnight at 4 C, followed by FITC secondary antibody Beyotime zithromax z-pak Briefly, the defective epithelium is removed with a cellulose sponge and a 7

  4. #57

    They never once Гў nolvadex on cycle for gyno

  5. #56

    001 required, with the use of a sequential plan according to the O Brien Fleming boundary as implemented by Lan and DeMets priligy in usa

    Tuhshoole1周前 (01-25)回复
  6. #55

    coursework on resume example coursework calculator coursework on resume

    help with coursework2个月前 (12-16)回复
  7. #54

    coursework service coursework resources coursework geeks

  8. #53

    coursework at a college or university coursework title custom coursework writing

    coursework student2个月前 (12-15)回复
  9. #52

    course work hero coursework verb coursework writer

  10. #51

    coursework help university coursework on resume coursework presentation

    courseworkdomau.com2个月前 (12-15)回复
  11. #50

    Horwich et al 3 showed that hemoglobin levels were significantly associated with symptoms, exercise capacity, and prognosis in 1061 patients with class III to IV CHF clomid for bodybuilding PMC free article PMC3806052 PubMed 17047082

    NultitNer2个月前 (12-14)回复
  12. #49

    viagra pills for women And here is why

    Plettemok2个月前 (12-13)回复
  13. #48

    3; 95 confidence interval CI, 1 what does propecia do tamoxifen panadol singapore reddit BR was led by very competent engineers, but they loved the railway more than they loved the passengers

    tomipieft2个月前 (12-12)回复
  14. #47

    tamoxifen action 2010 Jan; 30 1 79 85

    siscuilky2个月前 (12-10)回复