New answers tagged

2

Use JVERSION constant. It holds the value returned by Joomla\CMS\Version::getShortVersion().


3

Got to; content > articles > options > category tab > No Articles Message > hide / show


1

Disable No Articles Message option in the menu item or in com_content configuration.


0

I've figured out myself how to solve the issue. First of all, I got rid of the text box and a character counter altogether in file:components/com_virtuemart/views/askquestion/tmpl/form.php Then I solved the character validation issue in file: components/com_virtuemart/controllers/productdetails.php like so: $min = VmConfig::get ('asks_minimum_comment_length'...


0

To solve this issue, I used PhpMyAdmin to edit the #__extensions table. I set 'enabled' to '0' for 'plg_statusindicator'. I was, then, able to access the administrator. (Thanks, @Lodder!) Unfortunately, the plugin continued to throw the error when accessing the administrator if re-enabled. Apparently, there is some server setting on the new server that is ...


1

It is in the file: public_html/libraries/src/Application/WebApplication.php if (!$this->response->cachable) { // Expires in the past. $this->setHeader('Expires', 'Wed, 17 Aug 2005 00:00:00 GMT', true); // Always modified. $this->setHeader('Last-Modified', gmdate('D, d M Y H:i:s') . ' GMT', true); $this-...


2

Create a simple ajax plugin that handles your user login logic and returns a message for your users. The following 2 files should be zipped together and installed on your site. userlogin.php <?php defined('_JEXEC') or die; // Import library dependencies jimport('joomla.plugin.plugin'); class plgAjaxUserLogin extends JPlugin{ function ...


0

I was able to solve the issue port 80 was being used by another instance of httpd.exe, two instance of httpd.exe were running which was causing the issue. I resolved it by "Using port 8080 instead of 80".


1

I think it's unfortunate that Joomla's AdminModel and AdminController are named the way they are because it gives the impression that they're suitable for use only on the back-end, whereas that's not the case. The choice of which Joomla MVC model/controller your model/controller should extend ought to be based on what sort of functionality your web page is ...


0

As far as I can tell, front-end editing of contacts has never been an included feature in Joomla. There are some third party extensions that can enable this feature: Trombinoscope Contacts Pro Contact Enhanced Component


1

In my experience, the best way to find out which component/module/plugin causes a particular head include is to use grep on the entire joomla installation. Of course, this assumes that you know which resource URL to search for and that it shows up unobfuscated somewhere in the source code. I needed to search for the plugin that caused font-awesome to be ...


-1

Um, the very definition of an administrator's role is back-end access. In any case, what you do will end up being governed by the site's permissions. (Everything below has been edited. This shows the folly of answering from memory, as the original answer has been invalidated by changes made since the last time I'd done any extensive relying on com_contact (...


1

The problem seems to be multiple accordions with the same class name if your code is doubled. Create all accordions above javascript at the bottom of the body and it should open all created. I put a row break in to separate the accordions. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=...


2

(Replicated response from Stack Overflow per request) Rather than replacing the files (which could be overwritten in any future update), you're probably better off writing a new plugin for Joomla that installs Tiny 5. The source code for the (v4) TinyMCE plugin is a good place to start to write your own - replicate how this plugin works, and you'll need to ...


0

I'm still a little bit blind regarding your issue but I try to give you some direction and maybe we could solve this. There are many ways to add cookiebot to the site, I have never used Google Tag Manager for that. First about the error: Uncaught TypeError: $ is not a function at... When you see the above error in the console then it means that the ...


1

The free AddToAny Share Buttons has an option for sharing the link but you might need to customise the styling to your requirements. A plugin and a module are included.


1

If you're extending JFormFieldList then you don't need to use JHtml::_('select...) as well. Instead you just return an array of text/value combinations for the options of the HTML select. You can specify the default values by setting the protected variable $value. class JFormFieldCustomfield extends JFormFieldList protected $type = 'Customfield'; public ...


0

Not nearly enough info for me to make more than an educated guess, but is it possible you're editing the contact on the front-end? The contact form has the ID field defined as hidden on the front end, and if your template has a layout for that form that renders the fields of the form, and then adds a hidden element for the form's ID, that could cause it. ...


1

Method 1 - Store additional column First method is to store additional column in your artists table with only a latin characters in it (eg. beyonce). Method 2 - Update the LIKE query MySQL have the ability to replace exacly one character with a wildcard. In your case the query would look like this: SELECT * FROM `#__artists` WHERE `artist` LIKE "...


0

The way it should be done For now (until they introduce full entities support somewhere in Joomla! 4.x) it is better to use JTable to store "entities". In that way you can simply set $updateNulls parameter in JTable::store() method o true. It also simplifies a lot of CRUD and validate operations making your programming faster. You can read more in a JTable ...


1

Found a way by adding an another parameter as below: $db->updateObject('#__table2', $recObj, 'id', true); The 4th parameter determines whether null values can be used or not. Default this will be set as false. https://docs.joomla.org/API17:JDatabase::updateObject


2

Several pointers/recommendations regarding your resolving code for you and future researchers. implode() has a default "glue" of an empty space. PHP Manual When you want to join array elements into a string with no delimiter, you can omit the glue parameter and solely provide the array. $nMail = implode($arr); Or $nMail = implode([$myobject,'@domain....


0

So could not get it to work with "Juser", so i just used the code below. This cleaned it up and everything works right. :) function nUser_joomla($nUser, $myuuid, $myobject, $mypassword, $joomla_group) { $arr = array($myobject,'@domain.com'); $nMail = implode("",$arr); $db = JFactory::getDbo(); jimport('joomla.user.helper'); $pass = ...


Top 50 recent answers are included