WordPress博客如何構造一個智能排名網址導航站

2018年8月22日 14 5.3K人看過

之前發過一篇名為《我是如何通過WordPress實現博客網址導航的?》(點擊查看),由于時間關系,沒有來得及放出教程,有網友留言讓我放出代碼。今天終于抽出時間,把代碼和教程分享給大家。我所構建的網址導航主要分為以下幾個模塊:訪客網站自動排名第一模塊、知名博客模塊、人氣博客模塊、博客大全模塊、邊欄模塊。

下面分模塊給大家介紹:

一、訪客網站自動排名第一模塊

通過調取博客留言者的名字和網址,并去重,按照留言時間順序排列,最近帶鏈接的留言排在第一位(留言者不填寫鏈接則不顯示)

1、把以下代碼放入到所用主題的functions.php最后一個%>。

  1. //最新評論排第一
  2. function?Autofirst($af){
  3. ????global?$wpdb;
  4. ????$queryaf="select?comment_author,?comment_author_url,?comment_date?from?$wpdb->comments?where?comment_ID?in?(select?max(comment_ID)?from?$wpdb->comments?where?comment_approved='1'?and?comment_author_url?!=''?and?user_id='0'??GROUP?BY?comment_author_email)??ORDER?BY?comment_date?DESC?LIMIT?$af";
  5. ????$wally?=?$wpdb->get_results($queryaf);
  6. ????foreach?($wally?as?$commentaf){
  7. ????????$tmpy=?"<li><a?target=\"_blank\"?href=\"".$commentaf->comment_author_url."\">".$commentaf->comment_author."</a></li>";
  8. ????????$outputy?.=?$tmpy;
  9. ????}
  10. ????$outputy?=?"<ul>".$outputy."</ul>";
  11. ????echo?$outputy?;
  12. }

其中輸出的樣式可以自定義,畢竟每一個博客的樣式都不一樣,這個就靠自己發揮了,只需要在以上代碼中的<ul>中添加一個class屬性即可。

[wshop_reward]

2、把以下代碼放入需要顯示最新訪客的地方。

  1. <?php?Autofirst(100);?>

其中100表示顯示100個最新訪客,這個數值可以自定義,一定不能為空,要不然會出錯,最起碼要大于0以上。

二、知名博客模塊

顯示一定時期內在本站留言比較活躍的用戶網站。

  1. <?php?top_comment_authors(24);??>

注意:本模塊僅適用于知更鳥Begin主題,括號里面的數字為顯示數量,你可以按需修改。

三、人氣博客

顯示一定時期內在本站留言數最多的用戶網站。

  1. <?php?top_comments(24);??>

注意:本模塊僅適用于知更鳥Begin主題,括號里面的數字為顯示數量,你可以按需修改。

四、博客大全

調用你網站的友情鏈接,由于主題差異,每個網站的調用方法可能不盡相同,如果不懂的話,你可以資訊主題作者。

五、邊欄

調用主題邊欄,在后臺小工具中添加你想要顯示的內容。

PS:

1、如果你正在使用知更鳥Begin主題,以上代碼全部適用,非知更鳥Begin主題,通過本教程你只能實現最近訪客訪客自動排名第一功能,如果感興趣,你也可以參照這篇文章:《WordPress博客如何利用最新評論實現類似導航網站自動排第一功能》。

