开放源代替AddThis AddToAny,ShareThis等社会书签 [英] Open source alternative to AddThis AddToAny, ShareThis etcfor Social Bookmarking

查看:118
本文介绍了开放源代替AddThis AddToAny,ShareThis等社会书签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在寻找一个多社会书签按钮,它可以帮助我们找到一个多社会书签按钮,允许我允许人们将我的网站的特定页面推荐给他们喜欢的社交网络/页面阅读器/搜索引擎。



限制(以及我不想要的原因以使用ShareThis)


  1. 发布的链接必须是实际的链接,而不是缩短的链接。人们的名单被分享。我希望链接显示我的域名。

  2. 脚本应该由我自己的服务器提供。我怀疑那些调用另一个域的脚本的网页,我不想从我的域中那样做。


  3. 应该没有联系客户和任何社交网站,直到他们点击社交网站图标。

  4. 脚本应该至少在内部有文档记录,至少源代码 - 压缩的未注释短变量名称脚本不需要应用。 $ b
  5. 脚本嵌入在静态网页中,而不是CMS。


  6. $ b

    初步研究:

    2009年Koehl博客发布了一系列关于此事的文章,随后该主题逐渐淡出。那时他推荐了iBegin,后来成为了Share,并从一个名为Enthropia.com的网站跑了出来。检查该网站时,发布的演示显然已过期。

    有一次AddToAny允许在您自己的服务器上托管,但他们仍然在使用脚本来跟踪每个用户的网络使用情况,声称具有适当的匿名性。对。
    不用了,谢谢。



    另外一个,O​​penLike有一个无法访问的web服务器。



    在SourceForge上进行搜索已经空了。 (我尝试搜索像AddThis,AddToAny,Sharethis这样的名字,然后搜索到stumbleupon,reddit,digg,google plus。)



    在这一点上,我面临必须阅读和理解每个目标网站的api,所以我可以编写一个本地脚本来做正确的事情。不是微不足道的。

    在很多方面理想情况是:
    *一组图标,大小和样式都是
    *,每个都打开一个网页页面转到目标页面(例如FB,G +,StumbleUpon ..)
    *,其中包含适合该页面的网址参数。



    但我不认为大多数这些网站都有这样简单的界面。

    解决方案

答案很简单。上面的理想工作,所以它主要是找到正确的代码和图标的问题。我的搜索中的关键项目是'通过网址分享'



示例1



这是来自本网站的另一篇文章:

Facebook,Twitter和Google +1按钮仅使用HTML(无Javascript)

  http://www.facebook.com/sharer.php?u=http://example.com 
http://twitter.com/share?url=http: //example.com&text=Description
https://plusone.google.com/_/+1/confirm?hl=zh-CN&url=http://example.com



示例2



请参阅

b
$ b

 < div class =social-button-container> 
< div class =share_top_text>分享这篇文章:< / div>
< div class =SocialCustomMenu>
< a class =scmTwitterhref =http://twitter.com/home/?status=<?php the_title();?> - <?php echo wp_get_shortlink();? > via @kenmatatitle =Tweet this!> Twitter< / a>
< a class =scmFacebookhref =http://www.facebook.com/sharer.php?u=<?php the_permalink();?> - <?php echo wp_get_shortlink );?>title =在Facebook上分享!> Facebook< / a>
< a class =scmGoogleplushref =https://plus.google.com/share?url=<?php the_permalink();?> - <?php echo wp_get_shortlink(); ?>title =在Google +上分享!> Google +< / a>
< a class =scmPinteresthref =http://pinterest.com/pin/create/button/?url=<?php the_permalink();?> - <?php echo wp_get_shortlink ();?>title =在Pinterest上分享!> Pinterest< / a>< / a>
< / div>
< / div>

虽然这些名义上是wordpress,但它们应该在使用php的任何web服务器上进行一些修改。或者,他们可以很容易地转换为使用模板工具箱

示例3:



减少社交分享链接是非常干净的HTML的另一个例子。



