Is there a way for JLex Review to automatically force links in reviews to open a new window when clicked on?
6 replies
10 years ago
When someone puts a link to another site in a review. It is automatically hyperlinked so when you click on the link it takes you to the new location in the same window. Is there a way to format that link with a "target="_blank" so that it opens a new window when you click on it.
10 years ago
May I don't understand your question. Would you like open each review in new window instead of itself window ?
10 years ago
Is there a way for JLex Review to automatically force links in reviews to open a new window when clicked on?
Not the review itself, but any links that are put in the review. Title
Can you preview it ?? I don't understand
10 years ago
Yes, you can do that by add this script to your page:
You can put it in file: templates/aquacorals/script.js or components/com_jlexreview/assets/jlexreview.min.js
(function($) {
$(document).ready(function(){
window.setInterval (function(){
$(".reviewBlock a").not(".elink").each (function(){
$(this).addClass ("elink");
var b = $(this)[0];
b.getAttribute("href") && b.hostname !== location.hostname && (b.target = "_blank");
});
}, 500);
});
}) (jQuery)You can put it in file: templates/aquacorals/script.js or components/com_jlexreview/assets/jlexreview.min.js
10 years ago
Perfect! Thank you so much!
Reply to
Product Changelogs
JLex Review
6.5.1
^ Bridging feature. See its documentation for details.
^ Option resize image if too large.
# Fixed route issue.
# Fixed known bugs.
^ 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.
^ 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.
# 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.
# 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.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed known bugs.
JLex Comment
3.6.1
^ Integrate the Finder (Smart search) plugin.
# Fixed login with Facebook.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed a bug related to editing comments in the front-end.
# Fixed bug "Jump to comment is broken".
# Improved the data structure.
# Fixed login with Facebook.
# Fixed the issue of being unable to retrieve a user's profile picture on Facebook.
# Fixed a bug related to editing comments in the front-end.
# Fixed bug "Jump to comment is broken".
# Improved the data structure.
JLex Block
6.1.7
# Fixed known bugs.
# Updated GEO servers.
# Updated GEO servers.