Topic-icon Twitter Share Button

Active Subscriptions:

None
13 years 3 months ago #31340 by johnnydeekay
Hi there,

Is it possible that you can add more twitter parameters? If you go to the developers site at Twitter.com Invalid consumer key/secret in configuration
you have options like:
- 'TWEET TEXT' with 2 options: 1. use the article/page title 2. enter custom text
- 'VIA'
- 'RECOMMEND'
- 'HASHTAG' with the option to enter appropriate hashtags that are related to the article

It would be really great if you would be able to implement this in the next update.
This will make the tweet button really powerful.
Now the button only shows the page title and a URL and thats it. Thats almost not worth tweeting to begin with.
Also one other feature would be great which was already requested by another user. And that is a bit.ly kind off url shortener.

Thanks for responding. Keep up the great work. I am using my JFBConnect extension with great satisfaction!
The topic has been locked.
Support Specialist
13 years 3 months ago #31394 by alzander
Replied by alzander on topic Twitter Share Button
Thanks for the suggestion. We're looking into a few different updates/improvements for Twitter functionality, so thanks for throwing this out there. I just looked at the parameters. The via and recommend parameters make sense to add. I'm not sure why hashtag is it's own parameter, in all honesty, since that can be appended to the Tweet Text parameter, but I'm sure they have their reasons.

Anyways, with that said, I can see adding the K2 tags for an article, for instance, as the hashtags automatically and other types of options in the Social configuration area.

As a first start though, I think we will definitely add the parameters to the {SCTwitterShare ..} tag in the 5.1 release as adding those isn't overly difficult. Adding the automated stuff (to pull from content in Joomla) can be more difficult to get things right.

Just some rambling. Your feedback and suggestions are definitely welcome though, so let us know your thoughts on the above.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #31430 by kelros
Replied by kelros on topic Twitter Share Button
Is there any way to add to the Twitter Share message? I want to at "via @MySite"
The topic has been locked.
Support Specialist
13 years 3 months ago #31440 by alzander
Replied by alzander on topic Twitter Share Button
If you wanted to hard-code the Twitter Share button to always have the "via=@sourcecoast" parameter set, it's pretty easy. It won't be configurable, like per article or page or anything, but that may work for you.

To do so, edit the /libraries/sourcecoast/easyTags.php file. Around line 610, you'll see:
if ($dataCount == 'horizontal' || $dataCount == 'vertical' || $dataCount == 'none')
            $tagButtonText .= ' data-count="' . $dataCount . '"';

        $tagButtonText .= '>Tweet</a></div>';
Edit that block by adding a line directly above that bottom one so it looks like:
if ($dataCount == 'horizontal' || $dataCount == 'vertical' || $dataCount == 'none')
            $tagButtonText .= ' data-count="' . $dataCount . '"';
        $tagButtonText .= ' data-via="sourcecoast" ';
        $tagButtonText .= '>Tweet</a></div>';
Obviously, replace the sourcecoast with your twitter handle and make sure you include the " and ' at the end.

Hope that helps. If you'd like to hard-code any of the other settings (hash tag, recommends), we can help show you how to do that as well, just let us know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
13 years 3 months ago #31567 by johnnydeekay
Replied by johnnydeekay on topic Twitter Share Button
Hi Alex,

Thank you very much for your response. I agree with you about the 'hastag' parameter. This can also be done in the 'tweet text' parameter. But it would be great indeed if you could add these to the {SCTwitterShare ..} tag.
I understand that it is a bit more difficult if it's being doing automatically (pulling content from Joomla). For me personally I don't use those automated functions. I always use the tagging way. In this way I can give each article it's proper branding.
I want to thank you again for your quick response :) Looking forward to the twitter updates :)

Thanks,
Johnny
The topic has been locked.
Support Specialist
13 years 3 months ago #31655 by alzander
Replied by alzander on topic Twitter Share Button
Johnny,
The plan is to definitely add those extra parameters to the {SCTwitterShare ..} tag, regardless of what we feel about their usefulness. If we're adding one or two, we might as well add them all.

That should be in the 5.1 release, expected out in late April. Until then, the best I can suggest is the hard-coding of appropriate values above.

I hope that helps, but if you absolutely need something 'now', let us know. We'll see what we can do, but I can't make any promises.

Thanks,
Alex
The topic has been locked.