By Josh Lewis on Friday, 09 December 2016
Replies 11
Likes 0
Views 1K
Votes 0
It seems that one can only create a linkable hashtag when manually typing it in the textarea of the status box. In other words if you copy and paste them in or insert it via a JavaScript button, it's not linkable as seen here: https://peakfun.com/activity/stream/item/90

For minor issues I'm usually willing to throw my hands up if it creates too much fuss, however this is really important issue. If I can overcome this, I promise to share with everyone a really amazing addition to ES. Post categories! Basically I inject a list box (select) next to the share button that inserts a hashtag into the textarea. I could make it checkboxes if we wanted "multi-categories". In addition to this I'll give the code to insert pre-defined hashtags in the activity stream feeds list. This requires zero mods and will be ultra light (I spent a chunk of time today looking for the lightest way to pull it off). Having this ability to those who want it will enable all sorts of possibilities. From organized stream posts to photo contests, it would enable unification of important hashtags. Later down the road it could help with content filtering and make not only listing stream items/ES objects easier to view, but create better precision with finding specific content.

Back to the issue. So perhaps there is a way to have validation (could be client or server side) check for "#" followed by a word, and if it's not already a hashtag, force it to be one. I see that hashtags are wrapped in span tags, when attempting to copy it in the DOM inspector it shows a blank tag even though it technically exists in the DOM. This leads me to believe that the Hashtags on the client side are being stored in a hidden array (my assumption based on logic). Perhaps there is a way I could modify it to append new items? I can look into the how, but I need to know the name. I'm willing to do a lot of investigating for this.
Thanks Josh

Regarding with your issue, currently we will not implement auto linkable when you copy and paste the content (contain hash #) in story form, because in the coding part we can't prevent those user who do not want to linkable when the sentences contain hash.

Thanks for understand.
·
Friday, 09 December 2016 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
No worries, that scenario you mentioned did leave a little concern on my end as well. The good news is that I discovered a bypass that allows you to place in hashtags from an insert button while still being able to have non link hashtags. Zero hacks, I now have the stream status as seen attached to this post. The hardest parts was making them render properly along with ensuring they worked in every view as one would expect. I plan on adding more to it down the road such as multi-checkboxes and such. Eventually I may consider making it a plugin for ES.

Due to not being a programmer I admit it took all day to make. I could have saved some time if I wanted it "good enough", but wanted it as light as possible and working well in every scenario I could think of.
·
Saturday, 10 December 2016 17:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for sharing this Josh I will move this into the tips and tricks section
·
Saturday, 10 December 2016 17:53
·
0 Likes
·
0 Votes
·
0 Comments
·
No worries, that scenario you mentioned did leave a little concern on my end as well. The good news is that I discovered a bypass that allows you to place in hashtags from an insert button while still being able to have non link hashtags. Zero hacks, I now have the stream status as seen attached to this post. The hardest parts was making them render properly along with ensuring they worked in every view as one would expect. I plan on adding more to it down the road such as multi-checkboxes and such. Eventually I may consider making it a plugin for ES.

Due to not being a programmer I admit it took all day to make. I could have saved some time if I wanted it "good enough", but wanted it as light as possible and working well in every scenario I could think of.


Do you mind sharing this Josh?
·
Friday, 20 January 2017 21:31
·
0 Likes
·
0 Votes
·
0 Comments
·
i like it
·
Friday, 20 January 2017 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
The problem with it's current implementation is that it requires a single space in the text box from the get go. So if your post is blank and you decide to categorize it early, the hashtags start merging into other hashtags due to how EasySocial processes the tags from the textarea into the Div. Also I'm thinking about doing some redesign so that it runs on checkboxes. It's a little trickier due to post edits which I'd have to have it perform a query of each hashtag "category" to determine whether or not the checkbox should be checked. The next part is making the checkbox event handler remove the hashtag when unchecking it. I'm probably capable of doing this now, however I'd prefer to brush up on more JS for the sake of being efficient with time.

So I'll get back to you folks when this happens. Perhaps sometime within the next 30 days. And I certainly won't forget about it due to wanting it working great on my own site.
·
Saturday, 21 January 2017 16:48
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post