Date: Fri, 8 May 2026 12:02:29 %+0200
Mime-Version: 1.0 (Produced by Tiki)
Content-Type: application/x-tikiwiki;
  pagename=ShareThis%20Module;
  flags="";
  author=luci;
  version=17;
  lastmodified=1574288655;
  author_id=213.250.250.82;
  summary=test%20if%20putting%20%22...%22%20there%20fixes%20it%20for%20older%20Tikis;
  hits=144;
  description="";
  charset=utf-8
Content-Transfer-Encoding: binary

{DIV(class="floatright pull-right")}__[https://profiles.luciash.eu/tiki-index_p.php?page=Profile Details&itemId=5644|Profile Data Details|box]__{DIV}
!! ShareThis Module (version 0.2 alpha)
''ShareThis Module'' profile creates and assigns a custom module featuring a "ShareThis.js code" provided by sharethis.com. Get your ShareThis account here: https://platform.sharethis.com/sign-up (it's free).

{REMARKSBOX(type="note" title="Please Note")}This is different from what the [https://doc.tiki.org/PluginSharethis|ShareThis] wikiplugin does.{REMARKSBOX}

!! Screenshots
::{img src="https://profiles.luciash.eu/display9" thumb="y" width="320" rel="box" title="How it looks like"}::

!! Known Issues & Limitations
* currently none

!!- Fixed Issues
* --The input field is too small when pasting the code (textarea would be better)-- Enough for the ShareThis platform ID number. (fixed in 0.2 alpha)
* --When the script code is copypasted it gets sanitized by the infamous ‹x› in the module body so it requires manually editing the custom module to delete that, which is annoying-- Workarounded by using the input for the ShareThis platform ID only. (fixed in 0.2 alpha)
~tc~* --[https://profiles.luciash.eu/tiki-index_p.php?page=Profile Details&itemId=XX|ShareThis Module does not do what expected]--~/tc~

!! Installation & Update
First you need to have an account on https://platform.sharethis.com/ to get the property ID there.
Then when you are going to apply the profile you need to copy and paste your property ID from https://platform.sharethis.com/settings into the "Copy and paste your ShareThis property ID here" text input field.

{REMARKSBOX()}If you do an __update__ please do not forget to unassign the previous version of the profile module in Modules, otherwise you will end up with multiple versions of the module applied.{REMARKSBOX}
By hitting the __Apply Now__ button on ''Control Panels'' → ''Profiles'' control panel (or __Forget and Re-apply__ if you want to do an update) the following YAML code will be applied:

{CODE(caption="YAML" colors="yaml" ln="1")}
objects:
 -
  type: module
  data:
   name: ShareThis Module 0.2 (alpha)
   position: bottom
   order: 1
   params:
    nobox: y
   custom: |
    <script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property=$profilerequest:Copy and paste your ShareThis property ID here:$...$&product=sticky-share-buttons' async='async'></script>
{CODE}

!! Usage
This profile creates a custom module with a "ShareThis.js code" provided by https://platform.sharethis.com with the property ID copy-pasted by the user in it.
The module will be assigned to the ''bottom'' zone.

!! Uninstall
Just un-assign and/or delete the module on the ''[tiki-admin_modules.php|Admin → Modules]'' page.