您错过了某些功能:


  • 没有柜台。当然你可以在本地实施计数器。

  • 对于Facebook,人们不会看到他们的哪个朋友喜欢它。对我来说不是一个很大的动力。


  • $ b

    具体情况: / p>


    • 如果有人已经整合了一个分享网址列表,请随时在这里发帖。
      我没有验证以下所有内容。

    • TITLE是共享标题。有些服务会接受它的引用。其他人必须采用网址格式:例如空格为%20
      网址必须是绝对完全限定的。



    digg
    http ://digg.com/submit?phase = 2&url = URL& title = TITLE



    美味
    http://del.icio.us/post?url=URL&title=TITLE



    stumbleupon
    http://www.stumbleupon.com/submit?url=URL&title=TITLE



    脸书
    http://www.facebook.com/sharer.php?u=URL&title=TITLE



    reddit
    http://reddit.com/submit?url=URL&title=TITLE



    technorati
    http://technorati.com/faves?add=URL



    orkut
    http://promote.orkut.com/preview?nt=orkut.com&du=URL&tt=TITLE



    myspace
    http://www.myspace.com/Modules/PostTo/Pages/?u=URL&title=TITLE



    twitter
    https://twitter.com/intent/tweet?url=URL&text=TITLE&via=TWITUSER




    http://myweb2.search.yahoo.com/myresults/bookmarklet?t=TITLE&u=URL



    google(书签)
    http://www.google.com/bookmarks/mark?op=add&bkmk=URL&title=TITLE



    不清楚Google +和plusone之间的差异。



    google Google+)文档位于 https://developers.google.com/+/plugins/share
    http://plus.google.com/share?url=URL



    google推荐加一。
    https://plusone.google.com/_/+1/confirm?hl=zh-CN&url=URL


    Before I attempt to re-invent the wheel, I figured that I'd ask the experts.

    I'm looking for a multi-social bookmark button that allows me to allow people to recommend particular pages of my web site to their favorite social network/ page reader/ seach engine.

    Constraints (and reasons why I don't want to use ShareThis)

    1. The link posted has to be the actual link, not a shortened link. People's lists get shared. I want the link to show my domain.

    2. The script should be served from my own server. I am suspicious of web pages that call scripts from another domain, and I don't want to do that from my domain.

    3. There should be NO contact between the client and any of the social sites until they click on a social site icon.

    4. Script should be well documented internally at least as source -- compacted uncommented short variable name scripts need not apply.

    5. Script is embedded in a static web page, not a CMS.


    Preliminary research:

    Koehl blog had a series about this in 2009, then the topic faded. At that point he recomended iBegin, which subsequently became Share, and ran from a site called Enthropia.com. Checking that site, there is a demo posted that is clearly out of date.

    At one point AddToAny would allow hosting on your own server, but they still were using the script to track every user's web usage, claiming a suitably anonymity. Right. No thanks.

    Another one, OpenLike has a dead webserver.

    A search on SourceForge has come up empty. (I tried searching for the names like AddThis, AddToAny, Sharethis, followed by searches to stumbleupon, reddit, digg, google plus. Nothing relevant.)

    At this point I'm faced with having to read and understand each target site's api so I can write a local script that does the right thing. Not trivial.

    In many ways the ideal would be: * An array of icons in simlarly size and style * that each opened a web page onto the destination page (eg. FB, G+, StumbleUpon..) * with URL parameters appropriate to that page.

    But I don't think that most of these sites have such a simple interface.

    解决方案

    Answer is simple. The ideal above works, so it's mostly a matter of finding the right code and icons. The key item in my search was 'share by url'

    Example 1

    This is from another post on this site:

    Facebook, Twitter, and Google +1 buttons using only HTML (No Javascript)

    http://www.facebook.com/sharer.php?u=http://example.com
    http://twitter.com/share?url=http://example.com&text=Description
    https://plusone.google.com/_/+1/confirm?hl=en&url=http://example.com
    

    Example 2

    See Wordpress share buttons without JS or plugins

    <div class="social-button-container">
    <div class="share_top_text">Share this post on:</div>
        <div class="SocialCustomMenu">
        <a class="scmTwitter" href="http://twitter.com/home/?status=<?php the_title();?> - <?php echo wp_get_shortlink();?> via @kenmata "title="Tweet this!">Twitter</a>
        <a class="scmFacebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Facebook!">Facebook</a>
        <a class="scmGoogleplus" href="https://plus.google.com/share?url=<?php the_permalink();?> -  <?php echo wp_get_shortlink();?> "title="Share on Google +!">Google +</a>
        <a class="scmPinterest" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink();?> - <?php echo wp_get_shortlink();?> "title="Share on Pinterest!">Pinterest</a></a>
    </div>
    </div>
    

    While these are nominally wordpress they should work with some modification with any web server using php. Or they can easily be converted to use template toolkit

    Example 3:

    Less social share links is another example of very clean looking HTML.

    You miss some functionality with this:

    • No counters. Of course you could implement counters locally.
    • For Facebook the people don't get to see which of their friends liked it. Not a big motivator for me.
    • At this point finding the codes for each service is an obstacle.

    Specifics:

    • If someone has already consolidated a share-by-url list, please feel free to post here. I have NOT verified all of the following.
    • TITLE is the share title. Some services will accept it quoted. Others must be in URL format: e.g. spaces are %20 URL must be fully qualified absolute.

    digg http://digg.com/submit?phase=2&url=URL&title=TITLE

    delicious http://del.icio.us/post?url=URL&title=TITLE

    stumbleupon http://www.stumbleupon.com/submit?url=URL&title=TITLE

    facebook http://www.facebook.com/sharer.php?u=URL&title=TITLE

    reddit http://reddit.com/submit?url=URL&title=TITLE

    technorati http://technorati.com/faves?add=URL

    orkut http://promote.orkut.com/preview?nt=orkut.com&du=URL&tt=TITLE

    myspace http://www.myspace.com/Modules/PostTo/Pages/?u=URL&title=TITLE

    twitter https://twitter.com/intent/tweet?url=URL&text=TITLE&via=TWITUSER

    yahoo http://myweb2.search.yahoo.com/myresults/bookmarklet?t=TITLE&u=URL

    google (bookmark) http://www.google.com/bookmarks/mark?op=add&bkmk=URL&title=TITLE

    Not clear on the distiction between google+ and plusone.

    google (share on Google+ ) Documentation at https://developers.google.com/+/plugins/share http://plus.google.com/share?url=URL

    google recommend on plusone. https://plusone.google.com/_/+1/confirm?hl=en&url=URL

    这篇关于开放源代替AddThis AddToAny,ShareThis等社会书签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