1. Daniel Dimitrov
  2. Sherlock Holmes The Voice
  3. Plugins
  4. Saturday, 09 January 2010
  5.  Subscribe via email
*************************Requirements:*********************
1. joomla 1.5
2. PHP5 and MySQL5
3. joomlacomment 4.0 beta2
4. HWDVideoShare 2.1.5

*************************Instalation:**********************

1.
Unzip the com_hwdvideoshare folders (com_hwdvideoshare and com_hwdvideoshareGroups) and upload them
to your website in the following folder:
administrator/components/com_comment/plugin .

2. Open components/com_hwdvideoshare/hwdvideoshare.class.php and find the generateVideoComments function
and change it to this:

function generateVideoComments($row) {
global $mainframe, $Itemid, $smartyvs, $botDisplay;
$c = hwd_vs_Config::get_instance();
$my = & JFactory::getUser();

$code = null;
require_once(JPATH_SITE.DS.'administrator'.DS.'components'.DS.'com_hwdvideoshare'.DS.'libraries'.DS.'maintenance_recount.class.php');

if ( $c->showcoms ==1 && $row->allow_comments == 1 ) {
$smartyvs->assign("print_comments", 1);

if (!file_exists(JPATH_SITE. DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshare' . DS . 'josc_com_hwdvideoshare.php')) {
$code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOOMLACOMMENT."</div>";
} else {
require_once(JPATH_SITE. DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshare' . DS . 'josc_com_hwdvideoshare.php');
$code = output($row, '');
}


// if ( $c->commssys == 0 ) {
// if (!file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS)) {
// $code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JCOMMENTS."</div>";
// } else {
// $comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
// if (file_exists( $comments )) {
// require_once( $comments );
// $comments = JComments::showComments( $row->id, 'com_hwdvideoshare_v', $row->title );
// $code.= "<div class=\"padding\">".$comments."</div>";
// }
// }
// } else if ( $c->commssys == 3 ) {
// if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php')) {
// $code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOMCOMMENTS."</div>";
// } else {
// include_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php');
// $comments = jomcomment( $row->id, 'com_hwdvideoshare_v');
// $code.= "<div class=\"padding\">".$comments."</div>";
// }
// } else if ( $c->commssys == 7 ) {
// if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'kunenadiscuss.php')) {
// $code.= "<div class=\"padding\">Kunena DicsussBot is not installed.</div>";
// } else {
// $db_catid = 4;
//
// include_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'kunenadiscuss.php');
// $dispatcher =& JDispatcher::getInstance();
// JPluginHelper::importPlugin('content');
// $db_comments->id = $row->id;
// $db_comments->sectionid = $row->category_id;
// $db_comments->catid = $row->category_id;
// $db_comments->state = $row->published;
// $db_comments->title = $row->title;
// $db_comments->created_by = $my->id;
// $db_comments->text = '{mos_fb_discuss:'.$db_catid.'}';
// $db_results = $dispatcher->trigger('onPrepareContent', array (&$db_comments, null, 0));
// //print_r($db_comments);
// //print_r($botDisplay);
// //exit;
// $code.= "<div class=\"padding\">".$botDisplay[$row->id]."</div>";
// }
// }
}
$smartyvs->assign("comment_code", $code);
return $code;
}


after that find the function generateGroupComments and change it to this one:
function generateGroupComments($row) {
global $Itemid, $smartyvs, $my;
$c = hwd_vs_Config::get_instance();

$code = null;

if ( $c->showcoms ==1 && $row->allow_comments == 1 ) {
$smartyvs->assign("print_comments", 1);

if (!file_exists(JPATH_SITE. DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshareGroup' . DS . 'josc_com_hwdvideoshareGroup.php')) {
$code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOOMLACOMMENT."</div>";
} else {
require_once(JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_comment' . DS . 'plugin' . DS . 'com_hwdvideoshareGroup' . DS . 'josc_com_hwdvideoshareGroup.php');
$code = output($row, '');
}

// if ( $c->commssys == 0 ) {
// if (!file_exists(JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS)) {
// $code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JCOMMENTS."</div>";
// } else {
// $comments = JPATH_SITE.DS.'components'.DS.'com_jcomments'.DS.'jcomments.php';
// if (file_exists( $comments )) {
// require_once( $comments );
// $comments = JComments::showComments( $row->id, 'com_hwdvideoshare_g', $row->title );
// $code.= "<div class=\"padding\">".$comments."</div>";
// }
// }
// } else if ( $c->commssys == 3 ) {
// if (!file_exists(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php')) {
// $code.= "<div class=\"padding\">"._HWDVIDS_INFO_NOINS_JOMCOMMENTS."</div>";
// } else {
// include_once(JPATH_SITE.DS.'plugins'.DS.'content'.DS.'jom_comment_bot.php');
// $comments = jomcomment( $row->id, 'com_hwdvideoshare_g');
// $code.= "<div class=\"padding\">".$comments."</div>";
// }
// }
}
$smartyvs->assign("comment_code", $code);
return $code;
}



3.* Now you should be able to create a new hwdvideoshare and hwdvideoshareGroup
plugin (the videoShareGroup plugin is necessary if you need comments in the groups)
in the backend of joomlacomment.
extensions->other component settings ->new * ->
from the component dropdown menu choose com_hwdvideoshare and click save. Repeat the process
for com_hwdvideoshareGroup

* If you don't see the new button, first click on save.
After the page reload the new button should be there.


*************************Problems???************************

Ask your question in the hwdvideoshare forum section:
http://compojoom.com/forum/42-hwdvideoshare
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
Responses (0)


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
4 Replies
Posted on Tuesday, 30 April 2024
  • New
  • verschiedene URL's für Kursübersicht einer Kategor
    Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
    1 Replies
    Posted on Monday, 29 April 2024
  • New
  • Google no index für bestimmte Seiten/Details
    Hallo ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
    1 Replies
    Posted on Wednesday, 24 April 2024
    Changes to Submission Form?
    Are you able to make changes to the Hotspot submission form? There are several f...
    0 Replies
    Posted on Friday, 26 April 2024
  • New
  • Question regarding custom fields
    How do I access custom fields after I have created them?...
    0 Replies
    Posted on Wednesday, 24 April 2024
    • #custom fields