登录 注册

登录

问题 有关增加网摘按钮的问题

更多
2008年09月02日 18:31 - 2008年09月02日 18:59 #1 作者: rpanda
我在autoit.cn,那里看到这个文章,非常喜欢,可能是文章太久了吧2007.4月多写的吧,现在在/components/com_content/content.php里找不到$params = new mosParameters( $row->attribs );这个了,不知道白老大知道如何加网摘的方法吗?
我想直接在autoit.cn那里询问,可是无耐注册永远没法收到激活,没法发贴,超级郁闷,只有在里救助下,这是我最喜欢的站啦,还有白老大太好了!

增加网摘按钮:

修改文件:  :

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

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

   
$row->fulltext.="
 
<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/下面就可以了.


最后修改: 2008年09月02日 18:59 由 fjc.

登录 或者   注册一个会员帐号 来参与讨论

更多
2008年09月02日 19:15 #2 作者: Joomla之门
首先纠正一个观念:我希望大家都能理解“尽量不要修改核心文件”这个理念。尤其是 Joomla! 1.5.x 平台提供了灵活、丰富、强大的 API,很多问题都可以通过开发第三方扩展来解决。因此,我们首先考虑安装扩展,这样可以保持核心文件不动,在下次升级核心时才不会引起麻烦。

“网摘”系统也叫“分享”系统,国外常见的有 Digg 等,国内的也很多。如果你希望自己定制显示哪些网摘按钮,我认为应该尝试一下 Bookmark System Manager 网络收藏链接管理组件 ,它也有配套的插件用于在文章中显示你指定的网摘按钮。

付费下载 Joomla 3 扩展汉化版: 我要付费支持 Joomla 之门!

登录 或者   注册一个会员帐号 来参与讨论

更多
2008年09月25日 10:51 #3 作者: hbxiao135
能提供下 Bookmark System Manager的配套插件吗?怎么才能在前台看见书签呢?需要怎么设置呢?请高手指教》

登录 或者   注册一个会员帐号 来参与讨论