2、各位在使用的時候,會發現知名博客和人氣博客顯示的內容與本站有些詫異,如果你希望和本站顯示的一樣,你可以找到/wp-content/themes/begin/inc/inc.php文件,將約2013至1268行代碼替換成以下代碼。

  1. //?讀者排行
  2. function?top_comment_authors($amount?=?98)?{
  3. ????global?$wpdb;
  4. ????????$prepared_statement?=?$wpdb->prepare(
  5. ????????'SELECT
  6. ????????COUNT(comment_author)?AS?comments_count,?comment_author,?comment_author_url,?comment_author_email,?MAX(?comment_date?)?as?last_commented_date
  7. ????????FROM?'.$wpdb->comments.'
  8. ????????WHERE?comment_author?!=?""?AND?comment_type?=?""?AND?comment_approved?=?1??AND?user_id?=?""
  9. ????????GROUP?BY?comment_author
  10. ????????ORDER?BY?comments_count?DESC,?comment_author?ASC
  11. ????????LIMIT?%d',
  12. ????????$amount);
  13. ????$results?=?$wpdb->get_results($prepared_statement);
  14. ????$output?=?'<div?class="top-comments">';
  15. ????foreach($results?as?$result)?{
  16. ????????$c_url?=?$result->comment_author_url;
  17. ????????$output?.=?'
  18. ????????<div?class="lx8">
  19. ????????????<div?class="top-author">
  20. ????????????????<div?class="top-comment"><a?href="'?.?get_template_directory_uri()."/inc/go.php?url=".?$c_url?.?'"?target="_blank"?rel="external?nofollow"><div?class="author-url"><strong>?'?.?$result->comment_author?.?'</div></strong></a></div>
  21. ????????????????<div?class="top-comment">'?.?human_time_diff(strtotime($result->last_commented_date))?.?'前來過</div>
  22. ????????????</div>
  23. ????????</div>';
  24. ????}
  25. ????$output?.=?'<div?class="clear"></div></div>';
  26. ????echo?$output;
  27. }
  28. function?top_comments($number?=?98)?{
  29. ????global?$wpdb;
  30. ????$counts?=?wp_cache_get(?'mostactive'?);
  31. ????if?(?false?===?$counts?)?{
  32. ????????$counts?=?$wpdb->get_results("SELECT?COUNT(comment_author)?AS?cnt,?comment_author,?comment_author_url,?comment_author_email
  33. ????????FROM?{$wpdb->prefix}comments
  34. ????????WHERE?comment_date?>?date_sub(?NOW(),?INTERVAL?90?DAY?)
  35. ????????AND?comment_approved?=?'1'
  36. ????????AND?comment_author_email?!=?'[email protected]'
  37. ????????AND?comment_author_email?!=?''
  38. ????????AND?comment_author_url?!=?''
  39. ????????AND?comment_type?=?''
  40. ????????AND?user_id?=?'0'
  41. ????????GROUP?BY?comment_author_email
  42. ????????ORDER?BY?cnt?DESC
  43. ????????LIMIT?$number");
  44. ????}
  45. ????$mostactive?=??'<div?class="top-comments">';
  46. ????if?(?$counts?)?{
  47. ????????wp_cache_set(?'mostactive',?$counts?);
  48. ????????foreach?($counts?as?$count)?{
  49. ????????????$c_url?=?$count->comment_author_url;
  50. ????????????$mostactive?.=?'
  51. ????????????<div?class="lx8">
  52. ????????????????<div?class="top-author">
  53. ????????????????????<div?class="top-comment"><a?href="'?.?get_template_directory_uri()."/inc/go.php?url=".?$c_url?.?'"?target="_blank"?rel="external?nofollow"><div?class="author-url"><strong>?'?.?$count->comment_author?.?'</div></strong></a></div>
  54. ????????????????????<div?class="top-comment">留下'.$count->cnt.'個腳印</div>
  55. ????????????????</div>
  56. ????????????</div>';
  57. ????????}
  58. ????????$mostactive?.=?'<div?class="clear"></div></div>';
  59. ????????echo?$mostactive;
  60. ????}
  61. }
  62. if?(zm_get_option('meta_delete'))?{}?else?{require?get_template_directory()?.?'/inc/meta-delete.php';}
  63. require?get_template_directory()?.?'/inc/meta-boxes.php';
  64. require?get_template_directory()?.?'/inc/show-meta.php';

然后使用以下CSS文件。

  1. .favorites-top{
  2. ????margin-top:10px;
  3. }
  4. .breadcrumb,
  5. .yheader{
  6. ????display:none;
  7. }
  8. #primary?{
  9. ????float:?left;
  10. }
  11. #sidebar?{
  12. ????float:?rightright;
  13. }
  14. .top-comments?{
  15. ????margin:?-5px?0?0?0;
  16. }
  17. .top-comments?img?{
  18. ????float:?left;
  19. ????height:?auto;
  20. ????max-width:?100%;
  21. ????width:?auto;
  22. }
  23. .top-comments?.lx8?{
  24. ????float:?left;
  25. ????min-height:?1px;
  26. ????width:?16.6666666666666%;
  27. ????padding:?2px;
  28. }
  29. .top-author?{
  30. ????background:?#fff;
  31. ????margin:?5px;
  32. ????padding:?0?0?10px?0;
  33. ????border:?1px?solid?#ddd;
  34. }
  35. .top-comment?{
  36. ????color:?#999;
  37. ????text-align:?center;
  38. }
  39. .author-url?{
  40. ????width:?100%;
  41. ????padding:?5px;
  42. ????overflow:?hidden;
  43. ????text-overflow:?ellipsis;
  44. ????whitewhite-space:?nowrap;
  45. }
  46. .comment-authors?{
  47. ????padding:?0?10px;
  48. }
  49. .dh_title{
  50. ????background:?#fff;
  51. ????margin:?0?0?10px?0;
  52. ????padding:?10px;
  53. ????border:?1px?solid?#ddd;
  54. ????box-shadow:?0?0?1px?rgba(0,0,0,.04);
  55. ????border-radius:?2px;
  56. }
  57. .dh_title?h3{
  58. ????font-size:?18px;
  59. ????margin-left:10px;
  60. }
  61. .dh_title?.dh_blog{
  62. ????margin:10px?0;
  63. }
  64. .dh_title?.dh_more{
  65. ????position:?absolute;
  66. ????top:?5px;
  67. ????rightright:?20px;
  68. }
  69. }
  70. article{
  71. ????background:#fff;
  72. }
  73. #sites-widget-one?h3?{
  74. ????font-size:?18px;
  75. ????background:?#fff;
  76. ????width:?100%;
  77. ????height:?30px;
  78. ????line-height:?40px;
  79. ????padding:?0?20px;
  80. ????border-bottom:?0px?solid?#ddd;
  81. }
  82. .widget?ul{
  83. ????width:?100%;
  84. }
  85. .widget_links?li{
  86. ????float:?left;
  87. ????width:?20%?!important;
  88. ????border:0px;
  89. }
  90. .widget_links?a{
  91. ????border:?1px?solid?#fff;

懶人福利

如果你和我一樣,比較懶惰,你可以新建一個PHP頁面文件,加入以下代碼,將文件上傳至/wp-content/themes/begin/pages/,然后在后臺,新建頁面,模板選擇博客導航即可。

  1. <?php
  2. /*
  3. Template?Name:?博客導航
  4. */
  5. if?(?!?defined(?'ABSPATH'?)?)?{?exit;?}
  6. ?>
  7. <?php?get_header();??>
  8. <link?rel="stylesheet"?href="<?php?bloginfo('template_url');??>/css/sites.css"?/>
  9. <style?type="text/css">
  10. .favorites-top{
  11. ????margin-top:10px;
  12. }
  13. .breadcrumb,
  14. .yheader{
  15. ????display:none;
  16. }
  17. #primary?{
  18. ????float:?left;
  19. }
  20. #sidebar?{
  21. ????float:?right;
  22. }
  23. </style>
  24. <style?type="text/css">
  25. .top-comments?{
  26. ????margin:?-5px?0?0?0;
  27. }
  28. .top-comments?img?{
  29. ????float:?left;
  30. ????height:?auto;
  31. ????max-width:?100%;
  32. ????width:?auto;
  33. }
  34. .top-comments?.lx8?{
  35. ????float:?left;
  36. ????min-height:?1px;
  37. ????width:?16.6666666666666%;
  38. ????padding:?2px;
  39. }
  40. .top-author?{
  41. ????background:?#fff;
  42. ????margin:?5px;
  43. ????padding:?0?0?10px?0;
  44. ????border:?1px?solid?#ddd;
  45. }
  46. .top-comment?{
  47. ????color:?#999;
  48. ????text-align:?center;
  49. }
  50. .author-url?{
  51. ????width:?100%;
  52. ????padding:?5px;
  53. ????overflow:?hidden;
  54. ????text-overflow:?ellipsis;
  55. ????white-space:?nowrap;
  56. }
  57. .comment-authors?{
  58. ????padding:?0?10px;
  59. }
  60. .dh_title{
  61. ????background:?#fff;
  62. ????margin:?0?0?10px?0;
  63. ????padding:?10px;
  64. ????border:?1px?solid?#ddd;
  65. ????box-shadow:?0?0?1px?rgba(0,0,0,.04);
  66. ????border-radius:?2px;
  67. }
  68. .dh_title?h3{
  69. ????font-size:?18px;
  70. ????margin-left:10px;
  71. }
  72. .dh_title?.dh_blog{
  73. ????margin:10px?0;
  74. }
  75. .dh_title?.dh_more{
  76. ????position:?absolute;
  77. ????top:?5px;
  78. ????right:?20px;
  79. }
  80. }
  81. article{
  82. ????background:#fff;
  83. }
  84. #sites-widget-one?h3?{
  85. ????font-size:?18px;
  86. ????background:?#fff;
  87. ????width:?100%;
  88. ????height:?30px;
  89. ????line-height:?40px;
  90. ????padding:?0?20px;
  91. ????border-bottom:?0px?solid?#ddd;
  92. }
  93. .widget?ul{
  94. ????width:?100%;
  95. }
  96. .widget_links?li{
  97. ????float:?left;
  98. ????width:?20%?!important;
  99. ????border:0px;
  100. }
  101. .widget_links?a{
  102. ????border:?1px?solid?#fff;
  103. </style>
  104. <div?class="favorites-top">
  105. ????<div?class="top-date?rili">
  106. ????????<?php?the_title(?'<h1?class="favorites-title">',?'</h1>'?);??>
  107. ????????<span?id=localtime></span>
  108. ????????<script?type="text/javascript">
  109. ????????function?showLocale(objD){
  110. ????????????var?str,colorhead,colorfoot;
  111. ????????????var?yy?=?objD.getYear();
  112. ????????????if(yy<1900)?yy?=?yy+1900;
  113. ????????????var?MM?=?objD.getMonth()+1;
  114. ????????????if(MM<10)?MM?=?'0'?+?MM;
  115. ????????????var?dd?=?objD.getDate();
  116. ????????????if(dd<10)?dd?=?'0'?+?dd;
  117. ????????????var?hh?=?objD.getHours();
  118. ????????????if(hh<10)?hh?=?'0'?+?hh;
  119. ????????????var?mm?=?objD.getMinutes();
  120. ????????????if(mm<10)?mm?=?'0'?+?mm;
  121. ????????????var?ss?=?objD.getSeconds();
  122. ????????????if(ss<10)?ss?=?'0'?+?ss;
  123. ????????????var?ww?=?objD.getDay();
  124. ????????????if??(?ww==0?)??colorhead="<font?color=\"#FF0000\">";
  125. ????????????if??(?ww?>?0?&&?ww?<?6?)??colorhead="<font?color=\"#373737\">";
  126. ????????????if??(?ww==6?)??colorhead="<font?color=\"#008000\">";
  127. ????????????if??(ww==0)??ww="星期日";
  128. ????????????if??(ww==1)??ww="星期一";
  129. ????????????if??(ww==2)??ww="星期二";
  130. ????????????if??(ww==3)??ww="星期三";
  131. ????????????if??(ww==4)??ww="星期四";
  132. ????????????if??(ww==5)??ww="星期五";
  133. ????????????if??(ww==6)??ww="星期六";
  134. ????????????colorfoot="</font>"
  135. ????????????str?=?colorhead?+?yy?+?"年"?+?MM?+?"月"?+?dd?+?"日?"?+?hh?+?":"?+?mm?+?":"?+?ss?+?"??"?+?ww?+?colorfoot;
  136. ????????????return(str);
  137. ????????}
  138. ????????function?tick()
  139. ????????{
  140. ????????????var?today;
  141. ????????????today?=?new?Date();
  142. ????????????document.getElementById("localtime").innerHTML?=?showLocale(today);
  143. ????????????window.setTimeout("tick()",?1000);
  144. ????????}
  145. ????????tick();
  146. ????????</script>
  147. ????</div>
  148. ????<div?class="tianqi?rili">
  149. ????????<iframe?allowtransparency="true"?frameborder="0"?width="385"?height="75"?scrolling="no"?src="http://tianqi.2345.com/plugin/widget/index.htm?s=1&z=1&t=0&v=0&d=3&bd=0&k=&f=&q=1&e=1&a=1&c=54511&w=385&h=96&align=left"></iframe>
  150. ????</div>
  151. ????<div?class="clear"></div>
  152. </div>
  153. <div?id="primary"?class="content-area">
  154. ????<main?id="main"?class="site-main"?role="main">
  155. ????????<div?class="dh_pc">
  156. ????????????<p>每當在本站評論時填寫網址,貴站將自動排在第一位</p>
  157. ????????????<span?class="dh_more"><a?href="https://lixuejiang.com/fangke">more</a></span>
  158. ????????????<?php?Autofirst(25);?>
  159. ????????</div>
  160. ????????<article?class="dh_title">
  161. ????????????<h3>知名博客</h3>
  162. ????????????<div?class="clear"></div>
  163. ????????????????<?php?top_comment_authors(24);??>
  164. ????????</article>
  165. ????????<article?class="dh_title">
  166. ????????????<h3>人氣博客</h3>
  167. ????????????<div?class="clear"></div>
  168. ????????????<div?class="dh_blog">
  169. ????????????????<?php?top_comments(24);??>
  170. ????????????</div>
  171. ????????</article>
  172. ????????<!--?網址小工具?-->
  173. ????????<div?id="sites-widget-one"?class="sites-widget">
  174. ????????????<?php?dynamic_sidebar(?'favorites-one'?);??>
  175. ????????????<div?class="clear"></div>
  176. ????????</div>
  177. ????????<!--?全部網址分類?-->
  178. ????????<?php
  179. ????????$taxonomy?=?'favorites';
  180. ????????$terms?=?get_terms($taxonomy);?foreach?($terms?as?$cat)?{
  181. ????????$catid?=?$cat->term_id;
  182. ????????$args?=?array(
  183. ????????????'showposts'?=>?100,
  184. ????????????'meta_key'?=>?'sites_order',
  185. ????????????'orderby'?=>?'meta_value',
  186. ????????????'order'?=>?'date',
  187. ????????????'tax_query'?=>?array(?array(?'taxonomy'?=>?$taxonomy,?'terms'?=>?$catid,?'include_children'?=>?false?)?)
  188. ????????);
  189. ????????$query?=?new?WP_Query($args);
  190. ????????if(?$query->have_posts()?)?{??>
  191. ????????<article?class="dh_title"?data-wow-delay="0.3s">
  192. ????????????<h3><?php?echo?$cat->name;??></h3>
  193. ????????????<div?class="dh_blog">
  194. ????????????????<div?class="sites-5">
  195. ????????????????????<?php?while?($query->have_posts())?:?$query->the_post();?>
  196. ????????????????????????<?php?if?(?get_post_meta($post->ID,?'sites_img_link',?true)?)?{??>
  197. ????????????????????????????<?php?$sites_img_link?=?sites_nofollow(get_post_meta($post->ID,?'sites_img_link',?true));??>
  198. ????????????????????????????<span?class="sites-title?wow?fadeInUp"?data-wow-delay="0s">
  199. ????????????????????????????????<figure?class="picture-img?sites-img"><?php?if?(zm_get_option('lazy_s'))?{?zm_sites_thumbnail_h();?}?else?{?zm_sites_thumbnail();?}??></figure>
  200. ????????????????????????????????<a?href="<?php?echo?$sites_img_link??>"?target="_blank"?rel="external?nofollow"><?php?the_title();??></a>
  201. ????????????????????????????</span>
  202. ????????????????????????<?php?}?else?{??>
  203. ????????????????????????????<?php?$sites_link?=?sites_nofollow(get_post_meta($post->ID,?'sites_link',?true));??>
  204. ????????????????????????????<span?class="sites-title?wow?fadeInUp"?data-wow-delay="0s"><a?href="<?php?echo?$sites_link??>"?target="_blank"?rel="external?nofollow"><?php?the_title();??></a></span>
  205. ????????????????????????<?php?}??>
  206. ????????????????????<?php?endwhile;??>
  207. ????????????????????<div?class="clear"></div>
  208. ????????????????</div>
  209. ????????????</div>
  210. ????????</article>
  211. ????????<?php?}?wp_reset_query();??>
  212. ????????<?php?}??>
  213. ????????<!--?備用
  214. ????????<article?class="sites?sites-cat">
  215. ????????????<div?class="sites-cats">
  216. ????????????????<span?class="sites-cat">分類名稱</span>
  217. ????????????????<span?class="sites-more"><a?href="文字替換為網址分類鏈接地址">更多</a>
  218. ????????????</div>
  219. ????????????<div?class="sites-link">
  220. ????????????????<ul?class="sites-5">
  221. ????????????????????<?php
  222. ????????????????????????$args?=?array('tax_query'?=>?array(?array('taxonomy'?=>?'favorites',?'field'?=>?'id',?'terms'?=>?explode(',',830?))),?'posts_per_page'?=>?100);
  223. ????????????????????????query_posts($args);?while?(?have_posts()?)?:?the_post();
  224. ?????????????????????>
  225. ????????????????????<?php?if?(?get_post_meta($post->ID,?'sites_link',?true)?)?{??>
  226. ????????????????????<?php?$sites_link?=?get_post_meta($post->ID,?'sites_link',?true);??>
  227. ????????????????????????<li?class="sites-title"><a?href="<?php?echo?$sites_link??>"?target="_blank"?rel="external?nofollow"><?php?the_title();??></a></li>
  228. ????????????????????<?php?}?else?{??>
  229. ????????????????????????<?php?the_title(?sprintf(?'<li?class="sites-title"><a?href="%s"?rel="bookmark">',?esc_url(?get_permalink()?)?),?'</a></li>'?);??>
  230. ????????????????????<?php?}??>
  231. ????????????????????<?php?endwhile;??>
  232. ????????????????????<?php?wp_reset_query();??>
  233. ????????????????????<div?class="clear"></div>
  234. ????????????????</ul>
  235. ????????????</div>
  236. ????????</article>
  237. ?????????-->
  238. ????</main>
  239. </div>
  240. <div?id="sidebar"?class="widget-area">
  241. ????<div?class="wow?fadeInUp"?data-wow-delay="0.5s">
  242. ????????<?php?if?(?!?dynamic_sidebar(?'favorites'?)?)?:??>
  243. ????????????<aside?id="add-widgets"?class="widget?widget_text">
  244. ????????????????<h3?class="widget-title"><i?class="be?be-warning"></i>添加小工具</h3>
  245. ????????????????<div?class="textwidget">
  246. ????????????????????<a?href="<?php?echo?admin_url();??>widgets.php"?target="_blank">為“網址側邊欄”添加小工具</a>
  247. ????????????????</div>
  248. ????????????????<div?class="clear"></div>
  249. ????????????</aside>
  250. ????????<?php?endif;??>
  251. ????</div>
  252. </div>
  253. <?php?get_footer();??>

注意,本代碼仍然只適用于知更鳥Begin主題。

 

 

weinxin
加入王卡吉他社
微信掃描左側二維碼,加入淘小鋪掌柜團,免費協助您開通掌柜資格...
  • 文本由 發表于 2018年8月22日
  • 除非特殊聲明,本站文章均為原創,轉載請務必保留本文鏈接
WordPress多站點發布文章同步 建站

WordPress多站點發布文章同步

思路:在另一個 WordPress 站點創建一個API,文章發布時用cURL模擬 POST 請求 API 利用wp_insert_post()函數來創建文章。支持同步文章標題、內容、類型、分類、標簽,...
憶夢小站 博客

憶夢小站

關于站點 網站Title:憶夢小站 網站Keywords:憶夢小站,憶夢網,何葉網,憶夢博客,Typecho,個人博客,博客,何葉博客,www.54loli.cn,技術,建站,生活,教程,分享 網站D...
匿名

發表評論

匿名網友 填寫信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

評論:14   其中:訪客  7   博主  7
    • avatar Darrell @回復 0

      WOW just what I was looking for. Came here by searching for WordPress網站

      • avatar 老站長 @回復 1

        搞得我都想做個的沖動了!

        • avatar 暗潮 @回復 1

          大佬能不能搞出來一個能用于ZBlog的代碼呢?!

          • avatar SEO學堂 @回復 0

            樓主辛苦了,真是程序猿代碼大神啊,這么難搞的功能都通過代碼實現了。
            如果是能夠搞成插件就好了,對于琪琪SEO這樣的代碼小白,就太棒了!

            • avatar 明月登樓 @回復 2

              我倒是在Typecho博客上實現了這個!WordPress站點目前感覺沒有這個剛需!

              • avatar 堆積網 @回復 2

                學習受教了,像我這種菜鳥搞定這種還是有點棘手,哈,不過我網站還沒有滿月呢,等喲點流量了再過來復制粘貼代碼,謝謝教程,聽詳細的

                • avatar 李學江 Admin @回復

                  歡迎轉載

                  • avatar 大標 @回復 0

                    很不錯,大佬,能轉載嗎?