30个博客书签收藏分享代码, 适用于wordpress博客。感谢博译论的投递,基于精品博客的代码列表的扩展。帕兰个人常得鲜果是必备和效果最好的,其它基本可有可无,看你的喜好了。
1. 分享到twitter的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//twitter.com/home?status=<?php the_permalink(); ?> </span><span> </span></a></span></span></li> <li> <span><?php the_title(); ?></span><span class="string">" title="</span><span>分享到 Twitter</span><span class="string">" target="</span><span>_blank</span><span class="string">" rel="</span><span>nofollow">Twitter </span> </li> </ol>
2. 分享到嘀咕的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://app.foxling.cn/dilink/share.asp?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"</span><span> </span></a></span></span></li> <li> <span>title=</span><span class="string">"嘀咕一下"</span><span> target=</span><span class="string">"_blank"</span><span>>嘀咕 </span> </li> </ol>
3. 分享到饭否的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span> d=document,w=window, </span></a></span></span></li> <li> <span>f=</span><span class="string">'http://fanfou.com/share'</span><span>,l=d.location, </span> </li> <li class="alt"><span>e=encodeURIComponent, </span></li> <li> <span>p=</span><span class="string">'?u='</span><span>+e(l.href)+</span><span class="string">'?t='</span><span>+e(d.title)+</span><span class="string">'?d='</span><span>+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+</span><span class="string">'?s=bl'</span><span>; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(!w.open(f+</span><span class="string">'r'</span><span>+p,</span><span class="string">'sharer'</span><span>,</span><span class="string">'toolbar=0,status=0,width=600,height=400'</span><span>)) </span> </li> <li> <span>{l.href=f+</span><span class="string">'.new'</span><span>+p;}void(0)">饭否 </span> </li> </ol>
4. 分享到做啥的代码
<ol class="dp-c"> <li class="alt"><span><span><a></a></span></span></li> <li> <span>t=document.title;t=t.</span><span class="func">substr</span><span>(0,76); </span> </li> <li class="alt"><span>c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text); </span></li> <li> <span>c=c.</span><span class="func">substr</span><span>(0,180); </span> </li> <li class="alt"> <span>location=%22http:</span><span class="comment">//zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u); </span><span> </span> </li> <li><span>void%200">做啥 </span></li> </ol>
5. 分享到叽歪的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://jiwai.de/wo/share/s?u=<?php the_permalink() ?>&t=<?php the_title(); ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>叽歪 </span> </li> </ol>
6. 分享到豆瓣的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">function</span><span>(){</span><span class="keyword">var</span><span>%20d=document, </span></a></span></span></li> <li><span>e=encodeURIComponent,s1=window.getSelection, </span></li> <li class="alt"> <span>s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:</span><span class="string">' '</span><span>, </span> </li> <li> <span>r=</span><span class="string">'http://www.douban.com/recommend/?url='</span><span>+e(d.location.href)+</span><span class="string">'&title="</span><span>+e(d.title)+</span><span class="string">'&sel='</span><span>+e(s)+</span><span class="string">'&v=1'</span><span>,x=</span><span class="keyword">function</span><span>() </span> </li> <li class="alt"> <span>{</span><span class="keyword">if</span><span>(!window.open(r,</span><span class="string">'douban'</span><span>,</span><span class="string">'toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'</span><span>)) </span> </li> <li> <span>location.href=r+</span><span class="string">'&r=1'</span><span>}; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(/firefox/.test(navigator.userAgent)) </span> </li> <li> <span>{setTimeout(x,0)}</span><span class="keyword">else</span><span>{x()}})()</span><span class="string">" title="</span><span>推荐到 豆瓣</span><span class="string">" rel="</span><span>nofollow" >豆瓣 </span> </li> </ol>
7. 分享到Facebook的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.facebook.com/sharer.php?u=<?php the_permalink();?> </span><span> </span></a></span></span></li> <li><span>&t=<?php the_title(); ?>" </span></li> <li class="alt"> <span>target=</span><span class="string">"blank"</span><span>>Facebook </span> </li> </ol>
8. 分享到FriendFeed的代码
<ol class="dp-xml"> <li class="alt"><span><span class="tag"><span class="tag-name">a</span><span> </span><span class="attribute">href</span><span>="javascript:void((function(){var%</span><span class="attribute">20e</span><span>=</span><span class="attribute-value">document</span><span>.createElement('script'); </span></span></span></li> <li><span>e.setAttribute('type','text/javascript'); </span></li> <li class="alt"><span>e.setAttribute('src','http://friendfeed.com/share/bookmarklet/javascript'); </span></li> <li><span>document.body.appendChild(e)})())" </span></li> <li class="alt"> <span class="attribute">title</span><span>=</span><span class="attribute-value">"分享到 FriendFeed"</span><span> </span><span class="attribute">rel</span><span>=</span><span class="attribute-value">"nofollow"</span><span class="tag">></span><span> </span> </li> <li> <span>FriendFeed</span><span class="tag"></span><span class="tag-name">a</span><span class="tag">></span><span> </span> </li> </ol>
9. 分享到Google Reader的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span>%20b=document.body; </span></a></span></span></li> <li> <span class="keyword">var</span><span>%20GR________bookmarklet_domain=</span><span class="string">'http://www.google.com'</span><span>; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(b&&!document.xmlVersion){void(z=document.createElement(</span><span class="string">'script'</span><span>)); </span> </li> <li> <span>void(z.src=</span><span class="string">'http://www.google.com/reader/ui/link-bookmarklet.js'</span><span>); </span> </li> <li class="alt"><span>void(b.appendChild(z));} </span></li> <li> <span class="keyword">else</span><span>{}" </span> </li> <li class="alt"> <span>title=</span><span class="string">"Share in Google Reader"</span><span> rel=</span><span class="string">"nofollow"</span><span>>Google Reader </span> </li> </ol>
10. 分享到海内的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">function</span><span>(s,d,e,t,v) </span></a></span></span></li> <li> <span>{</span><span class="keyword">var</span><span> f=’http:</span><span class="comment">//hainei.com/share.proxy?a=’, </span><span> </span> </li> <li class="alt"> <span>u=d.location,l=d.title,p=[</span><span class="string">'& src=bookmark&url='</span><span>, </span> </li> <li> <span>e(u),</span><span class="string">'&title="</span><span>,e(l),</span><span class="string">'&v='</span><span>,v,</span><span class="string">'& i='</span><span>,t].join(”); </span> </li> <li class="alt"> <span class="keyword">function</span><span> a(){</span><span class="keyword">if</span><span>(!window.open([f,</span><span class="string">'bmlet'</span><span>,p].join(”),’hnsharer’, [</span><span class="string">'toolbar=0,status=0,resizable=1,width=626,height=436,left='</span><span>,(s.width- 626)/2,</span><span class="string">',top='</span><span>, </span> </li> <li> <span>(s.height-436)/2].join(”)))u.href= [f,</span><span class="string">'newurl'</span><span>,p].join(”);}; </span> </li> <li class="alt"> <span class="keyword">if</span><span>(/Firefox /.test(navigator.userAgent)) </span> </li> <li> <span>setTimeout(a,0);</span><span class="keyword">else</span><span> a();})(screen,document,encodeURIComponent,1207710314,1));">海內 </span> </li> </ol>
11. 分享到鲜果的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.xianguo.com/service/submitdigg/?link=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">鲜果 </span> </li> </ol>
12. 分享到垦一垦的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.ken1ken.com/submit/?source=bookmarklet;ver=2; </span><span> </span></a></span></span></li> <li><span>url=<?php the_permalink() ?>; </span></li> <li class="alt"> <span>title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">垦一垦 </span> </li> </ol>
13. 分享到我挖的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>我挖 </span> </li> </ol>
14. 分享到挖客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.waakee.com/submit.php?url=<?php the_permalink() ?>"</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>挖客 </span> </li> </ol>
15. 分享到奇客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="string">"http://www.diglog.com/submit.aspx?title=<?php the_title(); ?>&url=<?php the_permalink() ?>&description="</span><span> </span></a></span></span></li> <li> <span>target=</span><span class="string">"_blank"</span><span>>奇客 </span> </li> </ol>
16. 分享到Gootou的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="keyword">var</span><span>%20glx_t=</span><span class="string">'default'</span><span>; </span></a></span></span></li> <li> <span>(</span><span class="keyword">function</span><span>() </span> </li> <li class="alt"> <span>{</span><span class="keyword">var</span><span>%20js=document.createElement(</span><span class="string">'script'</span><span>); </span> </li> <li> <span class="keyword">if</span><span>(typeof(js)!=</span><span class="string">'object'</span><span>) </span> </li> <li class="alt"> <span>js=document.standardCreateElement(</span><span class="string">'script'</span><span>); </span> </li> <li><span>js.type=%22text/javascript%22; </span></li> <li class="alt"> <span>js.src=</span><span class="string">'http://www.gootou.com/js/fetch_page.js'</span><span>; </span> </li> <li> <span>document.getElementsByTagName(</span><span class="string">'html'</span><span>)[0].appendChild(js)})();"> </span> </li> <li class="alt"><span>Gootou </span></li> </ol>
17. 收藏到Delicious的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>¬es=</span><span class="string">" target="</span><span>_blank">Delicious </span> </li> </ol>
18. 收藏到QQ书签的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//shuqian.qq.com/post?from=3&title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&uri=<?php the_permalink() ?>&jumpback=2&noui=1</span><span class="string">" target="</span><span>_blank">QQ </span> </li> </ol>
19. 收藏到Google的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li><span>&title=<?php the_title(); ?>">Google </span></li> </ol>
20. 收藏到百度的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//cang.baidu.com/do/add?it=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&iu=<?php the_permalink() ?>&fr=ien#nw=1</span><span class="string">" target="</span><span>_blank">百度 </span> </li> </ol>
21. 收藏到雅虎的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&t=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">雅虎 </span> </li> </ol>
22. 收藏到乐收的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//leshou.com/post?act=shou&reuser=&url=<?php the_permalink() ?> </span><span> </span></a></span></span></li> <li> <span>&title=<?php the_title(); ?>&intro=&tags=&tool=1</span><span class="string">" target="</span><span>_blank">乐收 </span> </li> </ol>
23. 收藏到收客的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客 </span> </li> </ol>
24. 收藏到9fav的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></a></span></span></li> <li> <span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客 </span> </li> </ol>
25. 收藏到Mister.Wong的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.mister-wong.cn/index.php?action=addurl&bm_url=<?php the_permalink() ?>& </span><span> </span></a></span></span></li> <li><span>bm_description=<?php the_title(); ?>" </span></li> <li class="alt"> <span>target=</span><span class="string">"_blank"</span><span>>Mister.Wong </span> </li> </ol>
26. 收藏到有道的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//shuqian.youdao.com/manage?a=popwindow&title=’ + encodeURI(document.title) + </span><span> </span></a></span></span></li> <li><span>‘&url=’ + encodeURI(document.location), ”> </span></li> <li class="alt"><span> 有道 </span></li> </ol>
27. 推荐到九点的代码
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"text/javascript"</script></span><span> src=</span><span class="string">"http://9.douban.com/js/button_widget.js"</span><span>> </span></span></li></ol>
28. 推荐到sphinn
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"text/javascript"</script></span><span> src=</span><span class="string">"http://sphinn.com/evb/button.php"</span><span>> </span></span></li></ol>
29. 推荐到digg的代码
<ol class="dp-c"><li class="alt"><span><span><script><span class="string">"http://digg.com/tools/diggthis.js"</script></span><span> type=</span><span class="string">"text/javascript"</span><span>> </span></span></li></ol>
30. 推荐到stublem upon的代码
<ol class="dp-c"> <li class="alt"><span><span><a><span class="comment">//www.stumbleupon.com/submit?url=<?php the_permalink(); ?> </span><span> </span></a></span></span></li> <li><span>&title=<?php the_title(); ?>"> </span></li> <li class="alt"><span><img alt="30个WordPress博客书签收藏分享代码" ><span class="string">"http://cdn.stumble-upon.com/images/120x20_su_gray.gif"</span><span>> </span></span></li> </ol>

