Bj,

Thanks so much that is working now. I can embed in a TiddlyWiki the yammer 
thread and thus allow conversations about the Wiki to take place in Yammer.

This is something I have long being after and it means I can open up the 
TiddlyWiki Yammer network to others wanting to allow 
conversations/discussion/feedback about their website (tiddlyWiki focus).

I will endeavour to make the solution a little more friendly perhaps with a 
macro that is supplied the feedID and then "publish it".

I wonder is a json bundle fine or should I package it as a plugin?

Semi-related idea:
Some tiddlers in a NoteSelf wiki could include a link to conversions, and 
also external resources such that even once a user makes the wiki their own 
(saving Changes to PouchDB) they can access changing resources, even 
updates to the NoteSelf implementation itself. In someways we can use 
federation type tools on top of NoteSelf so that each use of NoteSelf is 
not a total "fork" (if you know what I am talking about?)


Thanks once again for this critical assistence
Regards
Tony



On Wednesday, June 20, 2018 at 3:04:11 PM UTC+10, BJ wrote:
>
> you also need a 'module-type' field on the macro and set the value to 
> 'macro'
>
> On Wednesday, June 20, 2018 at 1:47:05 AM UTC+2, TonyM wrote:
>>
>> Bj,
>>
>> That "obvious mistake was fixed but still no result.
>> I am not sure how to "debug" this, but I will try inspect.
>>
>> Regards
>> Tony
>>
>>
>> On Monday, June 18, 2018 at 8:42:44 PM UTC+10, BJ wrote:
>>>
>>> the tid $:/PSaT/yammer/embed.js needs to be type 
>>> "application/javascript" not json
>>>
>>> On Monday, June 18, 2018 at 2:08:33 AM UTC+2, TonyM wrote:
>>>>
>>>> Bj, et al..
>>>>
>>>> I have followed your instructions and built the three tiddlers and 
>>>> reading through I kind of follow what is happening, however I am only 
>>>> getting a multi-row blank tiddler.
>>>>
>>>> If you join yammer https://www.yammer.com/tiddlywiki you could see the 
>>>> conversion as well, in yammer, and I would love your review of Yammer as 
>>>> well.
>>>>
>>>> I have attached the three tiddlers in a JSON file, The 
>>>> $:/PSaT/yammer/embed 
>>>> tiddler should be displaying the view.
>>>>
>>>> Further assistance would be appreciated.
>>>>
>>>> Regards
>>>> Tony
>>>>
>>>> On Saturday, June 16, 2018 at 7:22:13 AM UTC+10, BJ wrote:
>>>>>
>>>>> you can use a js macro (set module-type to macro, and type to 
>>>>> application/javascript):
>>>>>
>>>>> /*jslint node: true, browser: true */
>>>>> /*global $tw: false */
>>>>> "use strict";
>>>>>
>>>>> exports.name = "yam";
>>>>>
>>>>> exports.params = [{name: "container"},{name: "id"}
>>>>> ];
>>>>> /*
>>>>> Run the macro
>>>>> */
>>>>>
>>>>> exports.run = function(container,id) {
>>>>> yam.connect.embedFeed({
>>>>>  container: "#"+container,
>>>>>  network: "tiddlywiki",
>>>>>  feedType: "group",
>>>>>  feedId: id
>>>>> });
>>>>> return "";
>>>>> }
>>>>>
>>>>>
>>>>> and as Jed said put
>>>>>
>>>>>
>>>>> <script type="text/javascript" src="
>>>>> https://s0.assets-yammer.com/assets/platform_embed.js";></script>
>>>>>
>>>>>
>>>>> in a tid tagged with 
>>>>> $:/tags/RawMarkup
>>>>>
>>>>> then call it from a tid:
>>>>>
>>>>> <div id="embedded-feed" style="height:800px;width:100%;"></div>
>>>>> <<yam  """embedded-feed"""   "15224909">>
>>>>>
>>>>> all the best 
>>>>> BJ
>>>>>
>>>>>
>>>>> On Friday, June 15, 2018 at 4:36:48 AM UTC+2, TonyM wrote:
>>>>>>
>>>>>> Hi Folks,
>>>>>>
>>>>>> I am trying to determine how to make the following work in 
>>>>>> TiddlyWiki, It allows a user to embed a Yammer conversation into a 
>>>>>> TiddlyWiki.
>>>>>>
>>>>>> <div id="embedded-feed" style="height:800px;width:100%;"></div>
>>>>>> <script type="text/javascript" src="
>>>>>> https://s0.assets-yammer.com/assets/platform_embed.js";></script>
>>>>>> <script type="text/javascript">
>>>>>> yam.connect.embedFeed({
>>>>>>   container: "#embedded-feed",
>>>>>>   network: "tiddlywiki",
>>>>>>   feedType: "group",
>>>>>>   feedId: "15224909"
>>>>>> });
>>>>>> </script>
>>>>>>
>>>>>> Of Course in the above, the display occurs with
>>>>>> <div id="embedded-feed" style="height:800px;width:100%;"></div>
>>>>>>
>>>>>> It will make discussing a specific wiki simple. I can past this into 
>>>>>> Raw HTML on a website, or in a WordPress Post and it works. It uses 
>>>>>> external script code, So I imagine it would be easy to implement.
>>>>>>
>>>>>> However imbeding java script is out side my skills in TiddlWiki so 
>>>>>> far.
>>>>>>
>>>>>> I have tried placing the contents of 
>>>>>> https://s0.assets-yammer.com/assets/platform_embed.js
>>>>>> then
>>>>>> yam.connect.embedFeed({
>>>>>>   container: "#embedded-feed",
>>>>>>   network: "tiddlywiki",
>>>>>>   feedType: "group",
>>>>>>   feedId: "15224909"
>>>>>> });
>>>>>>
>>>>>> in a tiddler of type application, to no effect
>>>>>>
>>>>>> Thanks in advance
>>>>>> Tony
>>>>>>
>>>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/0bc0dfa3-b90f-4314-a145-23f00f39f45b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to