Home > Backend Development > PHP Tutorial > 30 WordPress Blog Bookmark Collection Sharing Code_PHP Tutorial

30 WordPress Blog Bookmark Collection Sharing Code_PHP Tutorial

WBOY
Release: 2016-07-20 10:56:56
Original
1279 people have browsed it

30 blog bookmark collection sharing codes, suitable for wordpress blogs. Thanks to Boyilun for your submission, the code list is expanded based on the excellent blog. Parlan personally often gets fresh fruit which is a must-have and has the best effect. Others are basically dispensable, it depends on your preference.

1. Share the code to twitter

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//twitter.com/home?status=<?php the_permalink(); ?>  </span><span> </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</a> </span>
</li>
</ol>
Copy after login

2. Share the code to Digu

<ol class="dp-c">
<li class="alt"><span><span><a href=</span><span class="string">"http://app.foxling.cn/dilink/share.asp?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>"</span><span>   </span></span></li>
<li>
<span>title=</span><span class="string">"嘀咕一下"</span><span> target=</span><span class="string">"_blank"</span><span>>嘀咕</a> </span>
</li>
</ol>
Copy after login

3. Share the code on Fanfou

<ol class="dp-c"><li class="alt"><span><span><a href="javascript:</span><span class="keyword">var</span><span> d=document,w=window,  </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)">饭否</a>  </span></span></li></ol>
Copy after login

4. Share the code on what to do

<ol class="dp-c"><li class="alt"><span><span><a href="javascript:u=location.href;  </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">做啥</a> </span></span></li></ol>
Copy after login

5. Share it on Jiwai code

<ol class="dp-c">
<li class="alt"><span><span><a href=</span><span class="string">"http://jiwai.de/wo/share/s?u=<?php the_permalink() ?>&t=<?php the_title(); ?>"</span><span>   </span></span></li>
<li>
<span>target=</span><span class="string">"_blank"</span><span>>叽歪</a> </span>
</li>
</ol>
Copy after login

6. Code shared on Douban

<ol class="dp-c"><li class="alt"><span><span><a href="javascript:void(</span><span class="keyword">function</span><span>(){</span><span class="keyword">var</span><span>%20d=document,  </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" >豆瓣</a> </span></span></li></ol>
Copy after login

7. Code shared on Facebook

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.facebook.com/sharer.php?u=<?php the_permalink();?> </span><span> </span></span></li>
<li><span>&t=<?php the_title(); ?>"   </span></li>
<li class="alt">
<span>target=</span><span class="string">"blank"</span><span>>Facebook</a> </span>
</li>
</ol>
Copy after login

8. Code to share on FriendFeed

<ol class="dp-xml">
<li class="alt"><span><span class="tag"><</span><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></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></span></li>
<li>
<span>FriendFeed</span><span class="tag"></</span><span class="tag-name">a</span><span class="tag">></span><span> </span>
</li>
</ol>
Copy after login

9. Code to share on Google Reader

<ol class="dp-c"><li class="alt"><span><span><a href="javascript:</span><span class="keyword">var</span><span>%20b=document.body;  </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</a> </span></span></li></ol>
Copy after login

10. Share the code to domestic

<ol class="dp-c"><li class="alt"><span><span><a href="javascript:void((</span><span class="keyword">function</span><span>(s,d,e,t,v)  </span></span></li><li><span>{</span><span class="keyword">var</span><span> f=&rsquo;http:</span><span class="comment">//hainei.com/share.proxy?a=&rsquo;, </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(&rdquo;);  </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(&rdquo;),&rsquo;hnsharer&rsquo;, [</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(&rdquo;)))u.href= [f,</span><span class="string">'newurl'</span><span>,p].join(&rdquo;);};  </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));">海內</a> </span></span></li></ol>
Copy after login

11. Share the code to Xianguo

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.xianguo.com/service/submitdigg/?link=<?php the_permalink() ?> </span><span> </span></span></li>
<li>
<span>&title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">鲜果</font></a> </span>
</li>
</ol>
Copy after login

12. Share to Kenyiken's code

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.ken1ken.com/submit/?source=bookmarklet;ver=2; </span><span> </span></span></li><li><span>url=<?php the_permalink() ?>;  </span></span></li>
<li class="alt">
<span>title=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">垦一垦</a> </span>
</li>
</ol>
Copy after login

13. Share it with my digging code

<ol class="dp-c">
<li class="alt"><span><span><a href=</span><span class="string">"http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>"</span><span>   </span></span></li>
<li>
<span>target=</span><span class="string">"_blank"</span><span>>我挖</a> </span>
</li>
</ol>
Copy after login

14. Share it with digging customers Code

<ol class="dp-c">
<li class="alt"><span><span><a href=</span><span class="string">"http://www.waakee.com/submit.php?url=<?php the_permalink() ?>"</span><span>   </span></span></li>
<li>
<span>target=</span><span class="string">"_blank"</span><span>>挖客</a> </span>
</li>
</ol>
Copy after login

15. Code shared to Qike

