广告

wordpress 千脑上传插件

支持图像、MP3、压缩包等多种格式的上传

1打开wp-admin目录下面的edit-form-advanced.php文件

2搜索printf(__(‘Last edited on %1$s at %2$s’)

在它下面一点的位置(具体位置如下所示)添加如下红色代码

 3把 var qn_userid = “qiannao”;中的qiannao改成你的千脑用户名

4进入WP后台,在文章下面就可以看到你的上传界面了 (如下图)

printf(__(‘Last edited on %1$s at %2$s’), mysql2date(get_option(‘date_format’), $post->post_modified), mysql2date(get_option(‘time_format’), $post->post_modified));
  }
  echo ‘</span>’;
 } ?>
 </td>
</tr></tbody></table>

</div>
<div id=”postexcerpt”>
<h3><span id =”qnupload_span_2012″></span></h3>
<script>document.getElementById(“qnupload_span_2012″).innerHTML =(decodeURI(‘附件’));</script>
<div>
</br>
   <iframe id=”qn_upload” frameborder=”0″ width=”420″ height=”75″ scrolling=”auto” allowTransparency=”true”>
   </iframe>
  <script type=”text/javascript”>
       var qn_userid = “qiannao“;
      var editorname = “content”;
     //var qn_cssfile = “
http://upload.qiannao.com/style/pwbbs.css“;
      var qn_encoding= “utf-8″;
   </script>
  <script language=JavaScript type=”text/javascript” src=”
http://upload.qiannao.com/jslib/js/qn/Upload.js“>
  </script>
</div>
</div>

<?php
}

do_meta_boxes($post_type, ‘normal’, $post);

( ‘page’ == $post_type ) ? do_action(‘edit_page_form’) : do_action(‘edit_form_advanced’);

do_meta_boxes($post_type, ‘advanced’, $post);

do_action(‘dbx_post_sidebar’); ?>

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>