寒冷平原


八月 22nd, 2010

如何同步WordPress文章同步到人人网 开心网

47,373 views, WordPress, by coldplains.

RT 能实现这个的插件有很多种,但是有些人就是不喜欢用插件,那怎么办呢?好吧,修改文章页面模板single.php吧

首先是如何找到人人网和开心网的分享链接地址:

其实也很简单,只要进入优酷之类可以分享到人人的那些站点,点开任意视频,在下面选择分享到人人,随后人人的网址就打开了,在地址栏里明明白白的写着用来分享到人人的那个链接:http://share.renren.com/share/buttonshare.do?link=

例如代码是:

<a rel="nofollow" target="_blank" title="转贴到人人网" href="http://share.renren.com/share/buttonshare.do?link=<?php echo urlencode(get_permalink($post->ID)); ?>&title=<?php echo urlencode($post->post_title);?>">转贴到人人网</a>

还有一种代码是这样的:(复制时请注意代码中的标点符号,请改为英文半角,否者不能正常使用)

1. 分享到twitter的代码

<a href=”http://twitter.com/home?status=<?php the_permalink(); ?> <?php the_title(); ?>” title=”分享到 Twitter” target=”_blank” rel=”nofollow”>Twitter</a>

2. 分享到嘀咕的代码

<a href=”http://app.foxling.cn/dilink/share.asp?u=<?php the_permalink(); ?>&t=<?php the_title(); ?>” title=”嘀咕一下” target=”_blank”>嘀咕</a>

3. 分享到饭否的代码

<a href=”javascript:var d=document,w=window,f=’http://fanfou.com/share’,l=d.location,e=encodeURIComponent,p=’?u=’+e(l.href)+’?t=’+e(d.title)+’?d=’+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+’?s=bl’;if(!w.open(f+’r’+p,’sharer’,’toolbar=0,status=0,width=600,height=400′)){l.href=f+’.new’+p;}void(0)”>饭否</a>

4. 分享到做啥的代码

<a href=”javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200″>做啥</a>

5. 分享到叽歪的代码

<a href=”http://jiwai.de/wo/share/s?u=<?php the_permalink() ?>&t=<?php the_title(); ?>” target=”_blank”>叽歪</a>

6. 分享到豆瓣的代码

<a href=”javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:’ ‘,r=’http://www.douban.com/recommend/?url=’+e(d.location.href)+’&title=’+e(d.title)+’&sel=’+e(s)+’&v=1′,x=function(){if(!window.open(r,’douban’,’toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330′))location.href=r+’&r=1′};if(/firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()” title=”推荐到 豆瓣” rel=”nofollow” >豆瓣</a>

7. 分享到Facebook的代码

<a href=”http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>” target=”blank”>Facebook</a>

8. 分享到FriendFeed的代码

