-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice if total counts can be displayed in a small box before or after the buttons #49
Comments
And if you don't want to use a thirdparty for getting total shares, you can use something like https://gist.github.com/mhawksey/3833072 or http://99webtools.com/script-to-get-shared-count.php for getting total shares. |
This would be cool option for sure. I wonder if there is a JS-only way to do it? |
Maybe Sharrre ( https://github.com/Julienh/Sharrre)? Sharrre works only
|
Nice! |
If someone is able to build this, I think the count of total shares before
|
So I just kind of integrated rrssb with sharrre tonight on my personal site. You can see an example at http://www.kevinsweet.com/my-bucket-list/. Sharrre by default adds a total from all the social networks, but I didn't want that, so I modified the code to let me grab the individual shares. Just a heads up if anyone else is wanting to do this or something similar. Some social networks don't work with only Javascript, such as Google Plus. Sharrre uses a PHP file to curl and process the response from those social networks. If you were able to setup rrssb though, you can easily add Sharrre and get a total count from at least the social networks that support jsonp (most except G+). You can look through the code for my site if you want https://github.com/DynamicDyno/dynamicdyno.github.io. |
+1, great idea! |
I'll have a look into this, I have a good idea of how to get it done. I did something similar before I found RRSSB. |
Awesome. If you do get something going, would you mind pushing up to 2.0 branch? |
Want to keep this separate for a bit until we can fix #75 as part of the last big 1.x.x |
No worries I will do and I'll have a look at #75 too
|
@dbox I'm looking at the js and I think it might be best to do a rewrite of it. The functions would stay in it but it would end up as a plugin where you would call it like this (with more options of course):
What do you think of that? The social network buttons would be created by the js plugin by specifying them in the order you want them to appear in the options.socialNetworks property. Might allow some more customisability? |
I think this makes a lot of sense. Would definitely be easier for someone to implement. The only downside is not being able to manually edit the meta info in html, but I think that is probably okay. I'm going to start a new 2.0 thread to capture everything. |
I'm glad, I started working on it a little bit today and I will implement
|
The Meta already has settings in the .js... |
What do you mean? |
|
I guess that can get called with the plugin. |
Yeah thats where I'm going to put them all. I'll add in other options for changing the text shown in individual social networks' buttons. So for example there will also be an option for linkedinTitle that will override the default which will be the page title, along with others |
So if you dont want the linked in title to be the page name you can call it like this: $(".rrssb-container").rrssb({
linkedinTitle: "This is a different title for LinkedIn only."
}); |
But all others (FB, twitter etc.) will use the default. This way you can change the share message |
It should be 2-tiered, though right? If nothing set > use current page meta. If title set> Used That being said, I'm not even sure if I care about specific titles per sites. Not sure anyone would even need that. |
Yeah that's exactly right, it is 2-tiered, and that's not a problem, by default it will use the page title and description from the html |
While I'm thinking about this: I think it's okay to have the share-count defaulted to visible, but only if it has 1 or more share(s). |
It’s a good idea, but then you have the overhead of http requests that are never used. I can do it if you want though
|
Np. Let's table for now |
I'm testing out the 2.0 branch with a very simple configuration:
And am noticing the Twitter API that's hit no longer appears to be supported circa 2015: Is this library still aiming to support share counts? Or maybe should it be dropped from 2.0? Thank you @dbox for the work you've put into it so far 👍 |
Total sharing counts can be tracked with www.sharedcount.com. So we can show something like:
I have no idea how to fix this, but i thought maybe its a nice idea :)
The text was updated successfully, but these errors were encountered: