[pLog-svn] r3955 - plugins/trunk/sociable

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Sep 11 12:41:33 GMT 2006


Author: jondaley
Date: 2006-09-11 12:41:32 +0000 (Mon, 11 Sep 2006)
New Revision: 3955

Modified:
   plugins/trunk/sociable/README.txt
Log:
Nomad reported a better version of this readme was needed. http://forums.lifetype.net/viewtopic.php?t=5039

Modified: plugins/trunk/sociable/README.txt
===================================================================
--- plugins/trunk/sociable/README.txt	2006-09-10 18:34:29 UTC (rev 3954)
+++ plugins/trunk/sociable/README.txt	2006-09-11 12:41:32 UTC (rev 3955)
@@ -1,22 +1,51 @@
 [DESCRIPTION]
-Sociable is a port of the WordPress plugin of the same name, written by Peter Harkins. (http://push.cx/sociable)
+Sociable is a port of the WordPress plugin of the same name, written
+by Peter Harkins. (http://push.cx/sociable)
 
-The Sociable plugin adds links to social bookmarking sites to each of your blog posts.
+The Sociable plugin adds links to social bookmarking sites to each of
+your blog posts.
 
-[USAGES]: 
-1. Upload: Upload all the extract files and directories to $LifeType_Install_Dir/plugin/sociable 
+[USAGES]:
+1. Upload: Upload all the extract files and directories to
+   $LifeType_Install_Dir/plugin/sociable
 2. Add the following to header.template in the <head> section
-      {$sociable->showCSS()}
+   {$sociable->showCSS()}
 
-3. Add the following to post.template:
-    $sociable->show($postId) 
 
+3. Next you need to add the following to post.template:
+    {assign var="sociablePostId" value=$post->getId()}
+    {$sociable->show($sociablePostId)}
 
-[EXAMPLE]: 
-Add the following code in post.template : 
 
-Code: 
-{assign var="postId" value=$post->getId()} 
-{$sociable->show($)} 
+[EXAMPLE (From the template 'Falling Leaves with plug-ins]
+{assign var="postDate" value=$post->getDateObject()}
+{assign var="postOwner" value=$post->getUserInfo()}
+{assign var="sociablePostId" value=$post->getId()}
+ 
+   <DIV class=post>
+      <H2 class=storytitle ><A class=aposted
+      href="{$url->postPermalink($post)}">{$post->getTopic()}</A></H2>
+      <DIV class=date>Published on
+      {$locale->formatDate($postDate,"%H:%M, %m/%d,%Y")}</DIV>
+      <DIV class=storycontent>
+      <P>{$post->getText()}</P>
+   </DIV><BR>
+   <DIV class=feedback>
+      <DIV class=meta>Posted under
+         {foreach name=categories from=$post->getCategories()
+      item=postcategory}
+            <a
+      href="{$url->categoryLink($postcategory)}">{$postcategory->getName()}</a>
+         {if !$smarty.foreach.categories.last}, {/if}
+         {/foreach}
 
-[TODO]:
+            | <A
+            href="{$url->postPermalink($post)}#comments">{$locale->tr("comment
+            on this")} ({$post->getTotalComments()})</A>
+            {$sociable->show($sociablePostId)}
+      </DIV>
+   </DIV>
+   <DIV class=sep></DIV>
+   </DIV>
+
+[END EXAMPLE] 



More information about the pLog-svn mailing list