{"id":122569,"date":"2011-02-11T08:00:00","date_gmt":"2011-02-11T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/online-status-insl\/"},"modified":"2023-09-01T00:11:00","modified_gmt":"2023-09-01T00:11:00","slug":"online-status-insl","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/online-status-insl\/","title":{"rendered":"Online Status inSL"},"content":{"rendered":"<p>This simple plugin with associated widget allows you to show your online status in Second Life\u00ae or any OpenSimulator grid.<\/p>\n<p>It also includes a LSL script to place inside an in-world script, which is available from the Settings menu.<\/p>\n<p><strong>Warning<\/strong>: Versions 1.3.X and above are utterly incompatible with previous versions; you will need to add the new script to all your in-world scripted objects or your blog will not display the status at all!<\/p>\n<p><strong>Warning<\/strong>: Version 1.3.8 and above might make it impossible for you to delete old tracking objects. 1.4.0 adds a way to delete all of the tracking objects, but there have been plenty of changes that this simply might not work any longer.<\/p>\n<p><strong>Note<\/strong>: Versions before 1.6.0 are so old that I have deleted them from the WordPress repository.<\/p>\n<p><a href=\"https:\/\/github.com\/GwynethLlewelyn\/online-status-insl\/actions\/workflows\/codeql-analysis.yml\" rel=\"nofollow ugc\"><\/a><br \/>\n<a href=\"https:\/\/www.codacy.com\/gh\/GwynethLlewelyn\/online-status-insl\/dashboard?utm_source=github.com&utm_medium=referral&utm_content=GwynethLlewelyn\/online-status-insl&utm_campaign=Badge_Grade\" rel=\"nofollow ugc\"><\/a><\/p>\n<h3>CSS<\/h3>\n<p>To allow styling of the plugin, the following styles are emitted by the widget:<\/p>\n<p>The whole content of the widget is included inside a <code><\/p>\n<div class='osinsl'><\/code><\/p>\n<p>The text before the status is a <code>span<\/code> with class <code>osinsl-before-status<\/code>. The status itself is <code>osinsl-status<\/code> and the text afterwards is <code>osinsl-after-status<\/code>.<\/p>\n<p><em>Status unknown<\/em> (i.e. SL dataserver issues) is styled as <code>osinsl-problems<\/code> and the text for an unconfigured widget is styled <code>osinsl-unconfigured<\/code>.<\/p>\n<p>The profile picture (if visible) will have the class <code>osinsl-profile-picture<\/code>. Users can set the horizontal alignment (using the standard <em>alignleft<\/em>, <em>aligncenter<\/em>, <em>alignright<\/em> classes) but nothing else. Size is limited to 80\u00d780 (all this might be changed).<\/p>\n<p>To style embedded shortcode, change the CSS class for <code>osinsl-shortcode<\/code>.<\/p>\n<h3>Shortcodes<\/h3>\n<p>1.2 and onwards support shortcodes, to embed online status and SL profile pictures inside posts and pages.<\/p>\n<p>The overall syntax is:<\/p>\n<pre><code>[osinsl avatar=\"<avatar name>\" picture=\"[none|center|right|left]\" status=\"[on|off]\" profilelink=\"[on|off]\"]\n<\/code><\/pre>\n<p>or<\/p>\n<pre><code>[osinsl objectkey=\"<UUID>\" picture=\"[none|center|right|left]\" status=\"[on|off]\" profilelink=\"[on|off]\"]\n<\/code><\/pre>\n<p><strong>avatar<\/strong> should have a valid Second Life\/OpenSimulator avatar name which has an associated online status indicator in SL\/OpenSimulator. This will expand to show the online status (e.g. usually <em>online<\/em>, <em>offline<\/em>, or an error message if no widget was configured or if the avatar is not being tracked). Note that if you have avatars with the same name on different grids, this will just get you one of them.<\/p>\n<p><strong>objectkey<\/strong> should be the Object Key of an in-world online status tracking object. This should be used alternatively to <strong>avatar<\/strong> and is useful if you have several objects tracking your avatar across different grids, all for the same avatar name. Note that object keys may change over time (when they get copied, duplicated, taken back to inventory and rezzed again, etc.) so this should be used only as a last alternative, when you really have several avatars in different grids, all with the same name.<\/p>\n<p><strong>picture<\/strong> is optional and defaults to <em>none<\/em> (i.e. profile picture is not shown); if the user has set the Second Life web profile to be visible, this will retrieve their profile picture, and resize it to 80\u00d780. Options are <em>left<\/em>, <em>right<\/em>, and <em>center<\/em> which will provide minimal formatting (additional styling requires CSS; image size is fixed for now; see the <strong>CSS<\/strong> section for more information). However, for the time being, pictures for avatars in OpenSimulator grids will <em>not<\/em> be displayed.<\/p>\n<p>If the <strong>picture<\/strong> is set, <strong>status<\/strong> can be set to <em>off<\/em> (just show the picture but not the actual status).<\/p>\n<p>If the <strong>picture<\/strong> is set, <strong>profilelink<\/strong> can be set to <em>on<\/em> (default is <em>off<\/em>) to link the picture to SL\u2019s web profile page.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Allows you to show your Second Life\u00ae or OpenSimulator online status on any WordPress blog (multiple widgets and shortcodes are possible)<\/p>\n","protected":false},"author":65,"featured_media":317238,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Online Status inSL - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Allows you to show your Second Life\u00ae or OpenSimulator online status on any WordPress blog (multiple widgets and shortcodes are possible)"},"footnotes":""},"categories":[1],"tags":[3755,33952,134,5355,3141],"class_list":["post-122569","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-online","tag-opensimulator","tag-profile","tag-second-life","tag-status"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/122569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=122569"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/122569\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/317238"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=122569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=122569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=122569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}