News:

Support for jDownloads 3 has been ended
Since 17 August 2023 Joomla.org has discontinued support for Joomla 3.x. Therefore, we will no longer offer official support for our Joomla 3 jDownloads version 3.9.x from January 2024.
Please update your website to the latest Joomla version (Joomla 4 or Joomla 5) as soon as possible. Afterwards, please update jDownloads to the latest published version. The longer you delay, the more difficult the upgrade process for your website is likely to be.

Main Menu
Support-Forum

Integrate JLex Review instead of jDownloads rating! Please Help

Started by ibrahim, 27.12.2021 22:36:41

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibrahim

Hello! I need some help to integrate JLex Review instead of jDownloads rating, below is the instructions could anyone help to modify to work on jDownloads items as Rating and Review:

Integration Into Other Extensions
Same as popular components like as JLex Comment, JComment, Komento... JLex Review allow you integrate it to your component. It contain two parts:

Mini-star Icon
Using to display average rating (or criterias) of item

<?php
$loader 
JPATH_ROOT '/components/com_jlexreview/load.php';
if (
file_exists $loader )) {
    require_once 
$loader;
    echo 
JLexReviewLoad::quick_init $extension$id );
}



Parameters:

$extension: (type:string) - name of component (without com_ prefix) : k2, virtuemart or easyblog ....
$id: (type:integer} - ID of item (maybe is article, blog item...)
Example:

<?php
$loader 
JPATH_ROOT '/components/com_jlexreview/load.php';
if (
file_exists $loader )) {
    require_once 
$loader;
    echo 
JLexReviewLoad::quick_init 'k2'$item->id);
}



Review Body
Put code bellow where you want show review body.
<?php
$loader 
JPATH_ROOT '/components/com_jlexreview/load.php';
if (
file_exists $loader )) {
    require_once 
$loader;
    echo 
JLexReviewLoad::init $title$extension$id $section_id );
}




Parameters:

1. $title (type:string) - name of reviewed item. If this param is blank, the JLex Review will find title automatically
2. $extension (type:string) - name of component (without com_ prefix) : k2, virtuemart or easyblog ....
3. $id (type:integer} - ID of item (maybe is article, blog item...)
4. $section_id (type:integer | default:0} - Use it if you want create multiple different review/commenting systems

Example:

<?php
$loader 
JPATH_ROOT '/components/com_jlexreview/load.php';
if (
file_exists $loader )) {
    require_once 
$loader;
    echo 
JLexReviewLoad::init $this->item->title'k2'$this->item->id $this->item->category->id );
}




I really appreciate the help and support you've given me.

Referance: https://www.jlexart.com/articles/jlex-review-documentation-1ps#use-2

Thank You :)  :)
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

Arno

Hi,
I'm not sure that I have the time to try this. Maybe should you contact the jlexreview developer to start a request for a jDownloads plugin. Sorry.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ibrahim

Dear Arno, Thanks for the answer! Otherwise, ist possible to use Disqus instead of comments.
There is a plugin that works great on contents
https://extensions.joomla.org/extension/disqus-comments/
  •  

Arno

Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

ibrahim

Hello Arno! I really appreciate the help, time, assistance support you've given to do this.
I had contacted jlexreview developer and they will check it out, but after testing Disqus is much better to use instead of jComments. I wish you can do this as soon as you can.  :)
  •  

ColinM

Hi
I have had a brief look at Disqus.  Seems to me that if you use the free version then you suffer adverts :(
JComments is free and does allow simple comments OK.  So could you please advise what you find is lacking in JComments.
Also have you seen the articlehttps://fatfrogmedia.com/delete-disqus-comments-wordpress/
Colin
Colin M
  •  

ibrahim

Dear ColinM! Thanks for your advice, it was very nice of you for sharing the article about Disqus.
JComments works but Disqus or jlexreview have more features and a better look. I will move to jlexreview for commenting and rating of Jdownloads.
  •