Closed (won't fix)
Project:
Weibo Sharebutton
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 16:14 UTC
Updated:
26 Feb 2014 at 03:45 UTC
Jump to comment: Most recent
Comments
Comment #1
markwk commentedIt is probably linking to neither node but to the page you are on. This is actually just from the original code on Weibo:
Replacing line 167 of weibo_sharebutton.module file to:
might fix this issue. Please test and report.
Comment #2
hszhai commentedIt looked like "url:location.href" needs to stay as is, changing it could cause the sharebutton to completely disappear.
According the the document at open.weibo.com, the parameter "title" is what being shared, and it does default to the page where the sharebutton is. I have not figure out an easy way to retrieve the title and/or the beginning part of the text of the associated node for sharing purposes.
var param = {
url:location.href,
type:'3',
count:'1', /**是否显示分享数,1显示(可选)*/
appkey:'', /**您申请的应用appkey,显示分享来源(可选)*/
title:'', /**分享的文字内容(可选,默认为所在页面的title)*/
pic:'', /**分享图片的路径(可选)*/
ralateUid:'', /**关联用户的UID,分享微博会@该用户(可选)*/
rnd:new Date().valueOf()
}
Comment #3
markwk commentedFor pulling the title is easier. I can just pull a variable from the node itself. Probably something like:
For making sure you have the correct url, I'll see about that one too.
I actually will using on this a Chinese site soon, but not on the teaser. I'll see I can get this to work.
Mark
Comment #4
markwk commentedBeen a long time with no info so closing this.