Outils
Rechercher
Connexion

WEB Strategies

WEB Stratégies développe un plugin Seesmic pour Joomla!

seesmiclogoPreuve que l'on apprécie particulièrement le service de commentaire vidéo fourni par Seesmic, après avoir développé un plugin Seesmic pour Dotclear, WEB Stratégies vous propose à présent un plugin permettant d'ajouter des commentaires vidéos via Seesmic sous Joomla!

Ce plugin intègre la technologie de Seesmic et permet aux visiteurs de laisser des commentaires vidéo de façon en quelques clics seulement.

Ce plugin, compatible avec les version 1.0.X, 1.5.X  de Joomla!, nécessite l'installation des composants de commentaires Joomla! suivants :

  • Jomcomment (composant commercial), disponible sur Azrul.com
  • Akocomment (composant non-commercial), disponible sur Joomlafrance.org


Les fichiers sont à télécharger ici :

- JSeesmic.zip: compatible nativement pour les versions 1.5

- JSeesmicLegacy.zip: compatible pour les versions 1.0 et 1.5 avec le plugin Legacy activé.

 


Pour Akcomment, In "components/com_akocomment/functions.akocomment.php"
In Function AkoParse
Add:

global $_MAMBOTS;
$_MAMBOTS->loadBotGroup( 'content' );
$message = $_MAMBOTS->trigger( 'onDisplayJSeesmicContent', array( &$message ), true );
$message = $message[0];



In mambots(plugins)/content/akocommentbot.php
Where you want display the item to switch from text comment to video comment. Add:
JSeesmicView::showRecorder();



Pour Jomcomment
,

  • In "components/com_jomcomment/templates//comment.tpl.html"

1) Replace:

echo $comment->comment;

By: global $mainframe;
$message = $mainframe->triggerEvent( 'onDisplayJSeesmicContent', array( &$comment->comment ), true );
$comment->comment = $message[0];
echo $comment->comment;


2) Replace:

echo substr(strip_tags($comment->title . ", " .$comment->comment), 0, 56 );

By: <?php echo substr(strip_tags($comment->title . ", " .JSeesmicHelper::getVideoTitle($comment->comment)), 0, 56 ); ?>

  • In "components/com_jomcomment/templates//index.tpl.html"

Where you want display the item to switch from text comment to video comment.
Example: <label for="jc_comment">_JC_TPL_COMMENT</label> become <label for="jc_comment">_JC_TPL_COMMENT <?echo JSeesmicView::showRecorder();?></label> Add: JSeesmicView::showRecorder();

  • In "administrator/components/com_jomcomment/admin.jomcomment.html.php"

Replace:
$row->comment = transformDbText($row->comment);
$row->comment = $viewObj->shortenURL($row->comment);
if(strlen($row->comment) > 300) {
$row->comment = stripslashes(substr($row->comment,0,300-3));
$row->comment .= "...";
}
// Determine user's image.
$userImage = ($row->user_id != '0' && !empty($row->user_id)) ? $memberImage : $guestImage;

# We must strip tags the comment. This fix the issue where user add redirect meta header
# and stall the whole system, even the backend!
$row->comment = strip_tags($row->comment);


By:
$oldlen = strlen($row->comment);
if (!class_exists('JSeesmicView'))
include_once($cms->get_path('plugins').'/content/JSeesmic.php');
$row->comment = JSeesmicView::transformTag($row->comment, true);
if ($oldlen == strlen($row->comment))
{
$row->comment = transformDbText($row->comment);
$row->comment = $viewObj->shortenURL($row->comment);
if(strlen($row->comment) > 300) {
$row->comment = stripslashes(substr($row->comment,0,300-3));
$row->comment .= "...";
}
// Determine user's image.
$userImage = ($row->user_id != '0' && !empty($row->user_id)) ? $memberImage : $guestImage;

# We must strip tags the comment. This fix the issue where user add redirect meta header
# and stall the whole system, even the backend!
$row->comment = strip_tags($row->comment);
}

  • In "components/com_jomcomment/task/rss.php"

Replace:

$rss->add($row->title, $link , $row->comment . ' - ' . $row->name, $timestamp);

By:
if (!class_exists('JSeesmicHelper'))
include_once($cms->get_path('plugins').'/content/JSeesmic.php');
$row->comment = utf8_encode(JSeesmicHelper::getVideoTitle(html_entity_decode($row->comment)));
$rss->add($row->title, $link , $row->comment . ' - ' . $row->name, $timestamp);