Zen mode 18:52:55

It is currently our zen mode where we get some rest so that we can come back to work feeling refreshed the next day and assist you with your issues. Some answers may already be available on our documentation.

Official support hours are from 8:30AM — 5:00PM Monday to Saturday (GMT +7)

JLex Transfer 1.7.1 is ready!

question for API?

german
hi all. is it possible to obtain from the table the last review of the material, knowing the material ID in a mysql table?

5 replies

german
thanks for reply!
german
hi all. is it possible to obtain from the table the last review of the material, knowing the material ID in a mysql table?
Victor
May I don't understand your question. But if you know ID of an entry, you can use JLex Review module to retrieve latest reviews.
german
In other words. Can I get the last review through the API if you know the record ID? (Not using module) i.e. embed code in the template output K2 for example and get the latest review on the fly!
Victor
You can use this syntax to get latest review based on ID k2:
For MySQL: SELECT * FROM #__jlexreview WHERE `object`="k2" AND `object_id`={ID} ORDER BY created DESC  (!! Replace #_ by your database prefix).
--------
For Joomla embed code:
$db = JFactory::getDBO ();
$query  = $db->getQuery (true);
$query->select ("*")->from ("#__jlexreview")->where ("object='k2' AND object_id={ID}")->order ("created DESC");
$rows = $db->setQuery ($query,0,10)->loadObjectList ();

--->> $row is an Object has review property -->> Continue your code -->>
---------
p/s: I recommend you should use JLex Review module, because you can use some trick to add this module anywhere.
Reply to

Joomla hosting Convert Joomla extension tool

Product Changelogs

JLex Block 6.2.5
# Upgrade the framework to be compatible with Joomla 6.1.x
# End of support for Joomla 3.
JLex Transfer 1.7.1
^ Filter articles by the selected time range.
^ Added a "resume migration" feature for cases of interruption.
^ Added advanced options for the category.
# Improve user interface
# Optimize the data importing.
# Fixed known issues
JLex Review 6.5.1
^ Bridging feature. See its documentation for details.
^ Option resize image if too large.
# Fixed route issue.
# Fixed known bugs.
JLex Comment 3.7.3
^ The option to accept the Terms & Conditions once
^ The option allows you to edit comments within X minutes.
^ Viewport - Optimize page loading speed.
^ "Roles" are now available to guests.
^ Added options to adjust image quality.
# Fixed the issue of not receiving notifications.
# Fixed the bugs reported on Pagespeed.
JLex GuestBook 2.1.2
# Fixed login with Facebook and retrieved a user's profile picture.
# Improve layout and assets.
# Fixed known bugs.
JLex Comment 3.6.7
^ Option to load script location (Head or Body Tag).
# Improve data structure.
# Fix known bugs.
JLex Review 6.4.7
# Fixed login with Facebook.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed known bugs.
✨ All extensions are now fully compatible with Joomla 5.4.x and 6.
Sign in to your account

Use your social accounts to sign in