<ol class="dp-c">
<li class="alt"><span><span><a href=</span><span class="string">"http://www.diglog.com/submit.aspx?title=<?php the_title(); ?>&url=<?php the_permalink() ?>&description="</span><span>   </span></span></li>
<li>
<span>target=</span><span class="string">"_blank"</span><span>>奇客</a> </span>
</li>
</ol>
Copy after login

16. Code shared to Gootou

<ol class="dp-c">
<li class="alt"><span><span><a href="javascript:</span><span class="keyword">var</span><span>%20glx_t=</span><span class="string">'default'</span><span>;  </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></span></li>
<li class="alt"><span>Gootou</a> </span></li>
</ol>
Copy after login

17. Add the code to Delicious

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?> </span><span> </span></span></li>
<li>
<span>&notes=</span><span class="string">" target="</span><span>_blank">Delicious</a> </span>
</li>
</ol>
Copy after login

18. Add the code to QQ bookmarks

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//shuqian.qq.com/post?from=3&title=<?php the_title(); ?> </span><span> </span></span></li>
<li>
<span>&uri=<?php the_permalink() ?>&jumpback=2&noui=1</span><span class="string">" target="</span><span>_blank">QQ</a> </span>
</li>
</ol>
Copy after login

19. Codes added to Google

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?> </span><span> </span></span></li>
<li><span>&title=<?php the_title(); ?>">Google</a> </span></li>
</ol>
Copy after login

20. Codes added to Baidu

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//cang.baidu.com/do/add?it=<?php the_title(); ?> </span><span> </span></span></li>
<li>
<span>&iu=<?php the_permalink() ?>&fr=ien#nw=1</span><span class="string">" target="</span><span>_blank">百度</a> </span>
</li>
</ol>
Copy after login

21. Add the code to Yahoo

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?> </span><span> </span></span></li>
<li>
<span>&t=<?php the_title(); ?></span><span class="string">" target="</span><span>_blank">雅虎</a> </span>
</li>
</ol>
Copy after login

22. Add the code to LeShou

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//leshou.com/post?act=shou&reuser=&url=<?php the_permalink() ?> </span><span> </span></span></li>
<li>
<span>&title=<?php the_title(); ?>&intro=&tags=&tool=1</span><span class="string">" target="</span><span>_blank">乐收</a> </span>
</li>
</ol>
Copy after login

23. Add to the code Guest’s code

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></span></li>
<li>
<span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客</a> </span>
</li>
</ol>
Copy after login
Copy after login

24. Code added to 9fav

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?> </span><span> </span></span></li>
<li>
<span>&surl=<?php the_permalink() ?>&tags=&desc=</span><span class="string">" target="</span><span>_blank">收客</a> </span>
</li>
</ol>
Copy after login
Copy after login

25. Code added to Mister.Wong

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.mister-wong.cn/index.php?action=addurl&amp;bm_url=<?php the_permalink() ?>&amp; </span><span> </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</a> </span>
</li>
</ol>
Copy after login

26. Collect the codes of Youdao

<ol class="dp-c">
<li class="alt"><span><span><a href="javascript:void(window.open(&rsquo;http:</span><span class="comment">//shuqian.youdao.com/manage?a=popwindow&title=&rsquo; + encodeURI(document.title) +  </span><span> </span></span></li><li><span>&lsquo;&url=&rsquo; + encodeURI(document.location), &rdquo;>  </span></span></li>
<li class="alt"><span> 有道</a> </span></li>
</ol>
Copy after login

27. Recommend the codes of nine o'clock

<ol class="dp-c"><li class="alt"><span><span><script type=</span><span class="string">"text/javascript"</span><span> src=</span><span class="string">"http://9.douban.com/js/button_widget.js"</span><span>></script> </span></span></li></ol>
Copy after login

28. Recommended to sphinn

<ol class="dp-c"><li class="alt"><span><span><script type=</span><span class="string">"text/javascript"</span><span> src=</span><span class="string">"http://sphinn.com/evb/button.php"</span><span>></script> </span></span></li></ol>
Copy after login

29. Recommended code to digg

<ol class="dp-c"><li class="alt"><span><span><script src=</span><span class="string">"http://digg.com/tools/diggthis.js"</span><span> type=</span><span class="string">"text/javascript"</span><span>></script> </span></span></li></ol>
Copy after login

30. Code recommended to stublem upon

<ol class="dp-c">
<li class="alt"><span><span><a href="http:</span><span class="comment">//www.stumbleupon.com/submit?url=<?php the_permalink(); ?> </span><span> </span></span></li>
<li><span>&title=<?php the_title(); ?>">  </span></li>
<li class="alt"><span><img src=</span><span class="string">"http://cdn.stumble-upon.com/images/120x20_su_gray.gif"</span><span>></a </span></li>
</ol>
Copy after login


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445807.htmlTechArticle30 blog bookmark collection sharing codes, suitable for wordpress blogs. Thanks to Boyilun for your submission, the code list is expanded based on the excellent blog. Paran personally often gets fresh fruit, which is a must-have and has the best effect...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template