Topic-icon Automated hashtag?

Active Subscriptions:

None
10 years 6 months ago #37291 by Judah Raine
Hi there, is it possible to add an automated hashtags to all tweets from my site? If so, how would I go about it?

Thank you
Jude
The topic has been locked.
Support Specialist
10 years 6 months ago #37300 by alzander
Replied by alzander on topic Automated hashtag?
Jude,
Would you want every Twitter share button to have the same hash tag, or would you want it automatically generated somehow? Adding a constant tag shouldn't be too difficult if that's what you need.

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

None
10 years 6 months ago #37307 by Judah Raine
Replied by Judah Raine on topic Automated hashtag?
Hi Alex, it would be a constant tag: #CRRysalis

As the website is primarily promotion - both for the group and the individual authors - I want to ensure that all tweets run the site #tag

Many thanks,
Jude
The topic has been locked.
Support Specialist
10 years 6 months ago #37324 by alzander
Replied by alzander on topic Automated hashtag?
Jude,
To add a hashtag to all posts, edit the /libraries/sourcecoast/easyTags.php file. Around line 671, you'll see:
$tagButtonText .= '<a href="http://twitter.com/share" class="twitter-share-button" ';
Add the following 2 lines under that:
$tagButtonText .= 'data-via="sourcecoast" ';
$tagButtonText .= 'data-hashtags="stuff" ';
The first line will always append your Twitter name (not what you asked for, but thought you might like that as well). The second line will append whatever hashtag you want in each Tweet.

Test and let me know how that goes.

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

None
10 years 6 months ago #37334 by Judah Raine
Replied by Judah Raine on topic Automated hashtag?
Oh, you are just wonderful - above and beyond the course of duty!

Ummm... yes, I know this is displaying my utter ignorance, but I'm assuming that I would need to replace:

"sourcecoast" with my Twitter name

"stuff" with the desired hashtag

Sorry, but for those of us still way down near the bottom of the tall ladder of learning instructions need to be appallingly precise :lol: You'd be amazed how much havoc ignorance can wreak!

Thank you for all your efforts

Jude
The topic has been locked.
Support Specialist
10 years 6 months ago #37346 by alzander
Replied by alzander on topic Automated hashtag?
Yes, replace the "sourcecoast" and "stuff" with your Twitter username and the default hash tag you'd like to use.

I hope that helps get you going, but if not, let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.