wordpress后台乱码的解决办法:1、在wordpress的“wp-admin”文件夹下找到“admin.header.php”文件;2、将“charset”属性值设置为“UTF-8”格式即可恢复正常。

wordpress标签错误的解决办法:1、找到并打开wordpress的“wp-includes”目录下的“class-wp.php”文件;2、修改内容为“$pathinfo = isset( $_SERVER['PATH_INFO'] )?mb_convert_encoding($_SERVER['PATH_INFO'],'utf-8','GBK') : '';”即可。

你下载的WordPress主题提供的keywords和description这两个meta标签一般都做得很差,或者根本就不提供,这样不利于SEO。本文将指导你如何给主页、分类、页面以及文章页添加单独的Description 和 Keywords。

wordpress乱码的解决办法:1、修改“wp-config.php”文件里的“define(’DB_CHARSET’, ‘utf8′);”为“define(’DB_CHARSET’, ”);”;2、把新数据库的编码设置成“latin1_swedish_ci”;3、以uft8的格式导入备份的数据库文件即可。

wordpress进不去的解决办法:1、把地址栏“wp-login.php”后面的参数删掉,然后重新输入密码登录;2、登录FTP,下载“pluggable.php”文件,然后找到“ADMIN_COOKIE_PATH”并将它替换为“SITECOOKIEPATH”即可。

wordpress不是saas。SaaS是一种软件销售模式,它主要针对云端应用软件,而WordPress是一款CMS系统,它主要针对网站构建和管理。虽然WordPress可以作为SaaS提供服务,但它本质上不是一种SaaS应用。

本次PHP中文网整合了相关的视频教程,中文手册,以及相关的精选文章安利给大家,统统免费!!!通过我们分享的视频,可随时随地免费观看教程视频,也不需要迅雷或者百度网盘下载了。

wordpress是2003年发布的;Matt于2003年5月27日宣布推出第一版WordPress,受到了社区的欢迎,它基于b2 Cafelog并有显著改进;WordPress的第一个版本包括全新的管理界面、模板、XHTML 1.1兼容模板、内容编辑器。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
