Support jOOmla! Autoit!
 
文章内增加网摘按钮 输出PDF 打印 E-mail
Author Author: Autoit | Date Date:2007-04-23 | View Count View: 36558 | Digg Count Digg: 149

 增加网摘按钮:

修改文件: /components/com_content/content.php :

搜索:

$params = new mosParameters( $row->attribs );

在他之上加入下面代码保存

   $row->fulltext.="<br /><br /><div align='right'>Shares:
    <a href=\"javascript:location.href='http://www.google.com/bookmarks/mark?op=add&amp;bkmk='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"Google书签\" src=\"/images/share/google.gif\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+encodeURIComponent(location.href)+'&amp;t='+encodeURIComponent(document.title)\"><img alt=\"Yahoo书签\" src=\"/images/share/yahoo.gif\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"雅虎收藏夹\" src=\"/images/share/yahoomyweb-cn.png\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();\"><img alt=\"365Key网摘\" src=\"/images/share/365key.gif\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&amp;title='+escape(d.title)+'&amp;url='+escape(d.location.href)+'&amp;desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();\"><img alt=\"新浪ViVi\" src=\"/images/share/vivi.gif\" border=\"0\" /></a>
    <a title=\"百度收藏\" href=\"javascript:u=location.href;t=document.title;c = %22%22 + (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&amp;iu=%22+encodeURIComponent(u)+%22&amp;dc=%22+encodeURIComponent(c)+%22&amp;fr=ien#nw=1%22;window.open(url,%22_blank%22,%22scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes%22); void 0\"><img alt=\"百度收藏\" src=\"/images/share/baidu.gif\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(yesky=window.open('http://hot.yesky.com/dp.aspx?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;st=2','yesky','scrollbars=no,width=400,height=480,left=75,top=20,status=no,resizable=yes'));yesky.focus();\"><img alt=\"天极网摘\" src=\"/images/share/yesky.gif\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://www.diglog.com/submit?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"diglog\" src=\"/images/share/diglog.png\" border=\"0\" /></a>
    <a href=\"javascript:t=document.title;u=location.href;e=document.selection?(document.selection.type!='None'?document.selection.createRange().text:''):(document.getSelection?document.getSelection():'');void(open('http://bookmark.hexun.com/post.aspx?title='+escape(t)+'&amp;url='+escape(u)+'&amp;excerpt='+escape(e),'HexunBookmark','scrollbars=no,width=600,height=450,left=80,top=80,status=no,resizable=yes'));\"><img alt=\"和讯网摘\" src=\"/images/share/hexun.gif\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://my.poco.cn/fav/storeIt.php?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t)+'&amp;img=http://www.h-strong.com/blog/logo.gif','keyit','scrollbars=no,width=475,height=575,status=no,resizable=yes'));keyit.focus();\"><img alt=\"POCO网摘\" src=\"/images/share/poco.gif\" border=\"0\" /></a>
    <a href=\"javascript:u=location.href;t=document.title;void(open('http://www.YouNote.com/NoteIt.aspx?u='+escape(u)+'&amp;t='+escape(t)+'&amp;c='+escape(document.selection.createRange().text),'网络书签', 'toolbar=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));\"><img alt=\"YouNote网摘\" src=\"/images/share/younote.gif\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(blog=window.open('http://www.bolaa.com/CommendBlog/SmallLogin.aspx?title='+escape(d.title)+'&amp;newspath='+escape(d.location.href)+'&amp;subtitle='+escape(t),'bolaa','width=400px,height=400px'));blog.focus();\"><img alt=\"博拉网\" src=\"/images/share/bolaa.gif\" border=\"0\" /></a>
    <a href=\"javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.cn3.cn/user/addurl.asp?t='+escape(d.title)+'&amp;u='+escape(d.location.href)+'&amp;c='+escape(t),'keyit','scrollbars=no,width=490,height=450,left=120,top=50,status=no,resizable=yes'));keyit.focus();\"><img alt=\"天下图摘\" src=\"/images/share/cn3.gif\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://www.spurl.net/spurl.php?v=3&amp;title='+encodeURIComponent(document.title)+'&amp;url='+encodeURIComponent(location.href)\"> <img alt=\"spurl\" src=\"/images/share/spurl.png\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://blogmarks.net/my/new.php?mini=1&amp;simple=1&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"> <img alt=\"blogmarks\" src=\"/images/share/blogmarks.png\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description='+encodeURIComponent(document.title)+'&amp;Url='+encodeURIComponent(location.href)+'&amp;Title='+encodeURIComponent(document.title)\"><img alt=\"BlinkList\" src=\"/images/share/blinklist.gif\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://reddit.com/submit?url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"reddit\" src=\"/images/share/reddit.png\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://digg.com/submit?phase=2&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"digg\" src=\"/images/share/digg.png\" border=\"0\" /></a>
    <a href=\"javascript:location.href='http://del.icio.us/post?&amp;url='+encodeURIComponent(location.href)+'&amp;title='+encodeURIComponent(document.title)\"><img alt=\"Del.icio.us\" src=\"/images/share/delicious.gif\" border=\"0\" /></a></div>";

接着把我下面的一排图片保存下来,放在 share 文件夹里,然后全部上传到joomla根目录的 /images/下面就可以了.


Permanent URL: http://www.autoit.cn/index.php/content/view/108/25.html

Shares: Google书签 Yahoo书签 雅虎收藏夹 365Key网摘 新浪ViVi 百度收藏 天极网摘 diglog 和讯网摘 POCO网摘 YouNote网摘 博拉网 天下图摘 spurl blogmarks BlinkList reddit digg Del.icio.us   |  Tags: 网摘  

5 Autoit @ 2007-04-24 10:28:16 : to haiwasnm
恭喜,你成功了., 把我的图片保存下来,放在 share 文件夹里,然后全部上传到joomla根目录的 /images/下面就可以了
4 haiwasnm @ 2007-04-24 10:14:27 :
我加入代码后都是红XX,错在哪里?
3 Autoit @ 2007-04-24 00:19:26 : to jackyking
我觉得用bot还不如直接 hack 要好些. 毕竟少次 select
2 jackyking @ 2007-04-24 00:01:01 :
赞...和我这两天在看的一样.... 
 
不过我改的是bot,socialbookmarkerbot,还没完成:( 
 
少了一个抓虾和QQ书签
1 访客 @ 2007-04-23 17:28:14 : 在那里更改?
在那里更改?

Only registered users can write comments.
Please login or register.

« First « 1 2 » Last »
 
文章右侧增加广告的补充与扩展   单元页面罗列出所有分类的最新10个条目