<a href=”javascript:void((function(){var%20e=document.createElement(’script’);e.setAttribute(‘type’,’text/javascript’);e.setAttribute(’src’,’http://friendfeed.com/share/bookmarklet/javascript’);document.body.appendChild(e)})())” title=”分享到 FriendFeed” rel=”nofollow”>FriendFeed</a>

9. 分享到Google Reader的代码

<a href=”javascript:var%20b=document.body;var%20GR________bookmarklet_domain=’http://www.google.com’;if(b&&!document.xmlVersion){void(z=document.createElement(’script’));void(z.src=’http://www.google.com/reader/ui/link-bookmarklet.js’);void(b.appendChild(z));}else{}” title=”Share in Google Reader” rel=”nofollow”>Google Reader</a>

10. 分享到海内的代码

<a href=”javascript:void((function(s,d,e,t,v){var f=’http://hainei.com/share.proxy?a=’,u=d.location,l=d.title,p=[‘& src=bookmark&url=’,e(u),’&title=’,e(l),’&v=’,v,’& i=’,t].join(”);function a(){if(!window.open([f,’bmlet’,p].join(”),’hnsharer’, [‘toolbar=0,status=0,resizable=1,width=626,height=436,left=’,(s.width- 626)/2,’,top=’,(s.height-436)/2].join(”)))u.href= [f,’newurl’,p].join(”);};if(/Firefox /.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent,1207710314,1));”>海內</a>

11. 分享到鲜果的代码

<a href=”http://www.xianguo.com/service/submitdigg/?link=<?php the_permalink() ?>&title=<?php the_title(); ?>” target=”_blank”>鲜果</font></a>

12. 分享到垦一垦的代码

<a href=”http://www.ken1ken.com/submit/?source=bookmarklet;ver=2;url=<?php the_permalink() ?>;title=<?php the_title(); ?>” target=”_blank”>垦一垦</a>

13. 分享到我挖的代码

<a href=”http://www.digbuzz.com/submit.php?url=<?php the_permalink() ?>” target=”_blank”>我挖</a>

14. 分享到挖客的代码

<a href=”http://www.waakee.com/submit.php?url=<?php the_permalink() ?>” target=”_blank”>挖客</a>

15. 分享到奇客的代码

<a href=”http://www.diglog.com/submit.aspx?title=<?php the_title(); ?>&url=<?php the_permalink() ?>&description=” target=”_blank”>奇客</a>

16. 分享到Gootou的代码

<a href=”javascript:var%20glx_t=’default’;(function(){var%20js=document.createElement(’script’);if(typeof(js)!=’object’)js=document.standardCreateElement(’script’);js.type=%22text/javascript%22;js.src=’http://www.gootou.com/js/fetch_page.js’;document.getElementsByTagName(‘html’)[0].appendChild(js)})();”>Gootou</a>

17. 收藏到Delicious的代码

<a href=”http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>&notes=” target=”_blank”>Delicious</a>

18. 收藏到QQ书签的代码

<a href=”http://shuqian.qq.com/post?from=3&title=<?php the_title(); ?>&uri=<?php the_permalink() ?>&jumpback=2&noui=1″ target=”_blank”>QQ</a>

19. 收藏到Google的代码

<a href=”http://www.google.com/bookmarks/mark?op=add&bkmk=<?php the_permalink() ?>&title=<?php the_title(); ?>”>Google</a>

20. 收藏到百度的代码

<a href=”http://cang.baidu.com/do/add?it=<?php the_title(); ?>&iu=<?php the_permalink() ?>&fr=ien#nw=1″ target=”_blank”>百度</a>

21. 收藏到雅虎的代码

<a href=”http://myweb2.search.yahoo.com/myresults/bookmarklet?u=<?php the_permalink() ?>&t=<?php the_title(); ?>” target=”_blank”>雅虎</a>

22. 收藏到乐收的代码

<a href=”http://leshou.com/post?act=shou&reuser=&url=<?php the_permalink() ?>&title=<?php the_title(); ?>&intro=&tags=&tool=1″ target=”_blank”>乐收</a>

23. 收藏到收客的代码

<a href=”http://www.shouker.com/mc/col/post2.aspx?title=<?php the_title(); ?>&surl=<?php the_permalink() ?>&tags=&desc=” target=”_blank”>收客</a>

24. 收藏到9fav的代码

<a href=”http://www.9fav.com/profile/user_url/add?t=<?php the_title(); ?>&u=<?php the_permalink() ?>” target=”_blank”>9fav</a>

25. 收藏到Mister.Wong的代码

<a href=”http://www.mister-wong.cn/index.php?action=addurl&amp;bm_url=<?php the_permalink() ?>&amp;bm_description=<?php the_title(); ?>” target=”_blank”>Mister.Wong</a>

26. 收藏到有道的代码

<a href=”javascript:void(window.open(’http://shuqian.youdao.com/manage?a=popwindow&title=’ + encodeURI(document.title) + ‘&url=’ + encodeURI(document.location), ”> 有道</a>

27. 推荐到九点的代码

<script type=”text/javascript” src=”http://9.douban.com/js/button_widget.js”></script>

28. 推荐到sphinn

<script type=”text/javascript” src=”http://sphinn.com/evb/button.php”></script>

29. 推荐到digg的代码

<script src=”http://digg.com/tools/diggthis.js” type=”text/javascript”></script>

30. 推荐到stublem upon的代码

<a href=”http://www.stumbleupon.com/submit?url=<?php the_permalink(); ?>&title=<?php the_title(); ?>”><img src=”http://cdn.stumble-upon.com/images/120×20_su_gray.gif”></a>

以下三个是我在使用的:图片+文字呈现

31.转发到新浪微博

<a href=”javascript:window.open(‘http://v.t.sina.com.cn/share/share.php?title=’+encodeURIComponent(document.title.substring(0,76))+’&url=’+encodeURIComponent(location.href)+’&rcontent=’,’_blank’,’scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes’); void 0″ style=”color:#000000;text-decoration:none;font-size:12px;font-weight:normal”><SPAN style=”PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 10px; CURSOR: pointer; PADDING-TOP: 5px”><IMG alt=转发到新浪微博 src=”http://t.sina.com.cn/favicon.ico” align=absMiddle border=0>&nbsp;转发到新浪微博</SPAN></a>

32.转发到开心网

<a href=”javascript:window.open(‘http://www.kaixin001.com/repaste/share.php?rtitle=’+encodeURIComponent(document.title.substring(0,76))+’&rurl=’+encodeURIComponent(location.href)+’&rcontent=’,’_blank’,’scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes’); void 0″ style=”color:#000000;text-decoration:none;font-size:12px;font-weight:normal”><SPAN style=”PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 10px; CURSOR: pointer; PADDING-TOP: 5px”><IMG alt=转帖到开心网 src=”http://img1.kaixin001.com.cn/i/favicon.ico” align=absMiddle border=0>&nbsp;转帖到开心网</SPAN></a>

33.转发到人人网

<a href=”javascript:window.open(‘http://share.renren.com/share/buttonshare.do?title=’+encodeURIComponent(document.title.substring(0,76))+’&link=’+encodeURIComponent(location.href)+’&content=’,’_blank’,’scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes’); void 0″ style=”color:#000000;text-decoration:none;font-size:12px;font-weight:normal”><SPAN style=”PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN-LEFT: 10px; CURSOR: pointer; PADDING-TOP: 5px”><IMG alt=转帖到人人网 src=”http://s.xnimg.cn/favicon-rr.ico” align=absMiddle border=0>&nbsp;转帖到人人网</SPAN></a>

本文引用自:

1、谷奥——探寻谷歌的奥秘 [http://www.google.org.cn]

2、分享代码已经找不到出处,若有朋友知道,我会添加



原创文章,转载请注明转自寒冷平原.本文链接地址:http://coldplains.com/?p=436

博主twitter主页http://x.co/xxoo 欢迎fo


Back Top

Tags: ,

回复自“如何同步WordPress文章同步到人人网 开心网”

评论 (17) 引用 (0) 发表评论 引用地址
  1. XX你个XX,好快的发文速度哦……
    😮

  2. AD都是 卓越网的哦……
    你的百毒联盟涅? ❓

  3. 很好的文章,呵呵。分享了~

  4. 这些网站我都不去

  5. 社会化分享插件嘛.

  6. 这些分享是文章一发布就自动分享到自己的社会化网站的吗?求解 😉

  7. 超链接形式的会用.
    那script的怎么用?
    求教`

  8. Ui wirklich klasse neben meiner Canon käme noch so einiges Kisdcrnehnickeldi ( Buch, Malblock, Stifte …) Feuchttücher eine Pämpi und aktuell der neue Ikea Katalog in die RASPBERRY.Nun bin ich gespannt ob ich als leider noch Bloglose auch eine Chance hab.Schöne Grüße Uli

  9. Thanks Mary. I am getting a small tattoo tommorrow, Just Pipers name and a little paw print. It will be my first and only tattoo. It’s just something I really want to do, a kind of emotional thing. It will give me some comfort and it is a mark of respect of the friendship and love we shared. I am a bit nervous though, just afraid of the unknown. But that’s only natural I suppose. I am glad to hear that you are doing better. Take care.

  10. According to "cheese legend" Vacherin is best eaten higher than 1000m above sea-level (ie. where it is made) as it has more taste and much less stink. I can vouch for this after bringing one back from skiing hols – as the bus drove down the mountain the smell got worse and worse, everyone on board evidently looking around to find the guilty corpse/party. We tried keeping it in the garage at home but even there it stank the house out and my dad threw it away…

  1. 没有任何引用。

Leave a Reply

Back Top

😉 😐 😡 😈 🙂 😯 🙁 🙄 😛 😳 😮 mrgreen.png 😆 💡 😀 👿 😥 😎 ➡ 😕 ❓ ❗ 

注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。


无觅相关文章插件,快速提升流量