Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [Docman 1.5.1] Integration ???
Pages: [1]   Go Down
  Print  
Author Topic: [Docman 1.5.1] Integration ???  (Read 3986 times)
0 Members and 1 Guest are viewing this topic.
svito
Newbie
*

Karma: 0
Offline Offline

Posts: 2


« on: January 13, 2010, 01:40:14 »

Hello, I would like to ask whether someone will do the integrator to DOCman 1.5.1.
It's not just for version 1.4

Thank you in advance for your answer.

Excuse me my English, but I'm writing this through translator Smiley
Logged
TopCop
Newbie
*

Karma: 0
Offline Offline

Posts: 20


Email
« Reply #1 on: February 02, 2010, 21:33:59 »

As I'm also interested in having JComments in DocMan Ver. 1.5, I'd like to know if there is already a possibility to do this?


TopCop
Logged
turminator
Newbie
*

Karma: 0
Offline Offline

Posts: 6


Email
« Reply #2 on: February 23, 2010, 03:15:06 »

You can Use this code:

Code:
<?php
  
global $mainframe;
  
$lang =& JFactory::getLanguage();
  
$lang->load'com_jcomments'JPATH_SITEnulltrue );
  
$comments JPATH_SITE '/components/com_jcomments/jcomments.php';
  if (
file_exists($comments)) {
    require_once(
$comments);
    echo 
'<br />';
    echo 
'<div class="contentheading">'JText::_('HEADER') .'';
    echo 
JComments::showComments($this->data->id'com_docman'$this->data->dmname);
  }
?>

Copy it at list_item_tpl.php file template.

See you and best regards!
Logged
TopCop
Newbie
*

Karma: 0
Offline Offline

Posts: 20


Email
« Reply #3 on: February 26, 2010, 23:55:45 »

Hm,

can you please tell me where to add this code exactly?

Thanks,
TopCop
Logged
dallas147
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #4 on: February 01, 2011, 06:34:29 »

You can Use this code:

Code:
<?php
  
global $mainframe;
  
$lang =& JFactory::getLanguage();
  
$lang->load'com_jcomments'JPATH_SITEnulltrue );
  
$comments JPATH_SITE '/components/com_jcomments/jcomments.php';
  if (
file_exists($comments)) {
    require_once(
$comments);
    echo 
'<br />';
    echo 
'<div class="contentheading">'JText::_('HEADER') .'';
    echo 
JComments::showComments($this->data->id'com_docman'$this->data->dmname);
  }
?>

Copy it at list_item_tpl.php file template.

See you and best regards!

Sorry for the bump

Thanks for the code, but just seems to be a slight bug and hope someone could help out.

I am using Joomla 1.5.22 and Docman 1.5.10

The code is working fine for the first document, but not any afterwards, you can see the link below to see what I mean.

http://www.azureustest.com/index.php?option=com_docman&task=cat_view&gid=45&Itemid=121

Cheers
Dallas
Logged
valdez79
Newbie
*

Karma: 0
Offline Offline

Posts: 1


Email
« Reply #5 on: April 23, 2011, 20:21:21 »

Where to place the code?

Open:

/public_html/components/com_docman/themes

choose you theme:

/public_html/components/com_docman/themes/default/templates

choose folder categories or documents:

/public_html/components/com_docman/themes/default/templates/categories

/public_html/components/com_docman/themes/default/templates/documents


Choose file under .../categories:
category.tpl.php
list.tpl.php
list_item.tpl.php


Choose file under .../documents:
document.tpl.php
list.tpl.php
list_item.tpl.php


Open the file, you have chosen, and at the end, paste the following code (by turminator):
Code:
<?php
  
global $mainframe;
  
$lang =& JFactory::getLanguage();
  
$lang->load'com_jcomments'JPATH_SITEnulltrue );
  
$comments JPATH_SITE '/components/com_jcomments/jcomments.php';
  if (
file_exists($comments)) {
    require_once(
$comments);
    echo 
'<br />';
   
// echo '<div class="contentheading">'. JText::_('HEADER') .'';
    
echo JComments::showComments($this->data->id'com_docman'$this->data->dmname);
  }
?>



In my case, i've decided to put the code here:

/public_html/components/com_docman/themes/default/templates
page_docbrowse.tpl.php (at the end of the file)


If you prefer, you can download the file directly in my web page, and replace it on your site:
http://heldervaldez.com/downloads/cat_view/79-joomla-15/80-template-changes.html


It works, but docman should work in a native comment system.



Regards,
Hélder Ferreira
Logged
Pages: [1]   Go Up
  Print  
JoomlaTune Support Forum    JComments component    Integration with third-party extensions    Topic: [Docman 1.5.1] Integration ???
 
Jump to: